|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockInfo
Provides information about a lock on a document variant.
If the method hasLock()
returns false, there is no lock
on the document and the output of the other methods is irrelevant and
unspecified.
Note that so called "optimistic locking" always happens automatically, next to this explicit locking facility.
Method Summary | |
---|---|
long |
getDuration()
Gets the duration of the lock, in milliseconds. |
java.util.Date |
getTimeAcquired()
Get the time when the lock was acquired. |
LockType |
getType()
Get the type of lock. |
long |
getUserId()
Get the id of the user holding the lock. |
org.outerx.daisy.x10.LockInfoDocument |
getXml()
Get an XML document describing this lock. |
boolean |
hasLock()
|
Method Detail |
---|
boolean hasLock()
long getUserId()
java.util.Date getTimeAcquired()
long getDuration()
LockType getType()
Document.lock(long, LockType)
for
more info on the type of locks.
org.outerx.daisy.x10.LockInfoDocument getXml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |