public interface VersionedDocument extends Filing, StoredObject
PATH_SEPARATOR
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.
|
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.
|
getParentIds, getPathSegment, hasParent
addAppliedPolicy, createSystemBasePropertiesWhenCreated, fillProperties, 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
DocumentVersion addVersion(VersioningState verState, String user)
verState
- versioning state of new versionuser
- user adding the new vesionboolean deleteVersion(DocumentVersion version)
version
- version to be removedboolean isCheckedOut()
void cancelCheckOut(String user)
user
- user doing the cancel check-outDocumentVersion checkOut(String user)
user
- user who checks-outvoid checkIn(boolean isMajor, Properties properties, ContentStream content, String checkinComment, List<String> policyIds, String user)
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-inList<DocumentVersion> getAllVersions()
DocumentVersion getLatestVersion(boolean major)
major
- true if latest major version, false to include minor versionsString getCheckedOutBy()
DocumentVersion getPwc()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.