public class DocumentVersionImpl extends StoredObjectImpl implements DocumentVersion, MultiFiling
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, policyIds, secondaryTypeIds
PATH_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, updateSystemBasePropertiesWhenModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAppliedPolicy, 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, updateSystemBasePropertiesWhenModified
public DocumentVersionImpl(String repositoryId, VersionedDocument container, VersioningState verState)
public void setContent(ContentStream content)
Content
setContent
in interface Content
content
- content to be assigned to the document.public void setCheckinComment(String comment)
Version
setCheckinComment
in interface Version
comment
- check-in commentpublic String getCheckinComment()
Version
getCheckinComment
in interface Version
public boolean isMajor()
Version
public boolean isPwc()
Version
public void commit(boolean isMajor)
Version
public ContentStream getContent()
Content
getContent
in interface Content
public VersionedDocument getParentDocument()
Version
getParentDocument
in interface Version
public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
StoredObject
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
properties
- map to fillobjFactory
- object factory to create objectsrequestedIds
- list of property ids being requestedpublic int getAclId()
StoredObject
getAclId
in interface StoredObject
getAclId
in class StoredObjectImpl
public void setAclId(int id)
setAclId
in class StoredObjectImpl
public List<String> getParentIds()
Filing
getParentIds
in interface Filing
public String getPathSegment()
Filing
getPathSegment
in interface Filing
public boolean hasContent()
Content
hasContent
in interface Content
public boolean hasParent()
Filing
public String getVersionLabel()
Version
getVersionLabel
in interface Version
public void addParentId(String parentId)
MultiFiling
addParentId
in interface MultiFiling
parentId
- id of parent folder to be added.public void removeParentId(String parentId)
MultiFiling
removeParentId
in interface MultiFiling
parentId
- id of parent folder to be removed.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.