org.nuxeo.cm.cases
Class LockableAdapterImpl
java.lang.Object
org.nuxeo.cm.cases.LockableAdapterImpl
- All Implemented Interfaces:
- Serializable, LockableAdapter
public class LockableAdapterImpl
- extends Object
- implements LockableAdapter
- See Also:
- Serialized Form
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)
|
LockableAdapterImpl
public LockableAdapterImpl(org.nuxeo.ecm.core.api.DocumentModel document)
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.