|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.lock.AbstractActiveLock
org.apache.jackrabbit.webdav.lock.DefaultActiveLock
org.apache.jackrabbit.webdav.transaction.TxActiveLock
TxActiveLock
represents the transaction lock present on a
TransactionResource
.
Field Summary | |
static long |
DEFAULT_TIMEOUT
|
Fields inherited from interface org.apache.jackrabbit.webdav.transaction.TransactionConstants |
GLOBAL, HEADER_TRANSACTIONID, LOCAL, NAMESPACE, TRANSACTION, XML_COMMIT, XML_GLOBAL, XML_LOCAL, XML_ROLLBACK, XML_TRANSACTION, XML_TRANSACTIONINFO, XML_TRANSACTIONSTATUS |
Constructor Summary | |
TxActiveLock(LockInfo lockInfo)
Create a new transaction lock. If the lockInfo element is null the timeout defaults to
half and hour. |
Method Summary | |
Scope |
getScope()
Returns the scope of this lock which is either TransactionConstants.LOCAL or TransactionConstants.GLOBAL . |
Type |
getType()
Always returns the TransactionConstants.TRANSACTION type. |
boolean |
isDeep()
Always returns true. |
Methods inherited from class org.apache.jackrabbit.webdav.lock.DefaultActiveLock |
getOwner, getTimeout, getToken, isExpired, isLockedByToken, setIsDeep, setOwner, setTimeout |
Methods inherited from class org.apache.jackrabbit.webdav.lock.AbstractActiveLock |
toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long DEFAULT_TIMEOUT
Constructor Detail |
public TxActiveLock(LockInfo lockInfo)
null
the timeout defaults to
half and hour. The default scope is 'local'.
lockInfo
-
IllegalArgumentException
- if either scope or type is invalid or if
a depth other than infinity is requested.Method Detail |
public boolean isDeep()
isDeep
in interface ActiveLock
isDeep
in class DefaultActiveLock
ActiveLock.isDeep()
public Type getType()
TransactionConstants.TRANSACTION
type.
getType
in interface ActiveLock
getType
in class DefaultActiveLock
TransactionConstants.TRANSACTION
Type.WRITE
public Scope getScope()
TransactionConstants.LOCAL
or TransactionConstants.GLOBAL
.
getScope
in interface ActiveLock
getScope
in class DefaultActiveLock
TransactionConstants.LOCAL
or TransactionConstants.GLOBAL
Scope.EXCLUSIVE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |