Interface TransactionResource
-
- All Superinterfaces:
DavResource
- All Known Implementing Classes:
DefaultItemCollection
,DefaultItemResource
,EventJournalResourceImpl
,RootCollection
,VersionControlledItemCollection
,VersionHistoryItemCollection
,VersionItemCollection
,WorkspaceResourceImpl
public interface TransactionResource extends DavResource
TransactionResource
extends theDavResource
interface by transaction relevant METHODS.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getTransactionId()
The TransactionId ornull
according to the value of the corresponding requestheader
field.void
init(TxLockManager txMgr, String transactionId)
Initializes theTransactionResource
.void
unlock(String lockToken, TransactionInfo info)
Overloads theunlock
method of theDavResource
interface.-
Methods inherited from interface org.apache.jackrabbit.webdav.DavResource
addLockManager, addMember, alterProperties, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlock
-
-
-
-
Field Detail
-
METHODS
static final String METHODS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init(TxLockManager txMgr, String transactionId)
Initializes theTransactionResource
.- Parameters:
txMgr
-transactionId
-
-
getTransactionId
String getTransactionId()
The TransactionId ornull
according to the value of the corresponding requestheader
field.- Returns:
- TransactionId header or
null
-
unlock
void unlock(String lockToken, TransactionInfo info) throws DavException
Overloads theunlock
method of theDavResource
interface.- Parameters:
lockToken
- lock token as present in the request header.info
- transaction info object as present in the UNLOCK request body.- Throws:
DavException
- if an error occurs- See Also:
DavResource.unlock(String)
,TransactionDavServletRequest.getTransactionId()
,DavServletRequest.getLockToken()
-
-