0
을 사용하여 문서에 보조 속성을 설정할 때 발생하는 문제 CMIS 1.1을 사용하여 Alfresco의 문서에 프로그래밍 방식으로 보조 속성 (제목, 설명)을 추가하려고합니다.cmis 1.1
코드 : 문제없이 프레스코 사이트에 문서를 성공적으로 업로드
properties.put(PropertyIds.NAME, fileName);
properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document,P:cm:titled");
properties.put(PropertyIds.SECONDARY_OBJECT_TYPE_IDS, "P:cm:titled");
properties.put("cm:title", "test title");
properties.put("cm:description", "description of document");
코드의 결과지만, 제목과 설명은 프레스코 UI에서 비어 있습니다.
또한 태그를 문서에도 설정해 보았습니다. 야외용 사이트에서도 태그가 비어 있습니다.
코드 조각
document = parentFolder.createDocument(properties, contentStream, null);
AlfrescoDocument alfDoc = (AlfrescoDocument) document;
Map<String, Object> properties1 = new HashMap<String, Object>();
List<String> tags = new ArrayList<String>();
tags.add("cmisTag");
tags.add("testTag");
properties1.put("cm:taggable",tags);
alfDoc.updateProperties(properties1);
안녕하세요 제프, 나는 내 코드에서 CMIS 확장 부분을 제거했고 지금은 내 폴더와 문서 : 지금은 태그에 추가 할 수 있는지 질문이 의 제목, 설명을 설정할 수 있어요 내 cmis를 통한 문서 1.1. 친절하게도 cmis에서 태그 작업이 어떻게 작동하는지 설명해주십시오. 1.1. – Azar
CMIS를 통해 태깅이 작동하지 않습니다. 태그에 Alfresco REST API를 사용해야합니다. –
Thanks Jeff .. 나머지 API를 사용하여 태그를 구현했습니다. – Azar