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
Modifier and TypeFieldDescriptionboolean
static final String
static final String
static final String
static final String
static final String
Default for "org.nuxeo.cmis.computeRenditionInfo".static final String
Property to determine whether all renditions provide a computed size and length.org.apache.chemistry.opencmis.commons.server.CmisService
-
Constructor Summary
ModifierConstructorDescriptionprotected
NuxeoObjectData
(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.Acl
getAcl()
protected static org.apache.chemistry.opencmis.commons.data.Acl
getAcl
(ACP acp, boolean onlyBasicPermissions, NuxeoCmisService service) org.apache.chemistry.opencmis.commons.data.AllowableActions
static org.apache.chemistry.opencmis.commons.data.AllowableActions
getAllowableActions
(DocumentModel doc, boolean creation) org.apache.chemistry.opencmis.commons.enums.BaseTypeId
org.apache.chemistry.opencmis.commons.data.ChangeEventInfo
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement>
getId()
org.apache.chemistry.opencmis.commons.data.PolicyIdList
org.apache.chemistry.opencmis.commons.data.Properties
protected org.apache.chemistry.opencmis.commons.data.Properties
getProperties
(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 void
Limits cache size, always keeps STAR filter.static boolean
needsRenditions
(String renditionFilter) void
setExtensions
(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:
getId
in interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getBaseTypeId
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()- Specified by:
getBaseTypeId
in interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getTypeDefinitions
-
getProperties
public org.apache.chemistry.opencmis.commons.data.Properties getProperties()- Specified by:
getProperties
in 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:
getAllowableActions
in 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:
getRenditions
in 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:
getRelationships
in 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:
getAcl
in 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:
isExactAcl
in interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getPolicyIds
public org.apache.chemistry.opencmis.commons.data.PolicyIdList getPolicyIds()- Specified by:
getPolicyIds
in interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getChangeEventInfo
public org.apache.chemistry.opencmis.commons.data.ChangeEventInfo getChangeEventInfo()- Specified by:
getChangeEventInfo
in interfaceorg.apache.chemistry.opencmis.commons.data.ObjectData
-
getExtensions
- Specified by:
getExtensions
in interfaceorg.apache.chemistry.opencmis.commons.data.ExtensionsData
-
setExtensions
public void setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions) - Specified by:
setExtensions
in interfaceorg.apache.chemistry.opencmis.commons.data.ExtensionsData
-