public interface VersionService extends Service
Modifier and Type | Field and Description |
---|---|
static String |
SORT_PROPERTY_CREATED_AT
Allowable sorting property : Creation Date
|
static String |
SORT_PROPERTY_DESCRIPTION
Allowable sorting property : Description
|
static String |
SORT_PROPERTY_MODIFIED_AT
Allowable sorting property : Modification Date
|
static String |
SORT_PROPERTY_NAME
Allowable sorting property : Name of the document or folder.
|
static String |
SORT_PROPERTY_TITLE
Allowable sorting property : Title of the document or folder.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelCheckout(Document document)
Cancels the check out of the document.
|
Document |
checkin(Document document,
boolean majorVersion,
ContentFile file,
Map<String,Serializable> properties,
String comment)
Checks in the private working copy document, if successful the new
version of the document is returned.
|
Document |
checkout(Document document)
Checks out the document, if successful the private working copy is
returned.
|
List<Document> |
getCheckedOutDocuments()
Returns a list of documents the authenticated user has checked out.
|
PagingResult<Document> |
getCheckedOutDocuments(ListingContext listingContext)
Returns a paged list of documents the authenticated user has checked out.
|
Document |
getLatestVersion(Document document)
Get the latest version of a document.
|
List<Document> |
getVersions(Document document)
Get the version history that relates to the referenced document.
|
PagingResult<Document> |
getVersions(Document document,
ListingContext listingContext)
Get the version history that relates to the referenced document.
|
static final String SORT_PROPERTY_NAME
static final String SORT_PROPERTY_TITLE
static final String SORT_PROPERTY_DESCRIPTION
static final String SORT_PROPERTY_CREATED_AT
static final String SORT_PROPERTY_MODIFIED_AT
Document getLatestVersion(Document document)
document
- List<Document> getVersions(Document document)
document
- : document object in version control.PagingResult<Document> getVersions(Document document, ListingContext listingContext)
document
- : document object in version control.listingContext
- : defines the behaviour of paging results
ListingContext
Document checkout(Document document)
document
- void cancelCheckout(Document document)
document
- Document checkin(Document document, boolean majorVersion, ContentFile file, Map<String,Serializable> properties, String comment)
document
- majorVersion
- file
- properties
- comment
- List<Document> getCheckedOutDocuments()
PagingResult<Document> getCheckedOutDocuments(ListingContext listingContext)
listingContext
- Copyright © 2012-2018 Alfresco Software. All Rights Reserved.