如何使用CMIS 1.1 atom binding alfresco 5.0.c配置自定义方面并检索其属性?

如何使用CMIS 1.1 atom binding alfresco 5.0.c配置自定义方面并检索其属性?,alfresco,cmis,Alfresco,Cmis,使用Alfresco,我创建了一个方面,并向其添加了自定义属性 在使用CMIS 1.1 Atom绑定和Alfresco 5.0.c访问自定义属性时需要帮助 请帮助我显示带有自定义属性的文档 public void uploadDocument(Folder newFolder) { File file = new File("file.txt"); properties = new HashMap<String, Object>(); properties.put(Prope

使用Alfresco,我创建了一个方面,并向其添加了自定义属性

在使用CMIS 1.1 Atom绑定和Alfresco 5.0.c访问自定义属性时需要帮助

请帮助我显示带有自定义属性的文档

    public void uploadDocument(Folder newFolder) {
File file = new File("file.txt");
properties = new HashMap<String, Object>();
properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");

properties.put(PropertyIds.NAME, file.getName());

properties.put(PropertyIds.CUSTOM_FIELD_NAME,file.getCustomField());


path    = Paths.get(DOC_NAME_WITH_PATH);

content= Files.readAllBytes(path);

contentStream   = new ContentStreamImpl(file.getName(), 
BigInteger.valueOf(content.length), new 
MimetypesFileTypeMap().getContentType(file), new 
FileInputStream(file));     

newDoc = (Document)newFolder.createDocument(properties, contentStream, 
VersioningState.MAJOR);

}
public void上传文档(文件夹newFolder){
File File=新文件(“File.txt”);
properties=newhashmap();
properties.put(PropertyIds.OBJECT_TYPE_ID,“cmis:document”);
properties.put(PropertyIds.NAME,file.getName());
properties.put(PropertyIds.CUSTOM_FIELD_NAME,file.getCustomField());
path=path.get(文件名和路径);
content=Files.readAllBytes(路径);
contentStream=new ContentStreamImpl(file.getName(),
BigInteger.valueOf(content.length),新
MimetypesFileTypeMap().getContentType(文件),新建
FileInputStream(文件));
newDoc=(文档)newFolder.createDocument(属性、内容流、,
VersioningState.MAJOR);
}

您可以发布用于获取和显示的代码吗?我们在配置文件(extension/mc-model.xml、extension/mc-model-context.xml、messages/customType.property、web extension/share-config-custom.xml、web extension/custom-slingshot-application-context.xml)中定义了方面,我们可以在户外查看,但是在使用CMIS 1.1访问Java代码中的这些方面属性时,我们需要帮助,您正在使用的Java代码在哪里通过CMIS访问?您给出的代码正在进行上载。显示/未显示自定义方面的获取代码在哪里?