|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoredObjectImpl
it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.DocumentVersionImpl
public class DocumentVersionImpl
A class representing a single version of a document
| Field Summary | |
|---|---|
protected DocumentContent |
fNativeVerObject
|
(package private) java.lang.String |
label
|
| Fields inherited from class it.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoredObjectImpl |
|---|
fNativeObject, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIds |
| Fields inherited from interface it.sistematica.isharedoc.opencmis.indatabase.storedobj.api.Filing |
|---|
PATH_SEPARATOR |
| Constructor Summary | |
|---|---|
DocumentVersionImpl(java.lang.String repositoryId,
VersionedDocument container,
DocumentContent nativeVerObject,
ObjectStoreImpl objStore)
|
|
| Method Summary | |
|---|---|
void |
addParent(Folder parent)
Add this document to a new parent folder as child object |
void |
appendContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
Append content to an existing content stream. |
void |
commit(boolean isMajor)
make the private working copy an official version. |
void |
fillProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties,
org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objFactory,
java.util.List<java.lang.String> requestedIds)
|
java.lang.String |
getCheckinComment()
|
org.apache.chemistry.opencmis.commons.data.ContentStream |
getContent(long offset,
long length)
retrieve the content of a document |
java.util.GregorianCalendar |
getCreatedAt()
|
java.lang.String |
getCreatedBy()
Retrieve the user who created the document |
DocumentContent |
getfNativeVerObject()
|
java.lang.String |
getId()
Retrieve the id of this object. |
java.lang.String |
getName()
Retrieve the name of this object |
VersionedDocument |
getParentDocument()
|
java.util.List<Folder> |
getParents(java.lang.String user)
return a list of parents the principal has access to. for single parent object this list must contain only one element. returns an empty list if this is an unfiled document. |
java.lang.String |
getPathSegment()
retrieve the path segment of this folder |
java.lang.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 |
rename(java.lang.String newName)
Rename an object |
void |
setCheckinComment(java.lang.String comment)
|
void |
setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content,
boolean mustPersist)
Assign content to a document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.sistematica.isharedoc.opencmis.indatabase.storedobj.api.StoredObject |
|---|
addAcl, addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getDescription, getModifiedAt, getModifiedBy, getNativeObject, getObjectRelationships, getProperties, getRenditionContent, getRenditions, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, persist, removeAcl, removePolicy, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setNativeObject, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified |
| Field Detail |
|---|
protected DocumentContent fNativeVerObject
java.lang.String label
| Constructor Detail |
|---|
public DocumentVersionImpl(java.lang.String repositoryId,
VersionedDocument container,
DocumentContent nativeVerObject,
ObjectStoreImpl objStore)
| Method Detail |
|---|
public java.lang.String getId()
StoredObject
getId in interface StoredObjectgetId in class StoredObjectImplpublic java.lang.String getName()
StoredObject
getName in interface StoredObjectgetName in class StoredObjectImplpublic java.lang.String getCreatedBy()
StoredObject
getCreatedBy in interface StoredObjectgetCreatedBy in class StoredObjectImplpublic java.util.GregorianCalendar getCreatedAt()
getCreatedAt in interface StoredObjectgetCreatedAt in class StoredObjectImplpublic DocumentContent getfNativeVerObject()
public void setContent(org.apache.chemistry.opencmis.commons.data.ContentStream content,
boolean mustPersist)
Content
setContent in interface Contentcontent - content to be assigned to the document.mustPersist - persist document (set to false if content is set during
creation of a document)public void appendContent(org.apache.chemistry.opencmis.commons.data.ContentStream content)
Content
appendContent in interface Contentcontent - content to be assigned to the document.public void setCheckinComment(java.lang.String comment)
setCheckinComment in interface Versionpublic java.lang.String getCheckinComment()
getCheckinComment in interface Versionpublic boolean isMajor()
isMajor in interface Versionpublic boolean isPwc()
isPwc in interface Versionpublic void commit(boolean isMajor)
Version
commit in interface Version
public org.apache.chemistry.opencmis.commons.data.ContentStream getContent(long offset,
long length)
Content
getContent in interface Contentpublic VersionedDocument getParentDocument()
getParentDocument in interface Version
public void fillProperties(java.util.Map<java.lang.String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> properties,
org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory objFactory,
java.util.List<java.lang.String> requestedIds)
fillProperties in interface StoredObjectfillProperties in class StoredObjectImplpublic java.util.List<Folder> getParents(java.lang.String user)
Filing
getParents in interface Filinguser - user id
public java.lang.String getPathSegment()
MultiFiling
getPathSegment in interface MultiFiling
public void move(Folder oldParent,
Folder newParent)
Filing
move in interface FilingnewParent - new parent folder for the objectpublic void addParent(Folder parent)
MultiFiling
addParent in interface MultiFilingparent - new parent folder of the document.public void removeParent(Folder parent)
MultiFiling
removeParent in interface MultiFilingparent - parent folder of the documentpublic boolean hasContent()
Content
hasContent in interface Contentpublic boolean hasParent()
Filing
hasParent in interface Filingpublic void rename(java.lang.String newName)
StoredObject
rename in interface StoredObjectrename in class StoredObjectImplnewName - the new name of the objectpublic java.lang.String getVersionLabel()
getVersionLabel in interface Version
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||