|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
org.apache.chemistry.opencmis.client.runtime.AbstractTransientFileableCmisObject
org.apache.chemistry.opencmis.client.runtime.TransientDocumentImpl
public class TransientDocumentImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject |
---|
AbstractTransientCmisObject.AceChangeHolder |
Field Summary |
---|
Fields inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject |
---|
acl, addAces, addPolicies, allowableActions, deleteAllVersions, inputExtensions, isMarkedForDelete, isModified, isPropertyUpdateRequired, object, ouputExtensions, policies, properties, relationships, removeAces, removePolicies, renditions, session |
Constructor Summary | |
---|---|
TransientDocumentImpl()
|
Method Summary | |
---|---|
ObjectId |
checkIn(boolean major,
java.lang.String checkinComment)
|
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)
|
void |
deleteAllVersions()
|
void |
deleteContentStream()
|
java.util.List<Document> |
getAllVersions()
|
java.util.List<Document> |
getAllVersions(OperationContext context)
|
java.lang.String |
getCheckinComment()
Returns the checkin comment (CMIS property cmis:checkinComment ). |
ContentStream |
getContentStream()
|
ContentStream |
getContentStream(java.lang.String streamId)
|
java.lang.String |
getContentStreamFileName()
Returns the content stream filename or null if the document
has no content (CMIS property cmis:contentStreamFileName ). |
java.lang.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 ). |
java.lang.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)
|
java.lang.String |
getVersionLabel()
Returns the version label (CMIS property cmis:versionLabel ). |
java.lang.String |
getVersionSeriesCheckedOutBy()
Returns the user who checked out this version series (CMIS property cmis:versionSeriesCheckedOutBy ). |
java.lang.String |
getVersionSeriesCheckedOutId()
Returns the PWC id of this version series (CMIS property cmis:versionSeriesCheckedOutId ). |
java.lang.String |
getVersionSeriesId()
Returns the version series id (CMIS property cmis:versionSeriesId ). |
protected void |
initialize(Session session,
CmisObject object)
|
java.lang.Boolean |
isImmutable()
Returns true if this CMIS object is immutable (CMIS property
cmis:isImmutable ). |
java.lang.Boolean |
isLatestMajorVersion()
Returns true if this CMIS object is the latest major version (CMIS property
cmis:isLatestMajorVersion ). |
java.lang.Boolean |
isLatestVersion()
Returns if this CMIS object is the latest version (CMIS property cmis:isLatestVersion ). |
java.lang.Boolean |
isMajorVersion()
Returns true |
java.lang.Boolean |
isVersionSeriesCheckedOut()
Returns true if this version series is checked out (CMIS property
cmis:isVersionSeriesCheckedOut ). |
ObjectId |
save()
|
protected java.lang.String |
saveContent(java.lang.String objectId,
java.lang.String changeToken)
|
void |
setContentStream(ContentStream contentStream,
boolean overwrite)
|
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientFileableCmisObject |
---|
addToFolder, getParents, getPaths, move, removeFromFolder |
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject |
---|
addAce, 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, setPropertyValue |
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.TransientFileableCmisObject |
---|
addToFolder, getParents, getPaths, move, removeFromFolder |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.TransientCmisObject |
---|
addAce, applyPolicy, delete, getAllowableActions, getCmisObject, getInputExtensions, getOriginalAcl, getOutputExtensions, getPolicies, getRelationships, getRenditions, isMarkedForDelete, isModified, refreshAndReset, removeAce, removePolicy, reset, setName, setOutputExtensions, setPropertyValue |
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 |
Constructor Detail |
---|
public TransientDocumentImpl()
Method Detail |
---|
protected void initialize(Session session, CmisObject object)
initialize
in class AbstractTransientCmisObject
public void deleteAllVersions()
deleteAllVersions
in interface TransientDocument
public ContentStream getContentStream()
getContentStream
in interface TransientDocument
public ContentStream getContentStream(java.lang.String streamId)
getContentStream
in interface TransientDocument
public void setContentStream(ContentStream contentStream, boolean overwrite)
setContentStream
in interface TransientDocument
public void deleteContentStream()
deleteContentStream
in interface TransientDocument
public Document getObjectOfLatestVersion(boolean major)
getObjectOfLatestVersion
in interface TransientDocument
public Document getObjectOfLatestVersion(boolean major, OperationContext context)
getObjectOfLatestVersion
in interface TransientDocument
public java.util.List<Document> getAllVersions()
getAllVersions
in interface TransientDocument
public java.util.List<Document> getAllVersions(OperationContext context)
getAllVersions
in interface TransientDocument
public Document copy(ObjectId targetFolderId)
copy
in interface TransientDocument
public 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)
copy
in interface TransientDocument
public java.lang.String getCheckinComment()
DocumentProperties
cmis:checkinComment
).
getCheckinComment
in interface DocumentProperties
public java.lang.String getVersionLabel()
DocumentProperties
cmis:versionLabel
).
getVersionLabel
in interface DocumentProperties
public java.lang.String getVersionSeriesId()
DocumentProperties
cmis:versionSeriesId
).
getVersionSeriesId
in interface DocumentProperties
public java.lang.String getVersionSeriesCheckedOutId()
DocumentProperties
cmis:versionSeriesCheckedOutId
).
getVersionSeriesCheckedOutId
in interface DocumentProperties
public java.lang.String getVersionSeriesCheckedOutBy()
DocumentProperties
cmis:versionSeriesCheckedOutBy
).
getVersionSeriesCheckedOutBy
in interface DocumentProperties
public java.lang.Boolean isImmutable()
DocumentProperties
true
if this CMIS object is immutable (CMIS property
cmis:isImmutable
).
isImmutable
in interface DocumentProperties
public java.lang.Boolean isLatestMajorVersion()
DocumentProperties
true
if this CMIS object is the latest major version (CMIS property
cmis:isLatestMajorVersion
).
isLatestMajorVersion
in interface DocumentProperties
public java.lang.Boolean isLatestVersion()
DocumentProperties
cmis:isLatestVersion
).
isLatestVersion
in interface DocumentProperties
public java.lang.Boolean isMajorVersion()
DocumentProperties
true if this CMIS object is the latest version (CMIS property
cmis:isMajorVersion
).
- Specified by:
isMajorVersion
in interface DocumentProperties
public java.lang.Boolean isVersionSeriesCheckedOut()
DocumentProperties
true
if this version series is checked out (CMIS property
cmis:isVersionSeriesCheckedOut
).
isVersionSeriesCheckedOut
in interface DocumentProperties
public long getContentStreamLength()
DocumentProperties
cmis:contentStreamLength
).
getContentStreamLength
in interface DocumentProperties
public java.lang.String getContentStreamMimeType()
DocumentProperties
null
if the document
has no content (CMIS property cmis:contentStreamMimeType
).
getContentStreamMimeType
in interface DocumentProperties
public java.lang.String getContentStreamFileName()
DocumentProperties
null
if the document
has no content (CMIS property cmis:contentStreamFileName
).
getContentStreamFileName
in interface DocumentProperties
public java.lang.String getContentStreamId()
DocumentProperties
null
if the document has no
content (CMIS property cmis:contentStreamId
).
getContentStreamId
in interface DocumentProperties
public ObjectId save()
save
in interface TransientCmisObject
save
in class AbstractTransientCmisObject
protected java.lang.String saveContent(java.lang.String objectId, java.lang.String changeToken)
public ObjectId checkIn(boolean major, java.lang.String checkinComment)
checkIn
in interface TransientDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |