Class NuxeoObjectData

java.lang.Object
org.nuxeo.ecm.core.opencmis.impl.server.NuxeoObjectData
All Implemented Interfaces:
org.apache.chemistry.opencmis.commons.data.ExtensionsData, org.apache.chemistry.opencmis.commons.data.ObjectData

public class NuxeoObjectData extends Object implements org.apache.chemistry.opencmis.commons.data.ObjectData
Nuxeo implementation of a CMIS ObjectData, backed by a DocumentModel.
  • Field Details

  • Constructor Details

    • NuxeoObjectData

      public NuxeoObjectData(org.apache.chemistry.opencmis.commons.server.CmisService service, DocumentModel doc, String filter, Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, org.apache.chemistry.opencmis.commons.data.ExtensionsData extension)
    • NuxeoObjectData

      protected NuxeoObjectData(org.apache.chemistry.opencmis.commons.server.CmisService service, DocumentModel doc)
    • NuxeoObjectData

      public NuxeoObjectData(org.apache.chemistry.opencmis.commons.server.CmisService service, DocumentModel doc, org.apache.chemistry.opencmis.client.api.OperationContext context)
  • Method Details

    • getPropertyIdsFromFilter

      protected static List<String> getPropertyIdsFromFilter(String filter)
    • getId

      public String getId()
      Specified by:
      getId in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getBaseTypeId

      public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
      Specified by:
      getBaseTypeId in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getTypeDefinitions

      public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> getTypeDefinitions()
    • getProperties

      public org.apache.chemistry.opencmis.commons.data.Properties getProperties()
      Specified by:
      getProperties in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getProperties

      protected org.apache.chemistry.opencmis.commons.data.Properties getProperties(List<String> propertyIds)
    • limitCacheSize

      protected void limitCacheSize()
      Limits cache size, always keeps STAR filter.
    • getProperty

      public NuxeoPropertyDataBase<?> getProperty(String id)
    • getAllowableActions

      public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions()
      Specified by:
      getAllowableActions in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getAllowableActions

      public static org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(DocumentModel doc, boolean creation)
    • getRenditions

      public List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions()
      Specified by:
      getRenditions in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • needsRenditions

      public static boolean needsRenditions(String renditionFilter)
    • getRenditions

      public static List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditions(DocumentModel doc, String renditionFilter, BigInteger maxItems, BigInteger skipCount, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
    • getRenditionServiceRenditions

      protected static List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditionServiceRenditions(DocumentModel doc, org.apache.chemistry.opencmis.commons.server.CallContext callContext) throws IOException
      Throws:
      IOException
    • getRelationships

      public List<org.apache.chemistry.opencmis.commons.data.ObjectData> getRelationships()
      Specified by:
      getRelationships in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getRelationships

      public static List<org.apache.chemistry.opencmis.commons.data.ObjectData> getRelationships(String id, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, NuxeoCmisService service)
    • getAcl

      public org.apache.chemistry.opencmis.commons.data.Acl getAcl()
      Specified by:
      getAcl in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getAcl

      protected static org.apache.chemistry.opencmis.commons.data.Acl getAcl(ACP acp, boolean onlyBasicPermissions, NuxeoCmisService service)
    • isExactAcl

      public Boolean isExactAcl()
      Specified by:
      isExactAcl in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getPolicyIds

      public org.apache.chemistry.opencmis.commons.data.PolicyIdList getPolicyIds()
      Specified by:
      getPolicyIds in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getChangeEventInfo

      public org.apache.chemistry.opencmis.commons.data.ChangeEventInfo getChangeEventInfo()
      Specified by:
      getChangeEventInfo in interface org.apache.chemistry.opencmis.commons.data.ObjectData
    • getExtensions

      public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getExtensions()
      Specified by:
      getExtensions in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
    • setExtensions

      public void setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
      Specified by:
      setExtensions in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData