public class DocumentVersionImpl extends StoredObjectImpl implements DocumentVersion, MultiFiling
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, policyIds, secondaryTypeIdsPATH_SEPARATOR| Constructor and Description |
|---|
DocumentVersionImpl(String repositoryId,
VersionedDocument container,
VersioningState verState) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParentId(String parentId)
Add parent folder to this document.
|
void |
commit(boolean isMajor)
make the private working copy an official version.
|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds)
fill a passed map object with properties of this object.
|
int |
getAclId()
get the Acl id of the stored object.
|
String |
getCheckinComment()
Get the check-in comment.
|
ContentStream |
getContent()
Retrieve the content of a document.
|
VersionedDocument |
getParentDocument()
Get the versioned document (parent) of this version.
|
List<String> |
getParentIds()
return a list of parents the principal has access to.
|
String |
getPathSegment()
get the path segment of this object.
|
String |
getVersionLabel()
Get the version label.
|
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()
Check if this version is a major version.
|
boolean |
isPwc()
Check if this version is a private working copy.
|
void |
removeParentId(String parentId)
Remove parent from this object.
|
void |
setAclId(int id) |
void |
setCheckinComment(String comment)
Set the check.in comment.
|
void |
setContent(ContentStream content)
Assign content to a document.
|
addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, removePolicy, setAppliedPolicies, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setId, setModifiedAt, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, removePolicy, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setId, setModifiedAt, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModifiedpublic DocumentVersionImpl(String repositoryId, VersionedDocument container, VersioningState verState)
public void setContent(ContentStream content)
ContentsetContent in interface Contentcontent - content to be assigned to the document.public void setCheckinComment(String comment)
VersionsetCheckinComment in interface Versioncomment - check-in commentpublic String getCheckinComment()
VersiongetCheckinComment in interface Versionpublic boolean isMajor()
Versionpublic boolean isPwc()
Versionpublic void commit(boolean isMajor)
Versionpublic ContentStream getContent()
ContentgetContent in interface Contentpublic VersionedDocument getParentDocument()
VersiongetParentDocument in interface Versionpublic void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
StoredObjectfillProperties in interface StoredObjectfillProperties in class StoredObjectImplproperties - map to fillobjFactory - object factory to create objectsrequestedIds - list of property ids being requestedpublic int getAclId()
StoredObjectgetAclId in interface StoredObjectgetAclId in class StoredObjectImplpublic void setAclId(int id)
setAclId in class StoredObjectImplpublic List<String> getParentIds()
FilinggetParentIds in interface Filingpublic String getPathSegment()
FilinggetPathSegment in interface Filingpublic boolean hasContent()
ContenthasContent in interface Contentpublic boolean hasParent()
Filingpublic String getVersionLabel()
VersiongetVersionLabel in interface Versionpublic void addParentId(String parentId)
MultiFilingaddParentId in interface MultiFilingparentId - id of parent folder to be added.public void removeParentId(String parentId)
MultiFilingremoveParentId in interface MultiFilingparentId - id of parent folder to be removed.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.