mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Part 1 of MOB-378 Support for sub-types (and properties).
Supported for read cases. Property rendering driven from type model. Fixed support for ID, XML, HTML and URI type properties. Fixed ContentStreamUri property name. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13607 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -245,7 +245,7 @@ public class CMISPropertyServiceImpl implements CMISPropertyService, Initializin
|
||||
addNamedPropertyAccessor(getContentStreamLengthPropertyAccessor());
|
||||
addNamedPropertyAccessor(getContentStreamMimetypePropertyAccessor());
|
||||
addNamedPropertyAccessor(getSimplePropertyAccessor(CMISMapping.PROP_CONTENT_STREAM_FILENAME, ContentModel.PROP_NAME, CMISScope.DOCUMENT));
|
||||
addNamedPropertyAccessor(getFixedValuePropertyAccessor(CMISMapping.PROP_CONTENT_STREAM_URI, null, CMISScope.DOCUMENT));
|
||||
addNamedPropertyAccessor(getContentStreamUriPropertyAccessor());
|
||||
|
||||
// CMIS Folder
|
||||
addNamedPropertyAccessor(getParentPropertyAccessor());
|
||||
@@ -393,6 +393,14 @@ public class CMISPropertyServiceImpl implements CMISPropertyService, Initializin
|
||||
return accessor;
|
||||
}
|
||||
|
||||
public NamedPropertyAccessor getContentStreamUriPropertyAccessor()
|
||||
{
|
||||
ContentStreamUriPropertyAccessor accessor = new ContentStreamUriPropertyAccessor();
|
||||
accessor.setServiceRegistry(serviceRegistry);
|
||||
accessor.setCMISMapping(cmisMapping);
|
||||
return accessor;
|
||||
}
|
||||
|
||||
public NamedPropertyAccessor getParentPropertyAccessor()
|
||||
{
|
||||
ParentPropertyAccessor accessor = new ParentPropertyAccessor();
|
||||
|
Reference in New Issue
Block a user