mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
SAIL-173: Added processing of includeRelationships argument to CMIS REST and SOAP bindings
- Despite its name, this argument is not a Boolean! - TODO: Extend TCK to test relationships git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.cmis.mapping;
|
package org.alfresco.cmis.mapping;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@@ -182,7 +183,16 @@ public class CMISMapping implements InitializingBean
|
|||||||
registerPropertyAccessor(new DirectProperty(serviceRegistry, CMISDictionaryModel.PROP_LAST_MODIFIED_BY, ContentModel.PROP_MODIFIER));
|
registerPropertyAccessor(new DirectProperty(serviceRegistry, CMISDictionaryModel.PROP_LAST_MODIFIED_BY, ContentModel.PROP_MODIFIER));
|
||||||
registerPropertyAccessor(new DirectProperty(serviceRegistry, CMISDictionaryModel.PROP_LAST_MODIFICATION_DATE, ContentModel.PROP_MODIFIED));
|
registerPropertyAccessor(new DirectProperty(serviceRegistry, CMISDictionaryModel.PROP_LAST_MODIFICATION_DATE, ContentModel.PROP_MODIFIED));
|
||||||
registerPropertyAccessor(new FixedValueProperty(serviceRegistry, CMISDictionaryModel.PROP_CHANGE_TOKEN, null));
|
registerPropertyAccessor(new FixedValueProperty(serviceRegistry, CMISDictionaryModel.PROP_CHANGE_TOKEN, null));
|
||||||
registerPropertyAccessor(new DirectProperty(serviceRegistry, CMISDictionaryModel.PROP_NAME, ContentModel.PROP_NAME));
|
registerPropertyAccessor(new DirectProperty(serviceRegistry, CMISDictionaryModel.PROP_NAME,
|
||||||
|
ContentModel.PROP_NAME)
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public Serializable getValue(AssociationRef assocRef)
|
||||||
|
{
|
||||||
|
// Let's use the association ref as the name
|
||||||
|
return assocRef.toString();
|
||||||
|
}
|
||||||
|
});
|
||||||
registerPropertyAccessor(new IsImmutableProperty(serviceRegistry));
|
registerPropertyAccessor(new IsImmutableProperty(serviceRegistry));
|
||||||
registerPropertyAccessor(new IsLatestVersionProperty(serviceRegistry));
|
registerPropertyAccessor(new IsLatestVersionProperty(serviceRegistry));
|
||||||
registerPropertyAccessor(new IsMajorVersionProperty(serviceRegistry));
|
registerPropertyAccessor(new IsMajorVersionProperty(serviceRegistry));
|
||||||
|
Reference in New Issue
Block a user