public class VersioningServiceImpl extends AbstractLocalService implements VersioningService
Constructor and Description |
---|
VersioningServiceImpl(BindingSession session,
CmisServiceFactory factory)
Constructor.
|
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.
|
createCallContext, getService, getServiceFactory, getSession, setServiceFactory, setSession
public VersioningServiceImpl(BindingSession session, CmisServiceFactory factory)
public void cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension)
VersioningService
cancelCheckOut
in interface VersioningService
repositoryId
- the identifier for the repositoryobjectId
- the identifier for the PWCpublic void checkIn(String repositoryId, Holder<String> objectId, Boolean major, Properties properties, ContentStream contentStream, String checkinComment, List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension)
VersioningService
contentStream
is consumed but not closed by
this method.checkIn
in interface VersioningService
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 objectpublic void checkOut(String repositoryId, Holder<String> objectId, ExtensionsData extension, Holder<Boolean> contentCopied)
VersioningService
checkOut
in interface VersioningService
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 PWCpublic List<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter, Boolean includeAllowableActions, ExtensionsData extension)
VersioningService
objectId
or the versionSeriesId
parameter must be set.getAllVersions
in interface VersioningService
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
)public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, Boolean includePolicyIds, Boolean includeAcl, ExtensionsData extension)
VersioningService
getObjectOfLatestVersion
in interface VersioningService
repositoryId
- the identifier for the repositorypublic Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId, Boolean major, String filter, ExtensionsData extension)
VersioningService
getPropertiesOfLatestVersion
in interface VersioningService
repositoryId
- the identifier for the repositoryCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.