Class NuxeoObject
java.lang.Object
org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
- All Implemented Interfaces:
org.apache.chemistry.opencmis.client.api.CmisObject
,org.apache.chemistry.opencmis.client.api.CmisObjectProperties
,org.apache.chemistry.opencmis.client.api.ObjectId
- Direct Known Subclasses:
NuxeoFileableObject
,NuxeoRelationship
public abstract class NuxeoObject
extends Object
implements org.apache.chemistry.opencmis.client.api.CmisObject
Base abstract live local CMIS Object, wrapping a
NuxeoSession
and a NuxeoObjectData
which is backed
by a Nuxeo document.-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<org.apache.chemistry.opencmis.client.api.ObjectType>
type + secondaryTypesfinal NuxeoObjectData
protected final NuxeoCmisService
protected final NuxeoObjectFactory
protected final List<org.apache.chemistry.opencmis.client.api.SecondaryType>
protected final org.apache.chemistry.opencmis.commons.server.CmisService
protected final NuxeoSession
protected final org.apache.chemistry.opencmis.client.api.ObjectType
protected static final Set<org.apache.chemistry.opencmis.commons.enums.Updatability>
-
Constructor Summary
ConstructorDescriptionNuxeoObject
(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.chemistry.opencmis.commons.data.Acl
addAcl
(List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) org.apache.chemistry.opencmis.commons.data.Acl
applyAcl
(List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) void
applyPolicy
(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds) void
applyPolicy
(org.apache.chemistry.opencmis.client.api.ObjectId policyId, boolean refresh) static NuxeoObject
construct
(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes) void
delete()
void
delete
(boolean allVersions) List<org.apache.chemistry.opencmis.client.api.ObjectType>
findObjectType
(String id) org.apache.chemistry.opencmis.commons.data.Acl
getAcl()
<T> T
getAdapter
(Class<T> adapterInterface) org.apache.chemistry.opencmis.commons.data.AllowableActions
org.apache.chemistry.opencmis.client.api.ObjectType
org.apache.chemistry.opencmis.commons.enums.BaseTypeId
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement>
getExtensions
(org.apache.chemistry.opencmis.commons.enums.ExtensionLevel level) getId()
getName()
getPermissionsForPrincipal
(String principalId) List<org.apache.chemistry.opencmis.client.api.Policy>
List<org.apache.chemistry.opencmis.client.api.ObjectId>
List<org.apache.chemistry.opencmis.client.api.Property<?>>
<T> org.apache.chemistry.opencmis.client.api.Property<T>
getProperty
(String id) <T> T
long
List<org.apache.chemistry.opencmis.client.api.Relationship>
List<org.apache.chemistry.opencmis.client.api.Rendition>
List<org.apache.chemistry.opencmis.client.api.SecondaryType>
org.apache.chemistry.opencmis.client.api.ObjectType
getType()
boolean
hasAllowableAction
(org.apache.chemistry.opencmis.commons.enums.Action action) void
refresh()
void
refreshIfOld
(long durationInMillis) org.apache.chemistry.opencmis.commons.data.Acl
removeAcl
(List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) void
removePolicy
(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds) void
removePolicy
(org.apache.chemistry.opencmis.client.api.ObjectId policyId, boolean refresh) org.apache.chemistry.opencmis.client.api.CmisObject
org.apache.chemistry.opencmis.client.api.ObjectId
org.apache.chemistry.opencmis.commons.data.Acl
org.apache.chemistry.opencmis.client.api.CmisObject
updateProperties
(Map<String, ?> properties) org.apache.chemistry.opencmis.client.api.ObjectId
updateProperties
(Map<String, ?> properties, boolean refresh) org.apache.chemistry.opencmis.client.api.CmisObject
updateProperties
(Map<String, ?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds) org.apache.chemistry.opencmis.client.api.ObjectId
updateProperties
(Map<String, ?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, boolean refresh)
-
Field Details
-
UPDATABILITY_READWRITE
protected static final Set<org.apache.chemistry.opencmis.commons.enums.Updatability> UPDATABILITY_READWRITE -
session
-
service
protected final org.apache.chemistry.opencmis.commons.server.CmisService service -
nuxeoCmisService
-
objectFactory
-
data
-
type
protected final org.apache.chemistry.opencmis.client.api.ObjectType type -
secondaryTypes
-
allTypes
type + secondaryTypes
-
-
Constructor Details
-
NuxeoObject
public NuxeoObject(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes)
-
-
Method Details
-
construct
public static NuxeoObject construct(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes) -
getAdapter
- Specified by:
getAdapter
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getRepositoryId
-
getId
- Specified by:
getId
in interfaceorg.apache.chemistry.opencmis.client.api.ObjectId
-
getType
public org.apache.chemistry.opencmis.client.api.ObjectType getType()- Specified by:
getType
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getBaseTypeId
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()- Specified by:
getBaseTypeId
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getBaseType
public org.apache.chemistry.opencmis.client.api.ObjectType getBaseType()- Specified by:
getBaseType
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getSecondaryTypes
- Specified by:
getSecondaryTypes
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
findObjectType
- Specified by:
findObjectType
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getName
- Specified by:
getName
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getChangeToken
- Specified by:
getChangeToken
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getCreatedBy
- Specified by:
getCreatedBy
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getCreationDate
- Specified by:
getCreationDate
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getLastModificationDate
- Specified by:
getLastModificationDate
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getLastModifiedBy
- Specified by:
getLastModifiedBy
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getDescription
- Specified by:
getDescription
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
delete
public void delete(boolean allVersions) - Specified by:
delete
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
delete
public void delete()- Specified by:
delete
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
updateProperties
public org.apache.chemistry.opencmis.client.api.CmisObject updateProperties(Map<String, ?> properties) - Specified by:
updateProperties
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
updateProperties
public org.apache.chemistry.opencmis.client.api.ObjectId updateProperties(Map<String, ?> properties, boolean refresh) - Specified by:
updateProperties
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
updateProperties
public org.apache.chemistry.opencmis.client.api.CmisObject updateProperties(Map<String, ?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds) - Specified by:
updateProperties
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
updateProperties
public org.apache.chemistry.opencmis.client.api.ObjectId updateProperties(Map<String, ?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, boolean refresh) - Specified by:
updateProperties
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
rename
- Specified by:
rename
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
rename
- Specified by:
rename
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getPropertyValue
- Specified by:
getPropertyValue
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getProperty
- Specified by:
getProperty
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
getProperties
- Specified by:
getProperties
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObjectProperties
-
addAcl
public org.apache.chemistry.opencmis.commons.data.Acl addAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) - Specified by:
addAcl
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
applyAcl
public org.apache.chemistry.opencmis.commons.data.Acl applyAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) - Specified by:
applyAcl
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
setAcl
public org.apache.chemistry.opencmis.commons.data.Acl setAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces) - Specified by:
setAcl
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getAcl
public org.apache.chemistry.opencmis.commons.data.Acl getAcl()- Specified by:
getAcl
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
removeAcl
public org.apache.chemistry.opencmis.commons.data.Acl removeAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces, org.apache.chemistry.opencmis.commons.enums.AclPropagation aclPropagation) - Specified by:
removeAcl
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getAllowableActions
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions()- Specified by:
getAllowableActions
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getPolicies
- Specified by:
getPolicies
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
applyPolicy
public void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds) - Specified by:
applyPolicy
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
removePolicy
public void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds) - Specified by:
removePolicy
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getRelationships
- Specified by:
getRelationships
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getRenditions
- Specified by:
getRenditions
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
refresh
public void refresh()- Specified by:
refresh
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
refreshIfOld
public void refreshIfOld(long durationInMillis) - Specified by:
refreshIfOld
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getRefreshTimestamp
public long getRefreshTimestamp()- Specified by:
getRefreshTimestamp
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getExtensions
public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getExtensions(org.apache.chemistry.opencmis.commons.enums.ExtensionLevel level) - Specified by:
getExtensions
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
hasAllowableAction
public boolean hasAllowableAction(org.apache.chemistry.opencmis.commons.enums.Action action) - Specified by:
hasAllowableAction
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getPermissionsForPrincipal
- Specified by:
getPermissionsForPrincipal
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
applyPolicy
public void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId policyId, boolean refresh) - Specified by:
applyPolicy
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
removePolicy
public void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId policyId, boolean refresh) - Specified by:
removePolicy
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-
getPolicyIds
- Specified by:
getPolicyIds
in interfaceorg.apache.chemistry.opencmis.client.api.CmisObject
-