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 |
|---|---|
protected List<org.apache.chemistry.opencmis.client.api.ObjectType> |
allTypes
type + secondaryTypes
|
NuxeoObjectData |
data |
protected NuxeoCmisService |
nuxeoCmisService |
protected NuxeoObjectFactory |
objectFactory |
protected List<org.apache.chemistry.opencmis.client.api.SecondaryType> |
secondaryTypes |
protected org.apache.chemistry.opencmis.commons.server.CmisService |
service |
protected NuxeoSession |
session |
protected org.apache.chemistry.opencmis.client.api.ObjectType |
type |
protected static Set<org.apache.chemistry.opencmis.commons.enums.Updatability> |
UPDATABILITY_READWRITE |
| Constructor and Description |
|---|
NuxeoObject(NuxeoSession session,
NuxeoObjectData data,
org.apache.chemistry.opencmis.client.api.ObjectType type,
List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes) |
| 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) |
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 |
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> |
getPermissionsForPrincipal(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) |
void |
removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId policyId,
boolean refresh) |
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) |
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) |
protected static final Set<org.apache.chemistry.opencmis.commons.enums.Updatability> UPDATABILITY_READWRITE
protected final NuxeoSession session
protected final org.apache.chemistry.opencmis.commons.server.CmisService service
protected final NuxeoCmisService nuxeoCmisService
protected final NuxeoObjectFactory objectFactory
public final NuxeoObjectData data
protected final org.apache.chemistry.opencmis.client.api.ObjectType type
protected final List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes
public NuxeoObject(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes)
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)
public <T> T getAdapter(Class<T> adapterInterface)
getAdapter in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic String getRepositoryId()
public String getId()
getId in interface org.apache.chemistry.opencmis.client.api.ObjectIdpublic org.apache.chemistry.opencmis.client.api.ObjectType getType()
getType in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
getBaseTypeId in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic org.apache.chemistry.opencmis.client.api.ObjectType getBaseType()
getBaseType in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic List<org.apache.chemistry.opencmis.client.api.SecondaryType> getSecondaryTypes()
getSecondaryTypes in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic List<org.apache.chemistry.opencmis.client.api.ObjectType> findObjectType(String id)
findObjectType in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic String getName()
getName in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic String getChangeToken()
getChangeToken in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic String getCreatedBy()
getCreatedBy in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic GregorianCalendar getCreationDate()
getCreationDate in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic GregorianCalendar getLastModificationDate()
getLastModificationDate in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic String getLastModifiedBy()
getLastModifiedBy in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic String getDescription()
getDescription in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic void delete(boolean allVersions)
delete in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void delete()
delete in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic org.apache.chemistry.opencmis.client.api.CmisObject updateProperties(Map<String,?> properties)
updateProperties in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic org.apache.chemistry.opencmis.client.api.ObjectId updateProperties(Map<String,?> properties, boolean refresh)
updateProperties in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic org.apache.chemistry.opencmis.client.api.CmisObject updateProperties(Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds)
updateProperties in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic org.apache.chemistry.opencmis.client.api.ObjectId updateProperties(Map<String,?> properties, List<String> addSecondaryTypeIds, List<String> removeSecondaryTypeIds, boolean refresh)
updateProperties in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic org.apache.chemistry.opencmis.client.api.CmisObject rename(String newName)
rename in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic org.apache.chemistry.opencmis.client.api.ObjectId rename(String newName, boolean refresh)
rename in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic <T> T getPropertyValue(String id)
getPropertyValue in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic <T> org.apache.chemistry.opencmis.client.api.Property<T> getProperty(String id)
getProperty in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic List<org.apache.chemistry.opencmis.client.api.Property<?>> getProperties()
getProperties in interface org.apache.chemistry.opencmis.client.api.CmisObjectPropertiespublic 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.CmisObjectpublic 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.CmisObjectpublic 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.CmisObjectpublic org.apache.chemistry.opencmis.commons.data.Acl getAcl()
getAcl in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic 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.CmisObjectpublic org.apache.chemistry.opencmis.commons.data.AllowableActions getAllowableActions()
getAllowableActions in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic List<org.apache.chemistry.opencmis.client.api.Policy> getPolicies()
getPolicies in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
applyPolicy in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId... policyIds)
removePolicy in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic List<org.apache.chemistry.opencmis.client.api.Relationship> getRelationships()
getRelationships in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic List<org.apache.chemistry.opencmis.client.api.Rendition> getRenditions()
getRenditions in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void refresh()
refresh in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void refreshIfOld(long durationInMillis)
refreshIfOld in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic long getRefreshTimestamp()
getRefreshTimestamp in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic 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.CmisObjectpublic boolean hasAllowableAction(org.apache.chemistry.opencmis.commons.enums.Action action)
hasAllowableAction in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic Set<String> getPermissionsForPrincipal(String principalId)
getPermissionsForPrincipal in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void applyPolicy(org.apache.chemistry.opencmis.client.api.ObjectId policyId, boolean refresh)
applyPolicy in interface org.apache.chemistry.opencmis.client.api.CmisObjectpublic void removePolicy(org.apache.chemistry.opencmis.client.api.ObjectId policyId, boolean refresh)
removePolicy in interface org.apache.chemistry.opencmis.client.api.CmisObjectCopyright © 2016 Nuxeo SA. All rights reserved.