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 CMISObjectData
, backed by aDocumentModel
.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
creation
DocumentModel
doc
static String
REND_KIND_CMIS_THUMBNAIL
static String
REND_KIND_NUXEO_RENDITION
static String
REND_STREAM_ICON
static String
REND_STREAM_RENDITION_PREFIX
static String
RENDITION_COMPUTE_INFO_DEFAULT
Default for "org.nuxeo.cmis.computeRenditionInfo".static String
RENDITION_COMPUTE_INFO_PROP
Property to determine whether all renditions provide a computed size and length.org.apache.chemistry.opencmis.commons.server.CmisService
service
protected static List<String>
STAR_FILTER
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.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
getAllowableActions()
static org.apache.chemistry.opencmis.commons.data.AllowableActions
getAllowableActions(DocumentModel doc, boolean creation)
org.apache.chemistry.opencmis.commons.enums.BaseTypeId
getBaseTypeId()
org.apache.chemistry.opencmis.commons.data.ChangeEventInfo
getChangeEventInfo()
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement>
getExtensions()
protected static List<org.apache.chemistry.opencmis.commons.data.RenditionData>
getIconRendition(DocumentModel doc, org.apache.chemistry.opencmis.commons.server.CallContext callContext)
Deprecated.since 7.3.static InputStream
getIconStream(String iconPath, org.apache.chemistry.opencmis.commons.server.CallContext context)
Deprecated.since 7.3.String
getId()
org.apache.chemistry.opencmis.commons.data.PolicyIdList
getPolicyIds()
org.apache.chemistry.opencmis.commons.data.Properties
getProperties()
protected org.apache.chemistry.opencmis.commons.data.Properties
getProperties(List<String> propertyIds)
NuxeoPropertyDataBase<?>
getProperty(String id)
protected static List<String>
getPropertyIdsFromFilter(String filter)
List<org.apache.chemistry.opencmis.commons.data.ObjectData>
getRelationships()
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>
getRenditions()
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>
getTypeDefinitions()
Boolean
isExactAcl()
protected void
limitCacheSize()
Limits cache size, always keeps STAR filter.static boolean
needsRenditions(String renditionFilter)
void
setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
-
-
-
Field Detail
-
REND_STREAM_ICON
public static final String REND_STREAM_ICON
- See Also:
- Constant Field Values
-
REND_KIND_CMIS_THUMBNAIL
public static final String REND_KIND_CMIS_THUMBNAIL
- See Also:
- Constant Field Values
-
REND_STREAM_RENDITION_PREFIX
public static final String REND_STREAM_RENDITION_PREFIX
- See Also:
- Constant Field Values
-
REND_KIND_NUXEO_RENDITION
public static final String REND_KIND_NUXEO_RENDITION
- See Also:
- Constant Field Values
-
RENDITION_COMPUTE_INFO_PROP
public static final String RENDITION_COMPUTE_INFO_PROP
Property to determine whether all renditions provide a computed size and length.- Since:
- 7.4
- See Also:
- Constant Field Values
-
RENDITION_COMPUTE_INFO_DEFAULT
public static final String RENDITION_COMPUTE_INFO_DEFAULT
Default for "org.nuxeo.cmis.computeRenditionInfo".- Since:
- 7.4
- See Also:
- Constant Field Values
-
service
public org.apache.chemistry.opencmis.commons.server.CmisService service
-
doc
public DocumentModel doc
-
creation
public boolean creation
-
-
Constructor Detail
-
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 Detail
-
getId
public String 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
public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> getTypeDefinitions()
-
getProperties
public org.apache.chemistry.opencmis.commons.data.Properties getProperties()
- Specified by:
getProperties
in interfaceorg.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 interfaceorg.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 interfaceorg.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)
-
getIconRendition
@Deprecated protected static List<org.apache.chemistry.opencmis.commons.data.RenditionData> getIconRendition(DocumentModel doc, org.apache.chemistry.opencmis.commons.server.CallContext callContext) throws IOException
Deprecated.since 7.3. The thumbnail is now a default rendition, see NXP-16662.- Throws:
IOException
-
getIconStream
@Deprecated public static InputStream getIconStream(String iconPath, org.apache.chemistry.opencmis.commons.server.CallContext context)
Deprecated.since 7.3. The thumbnail is now a default rendition, see NXP-16662.
-
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 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
public Boolean 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
public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> 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
-
-