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 Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDefault for "org.nuxeo.cmis.computeRenditionInfo".static final StringProperty to determine whether all renditions provide a computed size and length.org.apache.chemistry.opencmis.commons.server.CmisService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNuxeoObjectData(org.apache.chemistry.opencmis.commons.server.CmisService service, DocumentModel doc) 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(org.apache.chemistry.opencmis.commons.server.CmisService service, DocumentModel doc, org.apache.chemistry.opencmis.client.api.OperationContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.chemistry.opencmis.commons.data.AclgetAcl()protected static org.apache.chemistry.opencmis.commons.data.AclgetAcl(ACP acp, boolean onlyBasicPermissions, NuxeoCmisService service) org.apache.chemistry.opencmis.commons.data.AllowableActionsstatic org.apache.chemistry.opencmis.commons.data.AllowableActionsgetAllowableActions(DocumentModel doc, boolean creation) org.apache.chemistry.opencmis.commons.enums.BaseTypeIdorg.apache.chemistry.opencmis.commons.data.ChangeEventInfoList<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getId()org.apache.chemistry.opencmis.commons.data.PolicyIdListorg.apache.chemistry.opencmis.commons.data.Propertiesprotected org.apache.chemistry.opencmis.commons.data.PropertiesgetProperties(List<String> propertyIds) getProperty(String id) getPropertyIdsFromFilter(String filter) List<org.apache.chemistry.opencmis.commons.data.ObjectData> static List<org.apache.chemistry.opencmis.commons.data.ObjectData> getRelationships(String id, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, NuxeoCmisService service) List<org.apache.chemistry.opencmis.commons.data.RenditionData> 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) protected static List<org.apache.chemistry.opencmis.commons.data.RenditionData> getRenditionServiceRenditions(DocumentModel doc, org.apache.chemistry.opencmis.commons.server.CallContext callContext) List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> protected voidLimits cache size, always keeps STAR filter.static booleanneedsRenditions(String renditionFilter) voidsetExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
-
Field Details
-
REND_STREAM_ICON
- See Also:
-
REND_KIND_CMIS_THUMBNAIL
- See Also:
-
REND_STREAM_RENDITION_PREFIX
- See Also:
-
REND_KIND_NUXEO_RENDITION
- See Also:
-
RENDITION_COMPUTE_INFO_PROP
Property to determine whether all renditions provide a computed size and length.- Since:
- 7.4
- See Also:
-
RENDITION_COMPUTE_INFO_DEFAULT
Default for "org.nuxeo.cmis.computeRenditionInfo".- Since:
- 7.4
- See Also:
-
service
public org.apache.chemistry.opencmis.commons.server.CmisService service -
doc
-
creation
public boolean creation -
STAR_FILTER
-
-
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
-
getId
- Specified by:
getIdin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getBaseTypeId
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()- Specified by:
getBaseTypeIdin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getTypeDefinitions
-
getProperties
public org.apache.chemistry.opencmis.commons.data.Properties getProperties()- Specified by:
getPropertiesin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getProperties
-
limitCacheSize
protected void limitCacheSize()Limits cache size, always keeps STAR filter. -
getProperty
-
getAllowableActions
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions()- Specified by:
getAllowableActionsin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getAllowableActions
public static org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions(DocumentModel doc, boolean creation) -
getRenditions
- Specified by:
getRenditionsin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
needsRenditions
-
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
- Specified by:
getRelationshipsin interfaceorg.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:
getAclin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getAcl
protected static org.apache.chemistry.opencmis.commons.data.Acl getAcl(ACP acp, boolean onlyBasicPermissions, NuxeoCmisService service) -
isExactAcl
- Specified by:
isExactAclin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getPolicyIds
public org.apache.chemistry.opencmis.commons.data.PolicyIdList getPolicyIds()- Specified by:
getPolicyIdsin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getChangeEventInfo
public org.apache.chemistry.opencmis.commons.data.ChangeEventInfo getChangeEventInfo()- Specified by:
getChangeEventInfoin interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getExtensions
- Specified by:
getExtensionsin interfaceorg.apache.chemistry.opencmis.commons.data.ExtensionsData
-
setExtensions
public void setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions) - Specified by:
setExtensionsin interfaceorg.apache.chemistry.opencmis.commons.data.ExtensionsData
-