public class VersionServiceImpl extends AlfrescoService implements VersionService
Modifier and Type | Field and Description |
---|---|
protected org.apache.chemistry.opencmis.client.api.Session |
cmisSession |
static android.os.Parcelable.Creator<VersionServiceImpl> |
CREATOR |
CONTENT_CACHE, RENDITION_CACHE, session
SORT_PROPERTY_CREATED_AT, SORT_PROPERTY_DESCRIPTION, SORT_PROPERTY_MODIFIED_AT, SORT_PROPERTY_NAME, SORT_PROPERTY_TITLE
Constructor and Description |
---|
VersionServiceImpl(AlfrescoSession repositorySession)
Default constructor for service.
|
VersionServiceImpl(android.os.Parcel o) |
Modifier and Type | Method and Description |
---|---|
void |
cancelCheckout(Document document)
Cancels the check out of the document.
|
Document |
checkin(Document document,
boolean majorVersion,
ContentFile contentFile,
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 lcontext)
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.
|
clear, convertException, convertNode, convertNode, convertStatusCode, delete, describeContents, getHttpInvoker, getSessionHttp, isCloudSession, isListNull, isMapNull, isObjectNull, isOnPremiseSession, isStringNull, post, put, read, saveContentStream, writeToParcel
protected org.apache.chemistry.opencmis.client.api.Session cmisSession
public static final android.os.Parcelable.Creator<VersionServiceImpl> CREATOR
public VersionServiceImpl(AlfrescoSession repositorySession)
ServiceRegistry
.repositorySession
- public VersionServiceImpl(android.os.Parcel o)
public Document getLatestVersion(Document document)
VersionService
getLatestVersion
in interface VersionService
public List<Document> getVersions(Document document)
getVersions
in interface VersionService
document
- : document object in version control.public PagingResult<Document> getVersions(Document document, ListingContext listingContext)
getVersions
in interface VersionService
document
- : document object in version control.listingContext
- : defines the behaviour of paging results
ListingContext
public Document checkout(Document document)
checkout
in interface VersionService
public void cancelCheckout(Document document)
VersionService
cancelCheckout
in interface VersionService
public Document checkin(Document document, boolean majorVersion, ContentFile contentFile, Map<String,Serializable> properties, String comment)
VersionService
checkin
in interface VersionService
public List<Document> getCheckedOutDocuments()
VersionService
getCheckedOutDocuments
in interface VersionService
public PagingResult<Document> getCheckedOutDocuments(ListingContext lcontext)
VersionService
getCheckedOutDocuments
in interface VersionService
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.