|
Nuxeo Enterprise Platform 5.4 | |||||||||
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 java.lang.String |
LOCK_TIME
|
static java.lang.String |
LOCKER
|
Method Summary | |
---|---|
void |
destroy()
|
java.lang.Boolean |
getCanLockCurrentDoc()
Tests if the user can get the lock of the current document. |
java.lang.Boolean |
getCanLockDoc(DocumentModel document)
Tests if the user can get the lock of a document. |
java.lang.Boolean |
getCanUnlockCurrentDoc()
Tests if the user can unlock the current document. |
java.lang.Boolean |
getCanUnlockDoc(DocumentModel document)
Tests if the user can unlock a document. |
java.util.Map<java.lang.String,java.lang.String> |
getCurrentDocLockDetails()
Gets the details about the lock of the current document, who did the lock and when the lock took place. |
java.util.Map<java.lang.String,java.lang.String> |
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. |
java.lang.Boolean |
isCurrentDocumentLiveEditable()
This method is used to test whether the live-edit link should appear on a document. |
java.lang.String |
lockCurrentDocument()
Gets the lock of the current document. |
java.lang.String |
lockDocument(DocumentModel document)
Gets the lock of the document. |
void |
lockDocuments(java.util.List<DocumentModel> documents)
Gets the locks of the documents from the list. |
void |
resetLockState()
|
java.lang.String |
unlockCurrentDocument()
Releases the lock of the current document. |
java.lang.String |
unlockDocument(DocumentModel document)
Releases the lock of the document. |
void |
unlockDocuments(java.util.List<DocumentModel> documents)
Releases the locks of the documents from the list. |
Field Detail |
---|
static final java.lang.String LOCKER
static final java.lang.String LOCK_TIME
Method Detail |
---|
java.lang.String lockCurrentDocument() throws ClientException
ClientException
java.lang.String unlockCurrentDocument() throws ClientException
ClientException
java.lang.String lockDocument(DocumentModel document) throws ClientException
document
- the document of which lock is to be taken
ClientException
java.lang.String unlockDocument(DocumentModel document) throws ClientException
document
- the document of which lock is to be released
ClientException
void lockDocuments(java.util.List<DocumentModel> documents) throws ClientException
documents
- the list with the documents of which locks are to be
taken
ClientException
void unlockDocuments(java.util.List<DocumentModel> documents) throws ClientException
documents
- the list with the documents of which locks are to be
released
ClientException
java.lang.Boolean getCanLockDoc(DocumentModel document)
java.lang.Boolean getCanLockCurrentDoc()
java.lang.Boolean getCanUnlockDoc(DocumentModel document)
java.lang.Boolean getCanUnlockCurrentDoc()
Action getLockOrUnlockAction()
java.util.Map<java.lang.String,java.lang.String> getLockDetails(DocumentModel document) throws ClientException
document
- the document for which this information is needed
ClientException
java.util.Map<java.lang.String,java.lang.String> getCurrentDocLockDetails() throws ClientException
ClientException
java.lang.Boolean isCurrentDocumentLiveEditable()
void resetLockState()
void destroy()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |