public interface LockActions extends Serializable
Modifier and Type | Field and Description |
---|---|
static String |
LOCK_CREATED |
static String |
LOCK_TIME
Deprecated.
since 5.4.2, use
LOCK_CREATED instead |
static String |
LOCKER |
Modifier and Type | Method and Description |
---|---|
Boolean |
getCanLockCurrentDoc()
Tests if the user can get the lock of the current document.
|
Boolean |
getCanLockDoc(DocumentModel document)
Tests if the user can get the lock of a document.
|
Boolean |
getCanUnlockCurrentDoc()
Tests if the user can unlock the current document.
|
Boolean |
getCanUnlockDoc(DocumentModel document)
Tests if the user can unlock a document.
|
Map<String,Serializable> |
getCurrentDocLockDetails()
Gets the details about the lock of the current document, who did the lock
and when the lock took place.
|
Map<String,Serializable> |
getLockDetails(DocumentModel document)
Gets the details about the lock of a document,who did the lock and when
the lock took place.
|
Action |
getLockOrUnlockAction()
Returns the action of lock or unlock for a document.
|
Boolean |
isCurrentDocumentLiveEditable()
This method is used to test whether the live-edit link should appear on a
document.
|
String |
lockCurrentDocument()
Gets the lock of the current document.
|
String |
lockDocument(DocumentModel document)
Gets the lock of the document.
|
void |
lockDocuments(List<DocumentModel> documents)
Gets the locks of the documents from the list.
|
void |
resetLockState() |
String |
unlockCurrentDocument()
Releases the lock of the current document.
|
String |
unlockDocument(DocumentModel document)
Releases the lock of the document.
|
void |
unlockDocuments(List<DocumentModel> documents)
Releases the locks of the documents from the list.
|
static final String LOCKER
@Deprecated static final String LOCK_TIME
LOCK_CREATED
insteadstatic final String LOCK_CREATED
String lockCurrentDocument() throws ClientException
ClientException
String unlockCurrentDocument() throws ClientException
ClientException
String lockDocument(DocumentModel document) throws ClientException
document
- the document of which lock is to be takenClientException
String unlockDocument(DocumentModel document) throws ClientException
document
- the document of which lock is to be releasedClientException
void lockDocuments(List<DocumentModel> documents) throws ClientException
documents
- the list with the documents of which locks are to be
takenClientException
void unlockDocuments(List<DocumentModel> documents) throws ClientException
documents
- the list with the documents of which locks are to be
releasedClientException
Boolean getCanLockDoc(DocumentModel document)
Boolean getCanLockCurrentDoc()
Boolean getCanUnlockDoc(DocumentModel document)
Boolean getCanUnlockCurrentDoc()
Action getLockOrUnlockAction()
Map<String,Serializable> getLockDetails(DocumentModel document) throws ClientException
document
- the document for which this information is neededClientException
Map<String,Serializable> getCurrentDocLockDetails() throws ClientException
ClientException
Boolean isCurrentDocumentLiveEditable()
void resetLockState()
Copyright © 2013 Nuxeo SA. All Rights Reserved.