You are here

cancelCheckout

public void cancelCheckout(Document document) - Cancels the checkout of the document.

Parameters

Document document
A Document instance representing the document for which to cancel check out.

Returns

void.

Exception

Throws an SkyVaultServiceException if the operation cannot be carried out.

Example


    VersionService vs = session.getServiceRegistry()
    		.getVersionService();		
    
    
    Document document = getTestDocument(session, "TEST_DOC");
    Log.d(TAG, "title: " + document.getTitle());
    
    Document checkedOut = vs.checkout(document);
    
    vs.cancelCheckout(checkedOut);
        
      
Note: This method was added in version 1.4.