public class LockableDocumentRouteImpl extends Object implements LockableDocumentRoute
Constructor and Description |
---|
LockableDocumentRouteImpl(DocumentModel document) |
Modifier and Type | Method and Description |
---|---|
String |
getLockOwner(CoreSession session) |
boolean |
isLocked(CoreSession session) |
boolean |
isLockedByCurrentUser(CoreSession session) |
void |
lockDocument(CoreSession session) |
void |
unlockDocument(CoreSession session) |
public LockableDocumentRouteImpl(DocumentModel document)
public boolean isLocked(CoreSession session) throws ClientException
isLocked
in interface LockableDocumentRoute
ClientException
public boolean isLockedByCurrentUser(CoreSession session) throws ClientException
isLockedByCurrentUser
in interface LockableDocumentRoute
ClientException
public void lockDocument(CoreSession session) throws ClientException
lockDocument
in interface LockableDocumentRoute
ClientException
public void unlockDocument(CoreSession session) throws ClientException
unlockDocument
in interface LockableDocumentRoute
ClientException
public String getLockOwner(CoreSession session)
getLockOwner
in interface LockableDocumentRoute
Copyright © 2013 Nuxeo SA. All Rights Reserved.