Package org.alfresco.cmis.client.impl
Class AlfrescoDocumentImpl
java.lang.Object
org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject
org.apache.chemistry.opencmis.client.runtime.DocumentImpl
org.alfresco.cmis.client.impl.AlfrescoDocumentImpl
- All Implemented Interfaces:
Serializable,AlfrescoAspects,AlfrescoDocument,org.apache.chemistry.opencmis.client.api.CmisObject,org.apache.chemistry.opencmis.client.api.CmisObjectProperties,org.apache.chemistry.opencmis.client.api.Document,org.apache.chemistry.opencmis.client.api.DocumentProperties,org.apache.chemistry.opencmis.client.api.FileableCmisObject,org.apache.chemistry.opencmis.client.api.ObjectId
public class AlfrescoDocumentImpl
extends org.apache.chemistry.opencmis.client.runtime.DocumentImpl
implements AlfrescoDocument
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAlfrescoDocumentImpl(org.apache.chemistry.opencmis.client.runtime.SessionImpl session, org.apache.chemistry.opencmis.client.api.ObjectType objectType, org.apache.chemistry.opencmis.commons.data.ObjectData objectData, org.apache.chemistry.opencmis.client.api.OperationContext context) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.chemistry.opencmis.client.api.CmisObjectAdds one or more aspects to the object.org.apache.chemistry.opencmis.client.api.CmisObjectAdds aspects and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectAdds an aspect and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type) Adds one or more aspects to the object.org.apache.chemistry.opencmis.client.api.CmisObjectAdds aspects and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectAdds an aspect and sets aspect properties.org.apache.chemistry.opencmis.client.api.ObjectIdcheckIn(boolean major, Map<String, ?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces) org.apache.chemistry.opencmis.client.api.ObjectTypefindAspect(String propertyId) Returns the aspect type that defines the given property.Collection<org.apache.chemistry.opencmis.client.api.ObjectType>Returns all applied aspects.Returns a type definition with the applied aspects.booleanReturns if the given aspect is applied to this object.booleanhasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type) Returns if the given aspect is applied to this object.protected voidinitialize(org.apache.chemistry.opencmis.client.runtime.SessionImpl session, org.apache.chemistry.opencmis.client.api.ObjectType objectType, org.apache.chemistry.opencmis.commons.data.ObjectData objectData, org.apache.chemistry.opencmis.client.api.OperationContext context) org.apache.chemistry.opencmis.client.api.CmisObjectremoveAspect(String... id) Removes one or more aspects from the object.org.apache.chemistry.opencmis.client.api.CmisObjectremoveAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type) Removes one or more aspects from the object.org.apache.chemistry.opencmis.client.api.ObjectIdupdateProperties(Map<String, ?> properties, boolean refresh) Methods inherited from class org.apache.chemistry.opencmis.client.runtime.DocumentImpl
appendContentStream, appendContentStream, cancelCheckOut, checkIn, checkOut, copy, copy, copyViaClient, createAppendOutputStream, createAppendOutputStream, createOverwriteOutputStream, createOverwriteOutputStream, deleteAllVersions, deleteContentStream, deleteContentStream, getAllVersions, getAllVersions, getCheckinComment, getContentStream, getContentStream, getContentStream, getContentStream, getContentStreamFileName, getContentStreamHashes, getContentStreamId, getContentStreamLength, getContentStreamMimeType, getContentUrl, getContentUrl, getDocumentType, getLatestAccessibleStateId, getObjectOfLatestVersion, getObjectOfLatestVersion, getVersionLabel, getVersionSeriesCheckedOutBy, getVersionSeriesCheckedOutId, getVersionSeriesId, isImmutable, isLatestMajorVersion, isLatestVersion, isMajorVersion, isPrivateWorkingCopy, isVersionable, isVersionSeriesCheckedOut, setContentStream, setContentStreamMethods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolderMethods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
addAcl, applyAcl, applyPolicy, applyPolicy, delete, delete, findObjectType, getAcl, getAcl, getAdapter, getAllowableActions, getBaseType, getBaseTypeId, getBinding, getChangeToken, getCreatedBy, getCreationContext, getCreationDate, getDescription, getExtensions, getId, getLastModificationDate, getLastModifiedBy, getName, getObjectFactory, getObjectId, getObjectType, getPermissionsForPrincipal, getPolicies, getProperties, getProperty, getPropertyQueryName, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSecondaryTypes, getSession, getType, hasAllowableAction, readLock, readUnlock, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, toString, updateProperties, updateProperties, updateProperties, writeLock, writeUnlockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObject
addAcl, applyAcl, applyPolicy, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPermissionsForPrincipal, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, updateProperties, updateProperties, updatePropertiesMethods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
findObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getTypeMethods inherited from interface org.apache.chemistry.opencmis.client.api.Document
appendContentStream, appendContentStream, cancelCheckOut, checkIn, checkOut, copy, copy, createAppendOutputStream, createAppendOutputStream, createOverwriteOutputStream, createOverwriteOutputStream, deleteAllVersions, deleteContentStream, deleteContentStream, getAllVersions, getAllVersions, getContentStream, getContentStream, getContentStream, getContentStream, getContentUrl, getContentUrl, getDocumentType, getObjectOfLatestVersion, getObjectOfLatestVersion, isVersionable, setContentStream, setContentStreamMethods inherited from interface org.apache.chemistry.opencmis.client.api.DocumentProperties
getCheckinComment, getContentStreamFileName, getContentStreamHashes, getContentStreamId, getContentStreamLength, getContentStreamMimeType, getLatestAccessibleStateId, getVersionLabel, getVersionSeriesCheckedOutBy, getVersionSeriesCheckedOutId, getVersionSeriesId, isImmutable, isLatestMajorVersion, isLatestVersion, isMajorVersion, isPrivateWorkingCopy, isVersionSeriesCheckedOutMethods inherited from interface org.apache.chemistry.opencmis.client.api.FileableCmisObject
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolderMethods inherited from interface org.apache.chemistry.opencmis.client.api.ObjectId
getId
-
Field Details
-
aspects
-
-
Constructor Details
-
AlfrescoDocumentImpl
public AlfrescoDocumentImpl(org.apache.chemistry.opencmis.client.runtime.SessionImpl session, org.apache.chemistry.opencmis.client.api.ObjectType objectType, org.apache.chemistry.opencmis.commons.data.ObjectData objectData, org.apache.chemistry.opencmis.client.api.OperationContext context)
-
-
Method Details
-
initialize
protected void initialize(org.apache.chemistry.opencmis.client.runtime.SessionImpl session, org.apache.chemistry.opencmis.client.api.ObjectType objectType, org.apache.chemistry.opencmis.commons.data.ObjectData objectData, org.apache.chemistry.opencmis.client.api.OperationContext context) - Overrides:
initializein classorg.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
-
getTypeWithAspects
Description copied from interface:AlfrescoAspectsReturns a type definition with the applied aspects.- Specified by:
getTypeWithAspectsin interfaceAlfrescoAspects- Returns:
- an object type with all property definitions (object and aspect properties).
-
updateProperties
public org.apache.chemistry.opencmis.client.api.ObjectId updateProperties(Map<String, ?> properties, boolean refresh) - Specified by:
updatePropertiesin interfaceorg.apache.chemistry.opencmis.client.api.CmisObject- Overrides:
updatePropertiesin classorg.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
-
checkIn
public org.apache.chemistry.opencmis.client.api.ObjectId checkIn(boolean major, Map<String, ?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces) - Specified by:
checkInin interfaceorg.apache.chemistry.opencmis.client.api.Document- Overrides:
checkInin classorg.apache.chemistry.opencmis.client.runtime.DocumentImpl
-
hasAspect
Description copied from interface:AlfrescoAspectsReturns if the given aspect is applied to this object.- Specified by:
hasAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect id- Returns:
trueif the aspect is applied,falseotherwise
-
hasAspect
public boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type) Description copied from interface:AlfrescoAspectsReturns if the given aspect is applied to this object.- Specified by:
hasAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect object type- Returns:
trueif the aspect is applied,falseotherwise
-
getAspects
Description copied from interface:AlfrescoAspectsReturns all applied aspects. If no aspect is applied, an empty collection is returned.- Specified by:
getAspectsin interfaceAlfrescoAspects- Returns:
- collection of the applied aspects
-
findAspect
Description copied from interface:AlfrescoAspectsReturns the aspect type that defines the given property.- Specified by:
findAspectin interfaceAlfrescoAspects- Parameters:
propertyId- the property id- Returns:
- the aspect type if the property id is defined in an applied
aspect,
nullotherwise
-
addAspect
Description copied from interface:AlfrescoAspectsAdds one or more aspects to the object.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect id or ids- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type) Description copied from interface:AlfrescoAspectsAdds one or more aspects to the object.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect type or types- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType type, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds an aspect and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect typeproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds aspects and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect typesproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String id, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds an aspect and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect typeproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String[] id, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds aspects and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect typesproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
removeAspect
Description copied from interface:AlfrescoAspectsRemoves one or more aspects from the object.- Specified by:
removeAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect id or ids- Returns:
- the changed object (which may be a new object)
-
removeAspect
public org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type) Description copied from interface:AlfrescoAspectsRemoves one or more aspects from the object.- Specified by:
removeAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect type or types- Returns:
- the changed object (which may be a new object)
-