public interface VersioningService
See the CMIS 1.0 and CMIS 1.1 specifications for details on the operations, parameters, exceptions and the domain model.
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancelCheckOut(String repositoryId,
              String objectId,
              ExtensionsData extension)
Reverses the effect of a check-out. 
 | 
void | 
checkIn(String repositoryId,
       Holder<String> objectId,
       Boolean major,
       Properties properties,
       ContentStream contentStream,
       String checkinComment,
       List<String> policies,
       Acl addAces,
       Acl removeAces,
       ExtensionsData extension)
Checks-in the private working copy (PWC) document. 
 | 
void | 
checkOut(String repositoryId,
        Holder<String> objectId,
        ExtensionsData extension,
        Holder<Boolean> contentCopied)
Create a private working copy of the document. 
 | 
List<ObjectData> | 
getAllVersions(String repositoryId,
              String objectId,
              String versionSeriesId,
              String filter,
              Boolean includeAllowableActions,
              ExtensionsData extension)
Returns the list of all document objects in the specified version series,
 sorted by the property "cmis:creationDate" descending. 
 | 
ObjectData | 
getObjectOfLatestVersion(String repositoryId,
                        String objectId,
                        String versionSeriesId,
                        Boolean major,
                        String filter,
                        Boolean includeAllowableActions,
                        IncludeRelationships includeRelationships,
                        String renditionFilter,
                        Boolean includePolicyIds,
                        Boolean includeAcl,
                        ExtensionsData extension)
Get the latest document object in the version series. 
 | 
Properties | 
getPropertiesOfLatestVersion(String repositoryId,
                            String objectId,
                            String versionSeriesId,
                            Boolean major,
                            String filter,
                            ExtensionsData extension)
Get a subset of the properties for the latest document object in the
 version series. 
 | 
void checkOut(String repositoryId, Holder<String> objectId, ExtensionsData extension, Holder<Boolean> contentCopied)
repositoryId - the identifier for the repositoryobjectId - input: the identifier for the document that should be checked
            out, output: the identifier for the newly created PWCcontentCopied - output: indicator if the content of the original document has
            been copied to the PWCvoid cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension)
repositoryId - the identifier for the repositoryobjectId - the identifier for the PWCvoid checkIn(String repositoryId, Holder<String> objectId, Boolean major, Properties properties, ContentStream contentStream, String checkinComment, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
contentStream is consumed but not closed by
 this method.repositoryId - the identifier for the repositoryobjectId - input: the identifier for the PWC, output: the identifier for
            the newly created version documentmajor - indicator if the new version should become a major (
            true) or minor (false) versionproperties - (optional) the property values that must be applied
            to the newly created document objectcontentStream - (optional) the content stream that must be stored for
            the newly created document objectcheckinComment - (optional) a version commentpolicies - (optional) a list of policy IDs that must be applied
            to the newly created document objectaddAces - (optional) a list of ACEs that must be added to the
            newly created document objectremoveAces - (optional) a list of ACEs that must be removed from
            the newly created document objectObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
repositoryId - the identifier for the repositoryProperties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, ExtensionsData extension)
repositoryId - the identifier for the repositoryList<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter, Boolean includeAllowableActions, ExtensionsData extension)
objectId or the versionSeriesId
 parameter must be set.repositoryId - the identifier for the repositoryobjectId - the identifier for the objectversionSeriesId - the identifier for the objectfilter - (optional) a comma-separated list of query names that
            defines which properties must be returned by the repository
            (default is repository specific)includeAllowableActions - (optional) if true, then the repository
            must return the allowable actions for the objects (default is
            false)Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.