Class NuxeoDocument
- java.lang.Object
-
- org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
-
- org.nuxeo.ecm.core.opencmis.impl.client.NuxeoFileableObject
-
- org.nuxeo.ecm.core.opencmis.impl.client.NuxeoDocument
-
- All Implemented Interfaces:
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 NuxeoDocument extends NuxeoFileableObject implements org.apache.chemistry.opencmis.client.api.Document
Live local CMIS Document, which is backed by a Nuxeo document.
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
allTypes, data, nuxeoCmisService, objectFactory, secondaryTypes, service, session, type, UPDATABILITY_READWRITE
-
-
Constructor Summary
Constructors Constructor Description NuxeoDocument(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.chemistry.opencmis.client.api.DocumentappendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk)org.apache.chemistry.opencmis.client.api.ObjectIdappendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk, boolean refresh)voidcancelCheckOut()org.apache.chemistry.opencmis.client.api.ObjectIdcheckIn(boolean major, Map<String,?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment)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.ObjectIdcheckOut()NuxeoDocumentcopy(org.apache.chemistry.opencmis.client.api.ObjectId target)NuxeoDocumentcopy(org.apache.chemistry.opencmis.client.api.ObjectId target, Map<String,?> properties, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, 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.OperationContext context)OutputStreamcreateAppendOutputStream()OutputStreamcreateAppendOutputStream(int bufferSize)OutputStreamcreateOverwriteOutputStream(String filename, String mimeType)OutputStreamcreateOverwriteOutputStream(String filename, String mimeType, int bufferSize)voiddeleteAllVersions()NuxeoDocumentdeleteContentStream()org.apache.chemistry.opencmis.client.api.ObjectIddeleteContentStream(boolean refresh)List<org.apache.chemistry.opencmis.client.api.Document>getAllVersions()List<org.apache.chemistry.opencmis.client.api.Document>getAllVersions(org.apache.chemistry.opencmis.client.api.OperationContext context)StringgetCheckinComment()org.apache.chemistry.opencmis.commons.data.ContentStreamgetContentStream()org.apache.chemistry.opencmis.commons.data.ContentStreamgetContentStream(String streamId)org.apache.chemistry.opencmis.commons.data.ContentStreamgetContentStream(String streamId, BigInteger offset, BigInteger length)org.apache.chemistry.opencmis.commons.data.ContentStreamgetContentStream(BigInteger offset, BigInteger length)StringgetContentStreamFileName()List<org.apache.chemistry.opencmis.commons.data.ContentStreamHash>getContentStreamHashes()StringgetContentStreamId()longgetContentStreamLength()StringgetContentStreamMimeType()StringgetContentUrl()StringgetContentUrl(String streamId)org.apache.chemistry.opencmis.client.api.DocumentTypegetDocumentType()StringgetLatestAccessibleStateId()org.apache.chemistry.opencmis.client.api.DocumentgetObjectOfLatestVersion(boolean major)org.apache.chemistry.opencmis.client.api.DocumentgetObjectOfLatestVersion(boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)StringgetVersionLabel()StringgetVersionSeriesCheckedOutBy()StringgetVersionSeriesCheckedOutId()StringgetVersionSeriesId()BooleanisImmutable()BooleanisLatestMajorVersion()BooleanisLatestVersion()BooleanisMajorVersion()BooleanisPrivateWorkingCopy()booleanisVersionable()BooleanisVersionSeriesCheckedOut()BooleanisVersionSeriesPrivateWorkingCopy()org.apache.chemistry.opencmis.client.api.DocumentsetContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite)org.apache.chemistry.opencmis.client.api.ObjectIdsetContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite, boolean refresh)-
Methods inherited from class org.nuxeo.ecm.core.opencmis.impl.client.NuxeoFileableObject
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolder
-
Methods inherited from class org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
addAcl, applyAcl, applyPolicy, applyPolicy, construct, delete, delete, findObjectType, getAcl, getAdapter, getAllowableActions, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getExtensions, getId, getLastModificationDate, getLastModifiedBy, getName, getPermissionsForPrincipal, getPolicies, getPolicyIds, getProperties, getProperty, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSecondaryTypes, getType, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, updateProperties, updateProperties, updateProperties, updateProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObject
addAcl, applyAcl, applyPolicy, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPermissionsForPrincipal, getPolicies, getPolicyIds, getRefreshTimestamp, getRelationships, getRenditions, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, updateProperties, updateProperties, updateProperties, updateProperties
-
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
findObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getType
-
-
-
-
Constructor Detail
-
NuxeoDocument
public NuxeoDocument(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes)
-
-
Method Detail
-
getDocumentType
public org.apache.chemistry.opencmis.client.api.DocumentType getDocumentType()
- Specified by:
getDocumentTypein interfaceorg.apache.chemistry.opencmis.client.api.Document
-
cancelCheckOut
public void cancelCheckOut()
- Specified by:
cancelCheckOutin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
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)- Specified by:
checkInin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
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
-
checkOut
public org.apache.chemistry.opencmis.client.api.ObjectId checkOut()
- Specified by:
checkOutin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
copy
public NuxeoDocument copy(org.apache.chemistry.opencmis.client.api.ObjectId target)
- Specified by:
copyin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
copy
public NuxeoDocument copy(org.apache.chemistry.opencmis.client.api.ObjectId target, Map<String,?> properties, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, 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.OperationContext context)
- Specified by:
copyin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteAllVersions
public void deleteAllVersions()
- Specified by:
deleteAllVersionsin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteContentStream
public NuxeoDocument deleteContentStream()
- Specified by:
deleteContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId deleteContentStream(boolean refresh)
- Specified by:
deleteContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getAllVersions
public List<org.apache.chemistry.opencmis.client.api.Document> getAllVersions()
- Specified by:
getAllVersionsin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getAllVersions
public List<org.apache.chemistry.opencmis.client.api.Document> getAllVersions(org.apache.chemistry.opencmis.client.api.OperationContext context)
- Specified by:
getAllVersionsin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getCheckinComment
public String getCheckinComment()
- Specified by:
getCheckinCommentin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream()
- Specified by:
getContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(String streamId)
- Specified by:
getContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(BigInteger offset, BigInteger length)
- Specified by:
getContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(String streamId, BigInteger offset, BigInteger length)
- Specified by:
getContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStreamFileName
public String getContentStreamFileName()
- Specified by:
getContentStreamFileNamein interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamId
public String getContentStreamId()
- Specified by:
getContentStreamIdin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamLength
public long getContentStreamLength()
- Specified by:
getContentStreamLengthin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamMimeType
public String getContentStreamMimeType()
- Specified by:
getContentStreamMimeTypein interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getObjectOfLatestVersion
public org.apache.chemistry.opencmis.client.api.Document getObjectOfLatestVersion(boolean major)
- Specified by:
getObjectOfLatestVersionin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getObjectOfLatestVersion
public org.apache.chemistry.opencmis.client.api.Document getObjectOfLatestVersion(boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)- Specified by:
getObjectOfLatestVersionin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getVersionLabel
public String getVersionLabel()
- Specified by:
getVersionLabelin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesCheckedOutBy
public String getVersionSeriesCheckedOutBy()
- Specified by:
getVersionSeriesCheckedOutByin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesCheckedOutId
public String getVersionSeriesCheckedOutId()
- Specified by:
getVersionSeriesCheckedOutIdin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesId
public String getVersionSeriesId()
- Specified by:
getVersionSeriesIdin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isImmutable
public Boolean isImmutable()
- Specified by:
isImmutablein interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isVersionable
public boolean isVersionable()
- Specified by:
isVersionablein interfaceorg.apache.chemistry.opencmis.client.api.Document
-
isVersionSeriesPrivateWorkingCopy
public Boolean isVersionSeriesPrivateWorkingCopy()
- Specified by:
isVersionSeriesPrivateWorkingCopyin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
isLatestMajorVersion
public Boolean isLatestMajorVersion()
- Specified by:
isLatestMajorVersionin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isLatestVersion
public Boolean isLatestVersion()
- Specified by:
isLatestVersionin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isMajorVersion
public Boolean isMajorVersion()
- Specified by:
isMajorVersionin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isVersionSeriesCheckedOut
public Boolean isVersionSeriesCheckedOut()
- Specified by:
isVersionSeriesCheckedOutin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isPrivateWorkingCopy
public Boolean isPrivateWorkingCopy()
- Specified by:
isPrivateWorkingCopyin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getLatestAccessibleStateId
public String getLatestAccessibleStateId()
- Specified by:
getLatestAccessibleStateIdin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
setContentStream
public org.apache.chemistry.opencmis.client.api.Document setContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite)- Specified by:
setContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
setContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId setContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite, boolean refresh)- Specified by:
setContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
appendContentStream
public org.apache.chemistry.opencmis.client.api.Document appendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk)- Specified by:
appendContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
appendContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId appendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk, boolean refresh)- Specified by:
appendContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStreamHashes
public List<org.apache.chemistry.opencmis.commons.data.ContentStreamHash> getContentStreamHashes()
- Specified by:
getContentStreamHashesin interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentUrl
public String getContentUrl()
- Specified by:
getContentUrlin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentUrl
public String getContentUrl(String streamId)
- Specified by:
getContentUrlin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createOverwriteOutputStream
public OutputStream createOverwriteOutputStream(String filename, String mimeType)
- Specified by:
createOverwriteOutputStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createOverwriteOutputStream
public OutputStream createOverwriteOutputStream(String filename, String mimeType, int bufferSize)
- Specified by:
createOverwriteOutputStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createAppendOutputStream
public OutputStream createAppendOutputStream()
- Specified by:
createAppendOutputStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createAppendOutputStream
public OutputStream createAppendOutputStream(int bufferSize)
- Specified by:
createAppendOutputStreamin interfaceorg.apache.chemistry.opencmis.client.api.Document
-
-