mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-378 (AtomPub binding) Support for sub-types (and properties)
- 1st pass at creation of document / folder sub-types - 1st pass at setting / updating custom properties - Existing AtomPub CMIS Tests passing git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13707 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -33,6 +33,7 @@ import org.alfresco.cmis.search.CMISQueryException;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.search.impl.lucene.LuceneQueryParser;
|
||||
import org.alfresco.repo.search.impl.querymodel.PredicateMode;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter;
|
||||
@@ -52,6 +53,11 @@ import org.apache.lucene.search.BooleanClause.Occur;
|
||||
public class ObjectIdPropertyAccessor extends AbstractNamedPropertyAccessor
|
||||
{
|
||||
|
||||
protected ObjectIdPropertyAccessor(CMISMapping cmisMapping, ServiceRegistry serviceRegistry)
|
||||
{
|
||||
super(cmisMapping, serviceRegistry, CMISScope.OBJECT, CMISMapping.PROP_OBJECT_ID);
|
||||
}
|
||||
|
||||
public Serializable getProperty(NodeRef nodeRef)
|
||||
{
|
||||
if (getServiceRegistry().getNodeService().hasAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE))
|
||||
@@ -73,18 +79,10 @@ public class ObjectIdPropertyAccessor extends AbstractNamedPropertyAccessor
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPropertyName()
|
||||
public void setProperty(NodeRef nodeRef, Serializable value)
|
||||
{
|
||||
return CMISMapping.PROP_OBJECT_ID;
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CMISScope getScope()
|
||||
{
|
||||
return CMISScope.OBJECT;
|
||||
}
|
||||
|
||||
|
||||
private String getLuceneFieldName()
|
||||
{
|
||||
|
Reference in New Issue
Block a user