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
ConstructorDescriptionNuxeoDocument
(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.client.api.Document
appendContentStream
(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk) org.apache.chemistry.opencmis.client.api.ObjectId
appendContentStream
(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk, boolean refresh) void
org.apache.chemistry.opencmis.client.api.ObjectId
checkIn
(boolean major, Map<String, ?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment) 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) org.apache.chemistry.opencmis.client.api.ObjectId
checkOut()
copy
(org.apache.chemistry.opencmis.client.api.ObjectId target) 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) createAppendOutputStream
(int bufferSize) createOverwriteOutputStream
(String filename, String mimeType) createOverwriteOutputStream
(String filename, String mimeType, int bufferSize) void
org.apache.chemistry.opencmis.client.api.ObjectId
deleteContentStream
(boolean refresh) List<org.apache.chemistry.opencmis.client.api.Document>
List<org.apache.chemistry.opencmis.client.api.Document>
getAllVersions
(org.apache.chemistry.opencmis.client.api.OperationContext context) org.apache.chemistry.opencmis.commons.data.ContentStream
org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream
(String streamId) org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream
(String streamId, BigInteger offset, BigInteger length) org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream
(BigInteger offset, BigInteger length) List<org.apache.chemistry.opencmis.commons.data.ContentStreamHash>
long
getContentUrl
(String streamId) org.apache.chemistry.opencmis.client.api.DocumentType
org.apache.chemistry.opencmis.client.api.Document
getObjectOfLatestVersion
(boolean major) org.apache.chemistry.opencmis.client.api.Document
getObjectOfLatestVersion
(boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context) boolean
org.apache.chemistry.opencmis.client.api.Document
setContentStream
(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite) org.apache.chemistry.opencmis.client.api.ObjectId
setContentStream
(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
Methods inherited from interface org.apache.chemistry.opencmis.client.api.FileableCmisObject
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolder
Methods inherited from interface org.apache.chemistry.opencmis.client.api.ObjectId
getId
-
Constructor Details
-
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 Details
-
getDocumentType
public org.apache.chemistry.opencmis.client.api.DocumentType getDocumentType()- Specified by:
getDocumentType
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
cancelCheckOut
public void cancelCheckOut()- Specified by:
cancelCheckOut
in 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:
checkIn
in 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:
checkIn
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
checkOut
public org.apache.chemistry.opencmis.client.api.ObjectId checkOut()- Specified by:
checkOut
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
copy
- Specified by:
copy
in 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:
copy
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteAllVersions
public void deleteAllVersions()- Specified by:
deleteAllVersions
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteContentStream
- Specified by:
deleteContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId deleteContentStream(boolean refresh) - Specified by:
deleteContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getAllVersions
- Specified by:
getAllVersions
in 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:
getAllVersions
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getCheckinComment
- Specified by:
getCheckinComment
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream()- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(BigInteger offset, BigInteger length) - Specified by:
getContentStream
in 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:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStreamFileName
- Specified by:
getContentStreamFileName
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamId
- Specified by:
getContentStreamId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamLength
public long getContentStreamLength()- Specified by:
getContentStreamLength
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamMimeType
- Specified by:
getContentStreamMimeType
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getObjectOfLatestVersion
public org.apache.chemistry.opencmis.client.api.Document getObjectOfLatestVersion(boolean major) - Specified by:
getObjectOfLatestVersion
in 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:
getObjectOfLatestVersion
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getVersionLabel
- Specified by:
getVersionLabel
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesCheckedOutBy
- Specified by:
getVersionSeriesCheckedOutBy
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesCheckedOutId
- Specified by:
getVersionSeriesCheckedOutId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesId
- Specified by:
getVersionSeriesId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isImmutable
- Specified by:
isImmutable
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isVersionable
public boolean isVersionable()- Specified by:
isVersionable
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
isVersionSeriesPrivateWorkingCopy
- Specified by:
isVersionSeriesPrivateWorkingCopy
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
isLatestMajorVersion
- Specified by:
isLatestMajorVersion
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isLatestVersion
- Specified by:
isLatestVersion
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isMajorVersion
- Specified by:
isMajorVersion
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isVersionSeriesCheckedOut
- Specified by:
isVersionSeriesCheckedOut
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isPrivateWorkingCopy
- Specified by:
isPrivateWorkingCopy
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getLatestAccessibleStateId
- Specified by:
getLatestAccessibleStateId
in 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:
setContentStream
in 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:
setContentStream
in 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:
appendContentStream
in 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:
appendContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStreamHashes
- Specified by:
getContentStreamHashes
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentUrl
- Specified by:
getContentUrl
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentUrl
- Specified by:
getContentUrl
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createOverwriteOutputStream
- Specified by:
createOverwriteOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createOverwriteOutputStream
- Specified by:
createOverwriteOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createAppendOutputStream
- Specified by:
createAppendOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createAppendOutputStream
- Specified by:
createAppendOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-