public abstract class NuxeoObject extends Object implements org.apache.chemistry.opencmis.client.api.CmisObject
NuxeoSession
and a NuxeoObjectData
which is backed
by a Nuxeo document.Modifier and Type | Field and Description |
---|---|
NuxeoObjectData |
data |
Constructor and Description |
---|
NuxeoObject(NuxeoSession session,
NuxeoObjectData data,
org.apache.chemistry.opencmis.client.api.ObjectType type) |
Modifier and Type | Method and Description |
---|---|
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) |
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) |
static NuxeoObject |
construct(NuxeoSession session,
NuxeoObjectData data,
org.apache.chemistry.opencmis.client.api.ObjectType type) |
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 |
getAllowableActions() |
org.apache.chemistry.opencmis.client.api.ObjectType |
getBaseType() |
org.apache.chemistry.opencmis.commons.enums.BaseTypeId |
getBaseTypeId() |
String |
getChangeToken() |
String |
getCreatedBy() |
GregorianCalendar |
getCreationDate() |
String |
getDescription() |
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> |
getExtensions(org.apache.chemistry.opencmis.commons.enums.ExtensionLevel level) |
String |
getId() |
GregorianCalendar |
getLastModificationDate() |
String |
getLastModifiedBy() |
String |
getName() |
Set<String> |
getPermissonsForPrincipal(String principalId) |
List<org.apache.chemistry.opencmis.client.api.Policy> |
getPolicies() |
List<org.apache.chemistry.opencmis.client.api.Property<?>> |
getProperties() |
<T> org.apache.chemistry.opencmis.client.api.Property<T> |
getProperty(String id) |
<T> T |
getPropertyValue(String id) |
long |
getRefreshTimestamp() |
List<org.apache.chemistry.opencmis.client.api.Relationship> |
getRelationships() |
List<org.apache.chemistry.opencmis.client.api.Rendition> |
getRenditions() |
String |
getRepositoryId() |
List<org.apache.chemistry.opencmis.client.api.SecondaryType> |
getSecondaryTypes() |
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) |
org.apache.chemistry.opencmis.client.api.CmisObject |
rename(String newName) |
org.apache.chemistry.opencmis.client.api.ObjectId |
rename(String newName,
boolean refresh) |
org.apache.chemistry.opencmis.commons.data.Acl |
setAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces) |
org.apache.chemistry.opencmis.client.api.CmisObject |
updateProperties(Map<String,?> properties) |
org.apache.chemistry.opencmis.client.api.ObjectId |
updateProperties(Map<String,?> properties,
boolean refresh) |
public final NuxeoObjectData data
public NuxeoObject(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type)
public static NuxeoObject construct(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type)
public <T> T getAdapter(Class<T> adapterInterface)
getAdapter
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public String getRepositoryId()
public String getId()
getId
in interface org.apache.chemistry.opencmis.client.api.ObjectId
public org.apache.chemistry.opencmis.client.api.ObjectType getType()
getType
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
getBaseTypeId
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public org.apache.chemistry.opencmis.client.api.ObjectType getBaseType()
getBaseType
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public List<org.apache.chemistry.opencmis.client.api.SecondaryType> getSecondaryTypes()
getSecondaryTypes
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public List<org.apache.chemistry.opencmis.client.api.ObjectType> findObjectType(String id)
findObjectType
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public String getName()
getName
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public String getChangeToken()
getChangeToken
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public String getCreatedBy()
getCreatedBy
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public GregorianCalendar getCreationDate()
getCreationDate
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public GregorianCalendar getLastModificationDate()
getLastModificationDate
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public String getLastModifiedBy()
getLastModifiedBy
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public String getDescription()
getDescription
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public void delete(boolean allVersions)
delete
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public void delete()
delete
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.client.api.CmisObject updateProperties(Map<String,?> properties)
updateProperties
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.client.api.ObjectId updateProperties(Map<String,?> properties, boolean refresh)
updateProperties
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.client.api.CmisObject rename(String newName)
rename
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.client.api.ObjectId rename(String newName, boolean refresh)
rename
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public <T> T getPropertyValue(String id)
getPropertyValue
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public <T> org.apache.chemistry.opencmis.client.api.Property<T> getProperty(String id)
getProperty
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
public List<org.apache.chemistry.opencmis.client.api.Property<?>> getProperties()
getProperties
in interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
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)
addAcl
in interface org.apache.chemistry.opencmis.client.api.CmisObject
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)
applyAcl
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.commons.data.Acl setAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
setAcl
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.commons.data.Acl getAcl()
getAcl
in interface org.apache.chemistry.opencmis.client.api.CmisObject
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)
removeAcl
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions()
getAllowableActions
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public List<org.apache.chemistry.opencmis.client.api.Policy> getPolicies()
getPolicies
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
applyPolicy
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
removePolicy
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public List<org.apache.chemistry.opencmis.client.api.Relationship> getRelationships()
getRelationships
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public List<org.apache.chemistry.opencmis.client.api.Rendition> getRenditions()
getRenditions
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public void refresh()
refresh
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public void refreshIfOld(long durationInMillis)
refreshIfOld
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public long getRefreshTimestamp()
getRefreshTimestamp
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getExtensions(org.apache.chemistry.opencmis.commons.enums.ExtensionLevel level)
getExtensions
in interface org.apache.chemistry.opencmis.client.api.CmisObject
public boolean hasAllowableAction(org.apache.chemistry.opencmis.commons.enums.Action action)
hasAllowableAction
in interface org.apache.chemistry.opencmis.client.api.CmisObject
Copyright © 2015 Nuxeo SA. All rights reserved.