public class LockableDocumentRouteImpl extends Object implements LockableDocumentRoute
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
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) |
protected final DocumentModel doc
public LockableDocumentRouteImpl(DocumentModel document)
public boolean isLocked(CoreSession session)
isLocked
in interface LockableDocumentRoute
public boolean isLockedByCurrentUser(CoreSession session)
isLockedByCurrentUser
in interface LockableDocumentRoute
public void lockDocument(CoreSession session)
lockDocument
in interface LockableDocumentRoute
public void unlockDocument(CoreSession session)
unlockDocument
in interface LockableDocumentRoute
public String getLockOwner(CoreSession session)
getLockOwner
in interface LockableDocumentRoute
Copyright © 2018 Nuxeo. All rights reserved.