org.xcmis.client.gwt.service.versioning
Class VersioningService

java.lang.Object
  extended by org.xcmis.client.gwt.service.versioning.VersioningService

public class VersioningService
extends Object

Created by The eXo Platform SAS.

Version:
$Id: ${date} ${time}
Author:
Ann Zhuleva

Constructor Summary
VersioningService(com.google.gwt.event.shared.HandlerManager eventBus)
           
 
Method Summary
 void cancelCheckout(String url)
          Reverses the effect of a check-out.
 void checkin(String url, CheckIn checkIn)
          Checks-in the Private Working Copy document.
 void checkOut(String url, String objectId)
          Create a private working copy of the document.
 void getAllVersions(String url, String filter, boolean includeAllowableActions)
          Returns the list of all Document Objects in the specified Version Series, sorted by cmis:creationDate descending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningService

public VersioningService(com.google.gwt.event.shared.HandlerManager eventBus)
Parameters:
eventBus - eventBus
Method Detail

checkOut

public void checkOut(String url,
                     String objectId)
Create a private working copy of the document. On success response received, CheckoutReceivedEvent event is fired

Parameters:
url - url
objectId - object id

cancelCheckout

public void cancelCheckout(String url)
Reverses the effect of a check-out. Removes the private working copy of the checked-out document, allowing other documents in the version series to be checked out again. On success response received, CancelCheckoutReceivedEvent event is fired

Parameters:
url - url

checkin

public void checkin(String url,
                    CheckIn checkIn)
Checks-in the Private Working Copy document. On success response received, CheckinReceivedEvent event is fired

Parameters:
url - url
checkIn - checkIn

getAllVersions

public void getAllVersions(String url,
                           String filter,
                           boolean includeAllowableActions)
Returns the list of all Document Objects in the specified Version Series, sorted by cmis:creationDate descending. On success response received, AllVersionsReceivedEvent event is fired

Parameters:
url - url
filter - filter
includeAllowableActions - include allowable actions


Copyright © 2010 eXo Platform SAS. All Rights Reserved.