|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockActions
Interface for an action listener that will provide methods to lock/unlock a document, to lock/unlock the current document and to lock/unlock a list of documents (based on DocumentsListManager).
Field Summary | |
---|---|
static String |
LOCK_CREATED
|
static String |
LOCK_TIME
Deprecated. since 5.4.2, use LOCK_CREATED instead |
static String |
LOCKER
|
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final String LOCKER
@Deprecated static final String LOCK_TIME
LOCK_CREATED
insteadstatic final String LOCK_CREATED
Method Detail |
---|
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 taken
ClientException
String unlockDocument(DocumentModel document) throws ClientException
document
- the document of which lock is to be released
ClientException
void lockDocuments(List<DocumentModel> documents) throws ClientException
documents
- the list with the documents of which locks are to be
taken
ClientException
void unlockDocuments(List<DocumentModel> documents) throws ClientException
documents
- the list with the documents of which locks are to be
released
ClientException
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 needed
ClientException
Map<String,Serializable> getCurrentDocLockDetails() throws ClientException
ClientException
Boolean isCurrentDocumentLiveEditable()
void resetLockState()
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |