org.xcmis.spi.basic
Class BasicConnection

java.lang.Object
  extended by org.xcmis.spi.Connection
      extended by org.xcmis.spi.basic.BasicConnection

public class BasicConnection
extends Connection

Empty Connection impl


Field Summary
 
Fields inherited from class org.xcmis.spi.Connection
CREATE, storage, UPDATE, VERSION
 
Constructor Summary
BasicConnection(Storage storage)
           
 
Method Summary
protected  void checkConnection()
          Check is connection may be used at the moment, e.g.
 void close()
          Close the connection and release underlying resources.
protected  void validateChangeToken(ObjectData object, String changeToken)
          Validate change token provided by caller with current change token of object.
 
Methods inherited from class org.xcmis.spi.Connection
addObjectToFolder, addType, applyACL, applyPolicy, cancelCheckout, checkin, checkout, createDocument, createDocumentFromSource, createFolder, createPolicy, createRelationship, deleteContentStream, deleteObject, deleteTree, getACL, getAllowableActions, getAllVersions, getAppliedPolicies, getCheckedOutDocs, getChildren, getCmisObject, getContentChanges, getContentStream, getDescendants, getFolderParent, getFolderTree, getObject, getObjectByPath, getObjectOfLatestVersion, getObjectParents, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getStorage, getTypeChildren, getTypeDefinition, getTypeDefinition, getTypeDescendants, moveObject, query, removeObjectFromFolder, removePolicy, removeType, setContentStream, updateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicConnection

public BasicConnection(Storage storage)
Method Detail

checkConnection

protected void checkConnection()
                        throws IllegalStateException
Check is connection may be used at the moment, e.g. it may be already closed.

Specified by:
checkConnection in class Connection
Throws:
IllegalStateException - if connection may not be used any more

close

public void close()
Close the connection and release underlying resources. Not able to use this connection any more.

Specified by:
close in class Connection

validateChangeToken

protected void validateChangeToken(ObjectData object,
                                   String changeToken)
                            throws UpdateConflictException
Validate change token provided by caller with current change token of object.

Specified by:
validateChangeToken in class Connection
Parameters:
object - object
changeToken - change token from 'client'
Throws:
UpdateConflictException - if specified change token does not match to object change token


Copyright © 2010 eXo Platform SAS. All Rights Reserved.