public class LockableAdapterImpl extends Object implements LockableAdapter
Constructor and Description |
---|
LockableAdapterImpl(DocumentModel document) |
Modifier and Type | Method and Description |
---|---|
boolean |
isLocked(CoreSession documentManager)
Returns true if doc is not locked or current user is locker
|
boolean |
isLockedByCurrentUser(CoreSession documentManager)
Returns true if doc is locked by current user.
|
Lock |
lockDocument(CoreSession documentManager) |
void |
unlockDocument(CoreSession documentManager) |
public LockableAdapterImpl(DocumentModel document)
public Lock lockDocument(CoreSession documentManager) throws ClientException
lockDocument
in interface LockableAdapter
ClientException
public void unlockDocument(CoreSession documentManager) throws ClientException
unlockDocument
in interface LockableAdapter
ClientException
public boolean isLocked(CoreSession documentManager) throws ClientException
isLocked
in interface LockableAdapter
ClientException
public boolean isLockedByCurrentUser(CoreSession documentManager) throws ClientException
LockableAdapter
isLockedByCurrentUser
in interface LockableAdapter
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.