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 booleancreationDocumentModeldocstatic StringREND_KIND_CMIS_THUMBNAILstatic StringREND_KIND_NUXEO_RENDITIONstatic StringREND_STREAM_ICONstatic StringREND_STREAM_RENDITION_PREFIXstatic StringRENDITION_COMPUTE_INFO_DEFAULTDefault for "org.nuxeo.cmis.computeRenditionInfo".static StringRENDITION_COMPUTE_INFO_PROPProperty to determine whether all renditions provide a computed size and length.org.apache.chemistry.opencmis.commons.server.CmisServiceserviceprotected static List<String>STAR_FILTER
-
Constructor Summary
Constructors Modifier Constructor Description protectedNuxeoObjectData(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.AclgetAcl()protected static org.apache.chemistry.opencmis.commons.data.AclgetAcl(ACP acp, boolean onlyBasicPermissions, NuxeoCmisService service)org.apache.chemistry.opencmis.commons.data.AllowableActionsgetAllowableActions()static org.apache.chemistry.opencmis.commons.data.AllowableActionsgetAllowableActions(DocumentModel doc, boolean creation)org.apache.chemistry.opencmis.commons.enums.BaseTypeIdgetBaseTypeId()org.apache.chemistry.opencmis.commons.data.ChangeEventInfogetChangeEventInfo()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 InputStreamgetIconStream(String iconPath, org.apache.chemistry.opencmis.commons.server.CallContext context)Deprecated.since 7.3.StringgetId()org.apache.chemistry.opencmis.commons.data.PolicyIdListgetPolicyIds()org.apache.chemistry.opencmis.commons.data.PropertiesgetProperties()protected org.apache.chemistry.opencmis.commons.data.PropertiesgetProperties(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()BooleanisExactAcl()protected voidlimitCacheSize()Limits cache size, always keeps STAR filter.static booleanneedsRenditions(String renditionFilter)voidsetExtensions(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:
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
public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> getTypeDefinitions()
-
getProperties
public org.apache.chemistry.opencmis.commons.data.Properties getProperties()
- Specified by:
getPropertiesin 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:
getAllowableActionsin 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:
getRenditionsin 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:
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
public Boolean 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
public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> 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
-
-