org.apache.chemistry.opencmis.client.bindings.spi.local
Class VersioningServiceImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.spi.local.AbstractLocalService
      extended by org.apache.chemistry.opencmis.client.bindings.spi.local.VersioningServiceImpl
All Implemented Interfaces:
VersioningService

public class VersioningServiceImpl
extends AbstractLocalService
implements VersioningService


Constructor Summary
VersioningServiceImpl(BindingSession session, CmisServiceFactory factory)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class org.apache.chemistry.opencmis.client.bindings.spi.local.AbstractLocalService
createCallContext, getService, getServiceFactory, getSession, setServiceFactory, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningServiceImpl

public VersioningServiceImpl(BindingSession session,
                             CmisServiceFactory factory)
Constructor.

Method Detail

cancelCheckOut

public void cancelCheckOut(String repositoryId,
                           String objectId,
                           ExtensionsData extension)
Description copied from interface: VersioningService
Reverses the effect of a check-out.

Specified by:
cancelCheckOut in interface VersioningService

checkIn

public void checkIn(String repositoryId,
                    Holder<String> objectId,
                    Boolean major,
                    Properties properties,
                    ContentStream contentStream,
                    String checkinComment,
                    List<String> policies,
                    Acl addAces,
                    Acl removeAces,
                    ExtensionsData extension)
Description copied from interface: VersioningService
Checks-in the private working copy (PWC) document.

Specified by:
checkIn in interface VersioningService

checkOut

public void checkOut(String repositoryId,
                     Holder<String> objectId,
                     ExtensionsData extension,
                     Holder<Boolean> contentCopied)
Description copied from interface: VersioningService
Create a private working copy of the document.

Specified by:
checkOut in interface VersioningService

getAllVersions

public List<ObjectData> getAllVersions(String repositoryId,
                                       String objectId,
                                       String versionSeriesId,
                                       String filter,
                                       Boolean includeAllowableActions,
                                       ExtensionsData extension)
Description copied from interface: VersioningService
Returns the list of all document objects in the specified version series, sorted by the property "cmis:creationDate" descending.

Specified by:
getAllVersions in interface VersioningService

getObjectOfLatestVersion

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)
Description copied from interface: VersioningService
Get the latest document object in the version series.

Specified by:
getObjectOfLatestVersion in interface VersioningService

getPropertiesOfLatestVersion

public Properties getPropertiesOfLatestVersion(String repositoryId,
                                               String objectId,
                                               String versionSeriesId,
                                               Boolean major,
                                               String filter,
                                               ExtensionsData extension)
Description copied from interface: VersioningService
Get a subset of the properties for the latest document object in the version series.

Specified by:
getPropertiesOfLatestVersion in interface VersioningService


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.