|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Document
CMIS Document.
Domain Model 2.4
Method Summary | |
---|---|
void |
cancelCheckOut()
If this is a PWC (private working copy) the check out will be reversed. |
ObjectId |
checkIn(boolean major,
java.util.Map<java.lang.String,?> properties,
ContentStream contentStream,
java.lang.String checkinComment)
If this is a PWC (private working copy) it performs a check in. |
ObjectId |
checkIn(boolean major,
java.util.Map<java.lang.String,?> properties,
ContentStream contentStream,
java.lang.String checkinComment,
java.util.List<Policy> policies,
java.util.List<Ace> addAces,
java.util.List<Ace> removeAces)
If this is a PWC (private working copy) it performs a check in. |
ObjectId |
checkOut()
Checks out the document and returns the object id of the PWC (private working copy). |
Document |
copy(ObjectId targetFolderId)
Creates a copy of this document, including content. |
Document |
copy(ObjectId targetFolderId,
java.util.Map<java.lang.String,?> properties,
VersioningState versioningState,
java.util.List<Policy> policies,
java.util.List<Ace> addACEs,
java.util.List<Ace> removeACEs,
OperationContext context)
Creates a copy of this document, including content. |
void |
deleteAllVersions()
Deletes this document and all its versions. |
Document |
deleteContentStream()
Removes the current content stream from the document. |
ObjectId |
deleteContentStream(boolean refresh)
Removes the current content stream from the document. |
java.util.List<Document> |
getAllVersions()
Fetches all versions of this document. |
java.util.List<Document> |
getAllVersions(OperationContext context)
Fetches all versions of this document using the given OperationContext . |
ContentStream |
getContentStream()
Retrieves the content stream of this document. |
ContentStream |
getContentStream(java.lang.String streamId)
Retrieves the content stream that is associated with the given stream id. |
Document |
getObjectOfLatestVersion(boolean major)
Fetches the latest major or minor version of this document. |
Document |
getObjectOfLatestVersion(boolean major,
OperationContext context)
Fetches the latest major or minor version of this document using the given OperationContext . |
TransientDocument |
getTransientDocument()
|
Document |
setContentStream(ContentStream contentStream,
boolean overwrite)
Sets a new content stream for the document. |
ObjectId |
setContentStream(ContentStream contentStream,
boolean overwrite,
boolean refresh)
Sets a new content stream for the document. |
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.CmisObject |
---|
addAcl, applyAcl, applyPolicy, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, getTransientObject, refresh, refreshIfOld, removeAcl, removePolicy, updateProperties, updateProperties |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.ObjectId |
---|
getId |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties |
---|
getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getType |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.DocumentProperties |
---|
getCheckinComment, getContentStreamFileName, getContentStreamId, getContentStreamLength, getContentStreamMimeType, getVersionLabel, getVersionSeriesCheckedOutBy, getVersionSeriesCheckedOutId, getVersionSeriesId, isImmutable, isLatestMajorVersion, isLatestVersion, isMajorVersion, isVersionSeriesCheckedOut |
Method Detail |
---|
TransientDocument getTransientDocument()
void deleteAllVersions()
ContentStream getContentStream()
null
ContentStream getContentStream(java.lang.String streamId)
null
Document setContentStream(ContentStream contentStream, boolean overwrite)
ObjectId setContentStream(ContentStream contentStream, boolean overwrite, boolean refresh)
Document deleteContentStream()
ObjectId deleteContentStream(boolean refresh)
ObjectId checkOut()
void cancelCheckOut()
ObjectId checkIn(boolean major, java.util.Map<java.lang.String,?> properties, ContentStream contentStream, java.lang.String checkinComment, java.util.List<Policy> policies, java.util.List<Ace> addAces, java.util.List<Ace> removeAces)
ObjectId checkIn(boolean major, java.util.Map<java.lang.String,?> properties, ContentStream contentStream, java.lang.String checkinComment)
Document getObjectOfLatestVersion(boolean major)
major
- if true
the latest major version will be
returned, otherwise the very last version will be returned
Document getObjectOfLatestVersion(boolean major, OperationContext context)
OperationContext
.
major
- if true
the latest major version will be
returned, otherwise the very last version will be returned
java.util.List<Document> getAllVersions()
java.util.List<Document> getAllVersions(OperationContext context)
OperationContext
.
Document copy(ObjectId targetFolderId)
Document copy(ObjectId targetFolderId, java.util.Map<java.lang.String,?> properties, VersioningState versioningState, java.util.List<Policy> policies, java.util.List<Ace> addACEs, java.util.List<Ace> removeACEs, OperationContext context)
null
if the parameter
context
was set to null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |