|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl
org.apache.chemistry.opencmis.inmemory.storedobj.impl.DocumentVersionImpl
public class DocumentVersionImpl
A class representing a single version of a document
Field Summary |
---|
Fields inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
---|
fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId |
Fields inherited from interface org.apache.chemistry.opencmis.inmemory.storedobj.api.Filing |
---|
PATH_SEPARATOR |
Constructor Summary | |
---|---|
DocumentVersionImpl(String repositoryId,
VersionedDocument container,
ContentStream content,
VersioningState verState,
ObjectStoreImpl objStore)
|
Method Summary | |
---|---|
void |
addParent(Folder parent)
Add this document to a new parent folder as child object |
void |
commit(boolean isMajor)
make the private working copy an official version. |
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds)
|
String |
getCheckinComment()
|
ContentStream |
getContent(long offset,
long length)
retrieve the content of a document |
VersionedDocument |
getParentDocument()
|
List<Folder> |
getParents()
return a list of parents. |
String |
getPathSegment()
retrieve the path segment of this folder |
String |
getVersionLabel()
|
boolean |
hasContent()
return true if this object has content or false if there is no content attached. |
boolean |
hasParent()
usually true except for the root folder, optimized call that just tests existence to provide information for AtomPub links (much cheaper than calling getParents() and test for empty result. |
boolean |
isMajor()
|
boolean |
isPwc()
|
void |
move(Folder oldParent,
Folder newParent)
Move an object to a different folder. |
void |
removeParent(Folder parent)
Remove this object from the children of parent |
void |
setCheckinComment(String comment)
|
void |
setContent(ContentStream content,
boolean mustPersist)
Assign content do a document. |
Methods inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
---|
createSystemBasePropertiesWhenCreated, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, updateSystemBasePropertiesWhenModified |
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.inmemory.storedobj.api.StoredObject |
---|
createSystemBasePropertiesWhenCreated, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified |
Constructor Detail |
---|
public DocumentVersionImpl(String repositoryId, VersionedDocument container, ContentStream content, VersioningState verState, ObjectStoreImpl objStore)
Method Detail |
---|
public void setContent(ContentStream content, boolean mustPersist)
Content
setContent
in interface Content
content
- content to be assigned to the document.mustPersist
- persist document (set to false if content is set during
creation of a document)public void setCheckinComment(String comment)
setCheckinComment
in interface Version
public String getCheckinComment()
getCheckinComment
in interface Version
public String getVersionLabel()
getVersionLabel
in interface Version
public boolean isMajor()
isMajor
in interface Version
public boolean isPwc()
isPwc
in interface Version
public void commit(boolean isMajor)
Version
commit
in interface Version
public ContentStream getContent(long offset, long length)
Content
getContent
in interface Content
public VersionedDocument getParentDocument()
getParentDocument
in interface Version
public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
public List<Folder> getParents()
Filing
getParents
in interface Filing
public String getPathSegment()
MultiFiling
getPathSegment
in interface MultiFiling
public void move(Folder oldParent, Folder newParent)
Filing
move
in interface Filing
newParent
- new parent folder for the objectpublic void addParent(Folder parent)
MultiFiling
addParent
in interface MultiFiling
parent
- new parent folder of the document.public void removeParent(Folder parent)
MultiFiling
removeParent
in interface MultiFiling
parent
- parent folder of the documentpublic boolean hasContent()
Content
hasContent
in interface Content
public boolean hasParent()
Filing
hasParent
in interface Filing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |