public class TransientDocumentImpl extends AbstractTransientFileableCmisObject implements TransientDocument
AbstractTransientCmisObject.AceChangeHolderacl, addAces, addPolicies, allowableActions, deleteAllVersions, inputExtensions, isMarkedForDelete, isModified, isPropertyUpdateRequired, object, ouputExtensions, policies, properties, relationships, removeAces, removePolicies, renditions, session| Constructor and Description |
|---|
TransientDocumentImpl() |
| Modifier and Type | Method and Description |
|---|---|
ObjectId |
checkIn(boolean major,
String checkinComment) |
Document |
copy(ObjectId targetFolderId) |
Document |
copy(ObjectId targetFolderId,
Map<String,?> properties,
VersioningState versioningState,
List<Policy> policies,
List<Ace> addACEs,
List<Ace> removeACEs,
OperationContext context) |
void |
deleteAllVersions() |
void |
deleteContentStream() |
List<Document> |
getAllVersions() |
List<Document> |
getAllVersions(OperationContext context) |
String |
getCheckinComment()
Returns the checkin comment (CMIS property
cmis:checkinComment). |
ContentStream |
getContentStream() |
ContentStream |
getContentStream(String streamId) |
String |
getContentStreamFileName()
Returns the content stream filename or
null if the document
has no content (CMIS property cmis:contentStreamFileName). |
String |
getContentStreamId()
Returns the content stream id or
null if the document has no
content (CMIS property cmis:contentStreamId). |
long |
getContentStreamLength()
Returns the content stream length or -1 if the document has no content
(CMIS property
cmis:contentStreamLength). |
String |
getContentStreamMimeType()
Returns the content stream MIME type or
null if the document
has no content (CMIS property cmis:contentStreamMimeType). |
Document |
getObjectOfLatestVersion(boolean major) |
Document |
getObjectOfLatestVersion(boolean major,
OperationContext context) |
String |
getVersionLabel()
Returns the version label (CMIS property
cmis:versionLabel). |
String |
getVersionSeriesCheckedOutBy()
Returns the user who checked out this version series (CMIS property
cmis:versionSeriesCheckedOutBy). |
String |
getVersionSeriesCheckedOutId()
Returns the PWC id of this version series (CMIS property
cmis:versionSeriesCheckedOutId). |
String |
getVersionSeriesId()
Returns the version series id (CMIS property
cmis:versionSeriesId). |
protected void |
initialize(Session session,
CmisObject object) |
Boolean |
isImmutable()
Returns
true if this CMIS object is immutable (CMIS property
cmis:isImmutable). |
Boolean |
isLatestMajorVersion()
Returns
true if this CMIS object is the latest major version (CMIS property
cmis:isLatestMajorVersion). |
Boolean |
isLatestVersion()
Returns if this CMIS object is the latest version (CMIS property
cmis:isLatestVersion). |
Boolean |
isMajorVersion()
Returns
true |
Boolean |
isVersionSeriesCheckedOut()
Returns
true if this version series is checked out (CMIS property
cmis:isVersionSeriesCheckedOut). |
ObjectId |
save() |
protected String |
saveContent(String objectId,
String changeToken) |
void |
setContentStream(ContentStream contentStream,
boolean overwrite) |
addToFolder, getParents, getPaths, move, removeFromFolderaddAce, applyPolicy, delete, getAllowableActions, getBaseType, getBaseTypeId, getBinding, getChangeToken, getCmisObject, getCreatedBy, getCreationDate, getId, getInputExtensions, getLastModificationDate, getLastModifiedBy, getLatestChangeToken, getName, getObjectFactory, getObjectId, getOriginalAcl, getOutputExtensions, getPolicies, getProperties, getProperty, getPropertyValue, getRelationships, getRenditions, getRepositoryId, getSession, getType, isMarkedForDelete, isModified, prepareAcl, prepareProperties, refreshAndReset, removeAce, removePolicy, reset, saveACL, saveDelete, savePolicies, saveProperties, setName, setOutputExtensions, setPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddToFolder, getParents, getPaths, move, removeFromFolderaddAce, applyPolicy, delete, getAllowableActions, getCmisObject, getInputExtensions, getOriginalAcl, getOutputExtensions, getPolicies, getRelationships, getRenditions, isMarkedForDelete, isModified, refreshAndReset, removeAce, removePolicy, reset, setName, setOutputExtensions, setPropertyValuegetBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getTypeprotected void initialize(Session session, CmisObject object)
initialize in class AbstractTransientCmisObjectpublic void deleteAllVersions()
deleteAllVersions in interface TransientDocumentpublic ContentStream getContentStream()
getContentStream in interface TransientDocumentpublic ContentStream getContentStream(String streamId)
getContentStream in interface TransientDocumentpublic void setContentStream(ContentStream contentStream, boolean overwrite)
setContentStream in interface TransientDocumentpublic void deleteContentStream()
deleteContentStream in interface TransientDocumentpublic Document getObjectOfLatestVersion(boolean major)
getObjectOfLatestVersion in interface TransientDocumentpublic Document getObjectOfLatestVersion(boolean major, OperationContext context)
getObjectOfLatestVersion in interface TransientDocumentpublic List<Document> getAllVersions()
getAllVersions in interface TransientDocumentpublic List<Document> getAllVersions(OperationContext context)
getAllVersions in interface TransientDocumentpublic Document copy(ObjectId targetFolderId)
copy in interface TransientDocumentpublic Document copy(ObjectId targetFolderId, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addACEs, List<Ace> removeACEs, OperationContext context)
copy in interface TransientDocumentpublic String getCheckinComment()
DocumentPropertiescmis:checkinComment).getCheckinComment in interface DocumentPropertiespublic String getVersionLabel()
DocumentPropertiescmis:versionLabel).getVersionLabel in interface DocumentPropertiespublic String getVersionSeriesId()
DocumentPropertiescmis:versionSeriesId).getVersionSeriesId in interface DocumentPropertiespublic String getVersionSeriesCheckedOutId()
DocumentPropertiescmis:versionSeriesCheckedOutId).getVersionSeriesCheckedOutId in interface DocumentPropertiespublic String getVersionSeriesCheckedOutBy()
DocumentPropertiescmis:versionSeriesCheckedOutBy).getVersionSeriesCheckedOutBy in interface DocumentPropertiespublic Boolean isImmutable()
DocumentPropertiestrue if this CMIS object is immutable (CMIS property
cmis:isImmutable).isImmutable in interface DocumentPropertiespublic Boolean isLatestMajorVersion()
DocumentPropertiestrue if this CMIS object is the latest major version (CMIS property
cmis:isLatestMajorVersion).isLatestMajorVersion in interface DocumentPropertiespublic Boolean isLatestVersion()
DocumentPropertiescmis:isLatestVersion).isLatestVersion in interface DocumentPropertiespublic Boolean isMajorVersion()
DocumentPropertiestrue if this CMIS object is the latest version (CMIS property
cmis:isMajorVersion).isMajorVersion in interface DocumentPropertiespublic Boolean isVersionSeriesCheckedOut()
DocumentPropertiestrue if this version series is checked out (CMIS property
cmis:isVersionSeriesCheckedOut).isVersionSeriesCheckedOut in interface DocumentPropertiespublic long getContentStreamLength()
DocumentPropertiescmis:contentStreamLength).getContentStreamLength in interface DocumentPropertiespublic String getContentStreamMimeType()
DocumentPropertiesnull if the document
has no content (CMIS property cmis:contentStreamMimeType).getContentStreamMimeType in interface DocumentPropertiespublic String getContentStreamFileName()
DocumentPropertiesnull if the document
has no content (CMIS property cmis:contentStreamFileName).getContentStreamFileName in interface DocumentPropertiespublic String getContentStreamId()
DocumentPropertiesnull if the document has no
content (CMIS property cmis:contentStreamId).getContentStreamId in interface DocumentPropertiespublic ObjectId save()
save in interface TransientCmisObjectsave in class AbstractTransientCmisObjectpublic ObjectId checkIn(boolean major, String checkinComment)
checkIn in interface TransientDocumentCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.