public class VersionedDocumentImpl extends FilingImpl implements VersionedDocument
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, policyIds, secondaryTypeIds
PATH_SEPARATOR
Constructor and Description |
---|
VersionedDocumentImpl() |
Modifier and Type | Method and Description |
---|---|
DocumentVersion |
addVersion(VersioningState verState,
String user)
Add a new version to this document.
|
void |
cancelCheckOut(String user)
Cancel a check-out operation and discard the private working copy.
|
void |
checkIn(boolean isMajor,
Properties properties,
ContentStream content,
String checkinComment,
List<String> policyIds,
String user)
Check in a private working copy.
|
DocumentVersion |
checkOut(String user)
Perform a check-out operation.
|
boolean |
deleteVersion(DocumentVersion version)
Delete a version from this object, throw exception if document is checked
out or document does not contain this version.
|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds)
fill a passed map object with properties of this object.
|
List<DocumentVersion> |
getAllVersions()
Get all versions of this document.
|
String |
getCheckedOutBy()
Get the user who has checked out this document.
|
DocumentVersion |
getLatestVersion(boolean major)
Get the latest version of this document.
|
DocumentVersion |
getPwc()
Get the private working copy of this document.
|
boolean |
isCheckedOut()
Test if current object is checked-out.
|
addParentId, getParentIds, getPathSegment, hasParent, removeParentId
addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAclId, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, removePolicy, setAclId, 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
getParentIds, getPathSegment, hasParent
addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAclId, 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 DocumentVersion addVersion(VersioningState verState, String user)
VersionedDocument
addVersion
in interface VersionedDocument
verState
- versioning state of new versionuser
- user adding the new vesionpublic boolean deleteVersion(DocumentVersion version)
VersionedDocument
deleteVersion
in interface VersionedDocument
version
- version to be removedpublic void cancelCheckOut(String user)
VersionedDocument
cancelCheckOut
in interface VersionedDocument
user
- user doing the cancel check-outpublic void checkIn(boolean isMajor, Properties properties, ContentStream content, String checkinComment, List<String> policyIds, String user)
VersionedDocument
checkIn
in interface VersionedDocument
isMajor
- true if this is a major versionproperties
- properties to setcontent
- content of the documentcheckinComment
- comment to attach to check-inpolicyIds
- list of policy ids to adduser
- user who does the check-inpublic DocumentVersion checkOut(String user)
VersionedDocument
checkOut
in interface VersionedDocument
user
- user who checks-outpublic List<DocumentVersion> getAllVersions()
VersionedDocument
getAllVersions
in interface VersionedDocument
public DocumentVersion getLatestVersion(boolean major)
VersionedDocument
getLatestVersion
in interface VersionedDocument
major
- true if latest major version, false to include minor versionspublic boolean isCheckedOut()
VersionedDocument
isCheckedOut
in interface VersionedDocument
public String getCheckedOutBy()
VersionedDocument
getCheckedOutBy
in interface VersionedDocument
public DocumentVersion getPwc()
VersionedDocument
getPwc
in interface VersionedDocument
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 requestedCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.