public class DocumentImpl extends AbstractFilableCmisObject implements Document
| Constructor and Description |
|---|
DocumentImpl(SessionImpl session,
ObjectType objectType,
ObjectData objectData,
OperationContext context)
Constructor.
|
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolderaddAcl, 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, getPolicyIds, getProperties, getProperty, getPropertyQueryName, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSecondaryTypes, getSession, getType, hasAllowableAction, initialize, readLock, readUnlock, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, toString, updateProperties, updateProperties, updateProperties, updateProperties, writeLock, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddToFolder, getParents, getParents, getPaths, move, move, removeFromFolderaddAcl, 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, updatePropertiesfindObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getTypepublic DocumentImpl(SessionImpl session, ObjectType objectType, ObjectData objectData, OperationContext context)
public DocumentType getDocumentType()
getDocumentType in interface Documentpublic boolean isVersionable()
isVersionable in interface Documentpublic Boolean isVersionSeriesPrivateWorkingCopy()
isVersionSeriesPrivateWorkingCopy in interface Documentpublic String getCheckinComment()
getCheckinComment in interface DocumentPropertiespublic String getVersionLabel()
getVersionLabel in interface DocumentPropertiespublic String getVersionSeriesId()
getVersionSeriesId in interface DocumentPropertiespublic String getVersionSeriesCheckedOutId()
getVersionSeriesCheckedOutId in interface DocumentPropertiespublic String getVersionSeriesCheckedOutBy()
getVersionSeriesCheckedOutBy in interface DocumentPropertiespublic Boolean isImmutable()
isImmutable in interface DocumentPropertiespublic Boolean isLatestMajorVersion()
isLatestMajorVersion in interface DocumentPropertiespublic Boolean isLatestVersion()
isLatestVersion in interface DocumentPropertiespublic Boolean isMajorVersion()
isMajorVersion in interface DocumentPropertiespublic Boolean isPrivateWorkingCopy()
isPrivateWorkingCopy in interface DocumentPropertiespublic Boolean isVersionSeriesCheckedOut()
isVersionSeriesCheckedOut in interface DocumentPropertiespublic long getContentStreamLength()
getContentStreamLength in interface DocumentPropertiespublic String getContentStreamMimeType()
getContentStreamMimeType in interface DocumentPropertiespublic String getContentStreamFileName()
getContentStreamFileName in interface DocumentPropertiespublic String getContentStreamId()
getContentStreamId in interface DocumentPropertiespublic List<ContentStreamHash> getContentStreamHashes()
getContentStreamHashes in interface DocumentPropertiespublic String getLatestAccessibleStateId()
getLatestAccessibleStateId in interface DocumentPropertiespublic Document copy(ObjectId targetFolderId, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
protected ObjectId copyViaClient(ObjectId targetFolderId, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public void deleteAllVersions()
deleteAllVersions in interface Documentpublic void cancelCheckOut()
cancelCheckOut in interface Documentpublic ObjectId checkIn(boolean major, Map<String,?> properties, ContentStream contentStream, String checkinComment, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
public List<Document> getAllVersions()
getAllVersions in interface Documentpublic List<Document> getAllVersions(OperationContext context)
getAllVersions in interface Documentpublic Document getObjectOfLatestVersion(boolean major)
getObjectOfLatestVersion in interface Documentpublic Document getObjectOfLatestVersion(boolean major, OperationContext context)
getObjectOfLatestVersion in interface Documentpublic ContentStream getContentStream()
getContentStream in interface Documentpublic ContentStream getContentStream(BigInteger offset, BigInteger length)
getContentStream in interface Documentpublic ContentStream getContentStream(String streamId)
getContentStream in interface Documentpublic ContentStream getContentStream(String streamId, BigInteger offset, BigInteger length)
getContentStream in interface Documentpublic String getContentUrl()
getContentUrl in interface Documentpublic String getContentUrl(String streamId)
getContentUrl in interface Documentpublic Document setContentStream(ContentStream contentStream, boolean overwrite)
setContentStream in interface Documentpublic ObjectId setContentStream(ContentStream contentStream, boolean overwrite, boolean refresh)
setContentStream in interface Documentpublic Document appendContentStream(ContentStream contentStream, boolean isLastChunk)
appendContentStream in interface Documentpublic ObjectId appendContentStream(ContentStream contentStream, boolean isLastChunk, boolean refresh)
appendContentStream in interface Documentpublic Document deleteContentStream()
deleteContentStream in interface Documentpublic ObjectId deleteContentStream(boolean refresh)
deleteContentStream in interface Documentpublic OutputStream createOverwriteOutputStream(String filename, String mimeType)
createOverwriteOutputStream in interface Documentpublic OutputStream createOverwriteOutputStream(String filename, String mimeType, int bufferSize)
createOverwriteOutputStream in interface Documentpublic OutputStream createAppendOutputStream()
createAppendOutputStream in interface Documentpublic OutputStream createAppendOutputStream(int bufferSize)
createAppendOutputStream in interface DocumentCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.