public class VersionedDocumentImpl extends FilingImpl implements VersionedDocument
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, policyIds, secondaryTypeIdsPATH_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, removeParentIdaddAppliedPolicy, 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, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParentIds, getPathSegment, hasParentaddAppliedPolicy, 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, updateSystemBasePropertiesWhenModifiedpublic DocumentVersion addVersion(VersioningState verState, String user)
VersionedDocumentaddVersion in interface VersionedDocumentverState - versioning state of new versionuser - user adding the new vesionpublic boolean deleteVersion(DocumentVersion version)
VersionedDocumentdeleteVersion in interface VersionedDocumentversion - version to be removedpublic void cancelCheckOut(String user)
VersionedDocumentcancelCheckOut in interface VersionedDocumentuser - user doing the cancel check-outpublic void checkIn(boolean isMajor,
Properties properties,
ContentStream content,
String checkinComment,
List<String> policyIds,
String user)
VersionedDocumentcheckIn in interface VersionedDocumentisMajor - 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)
VersionedDocumentcheckOut in interface VersionedDocumentuser - user who checks-outpublic List<DocumentVersion> getAllVersions()
VersionedDocumentgetAllVersions in interface VersionedDocumentpublic DocumentVersion getLatestVersion(boolean major)
VersionedDocumentgetLatestVersion in interface VersionedDocumentmajor - true if latest major version, false to include minor versionspublic boolean isCheckedOut()
VersionedDocumentisCheckedOut in interface VersionedDocumentpublic String getCheckedOutBy()
VersionedDocumentgetCheckedOutBy in interface VersionedDocumentpublic DocumentVersion getPwc()
VersionedDocumentgetPwc in interface VersionedDocumentpublic 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 requestedCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.