|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Lockable
An object that can be locked.
A lock is identified by a lock key. The key is used to store information about the lock owner.
Method Summary | |
---|---|
java.lang.String |
getLock()
Gets the lock key if a lock exists on the current object. |
boolean |
isLocked()
Tests if the current object is locked. |
void |
setLock(java.lang.String key)
Sets a lock on the current document. |
java.lang.String |
unlock()
Removes the lock on the object if any exists, otherwise do nothing. |
Method Detail |
---|
void setLock(java.lang.String key) throws DocumentException
The lock key cannot be null.
key
- the lock key
DocumentException
boolean isLocked() throws DocumentException
DocumentException
java.lang.String getLock() throws DocumentException
DocumentException
java.lang.String unlock() throws DocumentException
DocumentException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |