You are here

checkout

public Document checkout(Document document) - Checks out the document. If successful, the private working copy is returned.

Parameters

Document document
A Document instance representing the document to check out.

Returns

A Document object, representing the private working copy.

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);
        
      
Note: This method was added in version 1.4.