org.xcmis.spi.basic
Class BasicConnection
java.lang.Object
org.xcmis.spi.Connection
org.xcmis.spi.basic.BasicConnection
public class BasicConnection
- extends Connection
Empty Connection impl
|
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 |
BasicConnection
public BasicConnection(Storage storage)
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 - objectchangeToken - change token from 'client'
- Throws:
UpdateConflictException - if specified change token does not match
to object change token
Copyright © 2011 eXo Platform SAS. All Rights Reserved.