public class DocumentVersionImpl extends StoredObjectImpl implements DocumentVersion
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIdsPATH_SEPARATOR| Constructor and Description |
|---|
DocumentVersionImpl(String repositoryId,
VersionedDocument container,
ContentStream content,
VersioningState verState,
ObjectStoreImpl objStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParent(Folder parent)
Add this document to a new parent folder as child object
|
void |
appendContent(ContentStream content)
Append content to an existing content stream.
|
void |
commit(boolean isMajor)
make the private working copy an official version.
|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds) |
int |
getAclId() |
String |
getCheckinComment() |
ContentStream |
getContent(long offset,
long length)
retrieve the content of a document
|
VersionedDocument |
getParentDocument() |
List<Folder> |
getParents(String user)
return a list of parents the principal has access to.
|
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 |
rename(String newName)
Rename an object
|
void |
setAclId(int id) |
void |
setCheckinComment(String comment) |
void |
setContent(ContentStream content,
boolean mustPersist)
Assign content to a document.
|
addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRenditionContent, getRenditions, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, persist, removePolicy, setAppliedPolicies, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRenditionContent, getRenditions, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, persist, removePolicy, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModifiedpublic DocumentVersionImpl(String repositoryId, VersionedDocument container, ContentStream content, VersioningState verState, ObjectStoreImpl objStore)
public void setContent(ContentStream content, boolean mustPersist)
ContentsetContent 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(ContentStream content)
ContentappendContent in interface Contentcontent - content to be assigned to the document.public void setCheckinComment(String comment)
setCheckinComment in interface Versionpublic String getCheckinComment()
getCheckinComment in interface Versionpublic void commit(boolean isMajor)
Versionpublic ContentStream getContent(long offset, long length)
ContentgetContent in interface Contentpublic VersionedDocument getParentDocument()
getParentDocument in interface Versionpublic void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties in interface StoredObjectfillProperties in class StoredObjectImplpublic int getAclId()
getAclId in class StoredObjectImplpublic void setAclId(int id)
setAclId in class StoredObjectImplpublic List<Folder> getParents(String user)
FilinggetParents in interface Filinguser - user idpublic String getPathSegment()
MultiFilinggetPathSegment in interface MultiFilingpublic void move(Folder oldParent, Folder newParent)
Filingpublic void addParent(Folder parent)
MultiFilingaddParent in interface MultiFilingparent - new parent folder of the document.public void removeParent(Folder parent)
MultiFilingremoveParent in interface MultiFilingparent - parent folder of the documentpublic boolean hasContent()
ContenthasContent in interface Contentpublic boolean hasParent()
Filingpublic void rename(String newName)
StoredObjectrename in interface StoredObjectrename in class StoredObjectImplnewName - the new name of the objectpublic String getVersionLabel()
getVersionLabel in interface VersionCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.