Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.cases
Class LockableAdapterImpl

java.lang.Object
  extended by org.nuxeo.cm.cases.LockableAdapterImpl
All Implemented Interfaces:
Serializable, LockableAdapter

public class LockableAdapterImpl
extends Object
implements LockableAdapter

See Also:
Serialized Form

Constructor Summary
LockableAdapterImpl(org.nuxeo.ecm.core.api.DocumentModel document)
           
 
Method Summary
 boolean isLocked(org.nuxeo.ecm.core.api.CoreSession documentManager)
          Returns true if doc is not locked or current user is locker
 boolean isLockedByCurrentUser(org.nuxeo.ecm.core.api.CoreSession documentManager)
          Returns true if doc is locked by current user.
 org.nuxeo.ecm.core.api.Lock lockDocument(org.nuxeo.ecm.core.api.CoreSession documentManager)
           
 void unlockDocument(org.nuxeo.ecm.core.api.CoreSession documentManager)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockableAdapterImpl

public LockableAdapterImpl(org.nuxeo.ecm.core.api.DocumentModel document)
Method Detail

lockDocument

public org.nuxeo.ecm.core.api.Lock lockDocument(org.nuxeo.ecm.core.api.CoreSession documentManager)
                                         throws org.nuxeo.ecm.core.api.ClientException
Specified by:
lockDocument in interface LockableAdapter
Throws:
org.nuxeo.ecm.core.api.ClientException

unlockDocument

public void unlockDocument(org.nuxeo.ecm.core.api.CoreSession documentManager)
                    throws org.nuxeo.ecm.core.api.ClientException
Specified by:
unlockDocument in interface LockableAdapter
Throws:
org.nuxeo.ecm.core.api.ClientException

isLocked

public boolean isLocked(org.nuxeo.ecm.core.api.CoreSession documentManager)
                 throws org.nuxeo.ecm.core.api.ClientException
Returns true if doc is not locked or current user is locker

Specified by:
isLocked in interface LockableAdapter
Throws:
org.nuxeo.ecm.core.api.ClientException

isLockedByCurrentUser

public boolean isLockedByCurrentUser(org.nuxeo.ecm.core.api.CoreSession documentManager)
                              throws org.nuxeo.ecm.core.api.ClientException
Description copied from interface: LockableAdapter
Returns true if doc is locked by current user.

Specified by:
isLockedByCurrentUser in interface LockableAdapter
Throws:
org.nuxeo.ecm.core.api.ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.