|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.repository.impl.WebDAVRepositoryTransactionHelper
public class WebDAVRepositoryTransactionHelper
A transaction an locking helper class intended to be used by flowscripts or corresponding wrapper components.
Constructor Summary | |
---|---|
WebDAVRepositoryTransactionHelper(CredentialsToken credentials,
WebDAVRepository repo)
create a WebDAVRepositoryTransactionHelper |
Method Summary | |
---|---|
boolean |
beginTran()
beginning a transaction on the repository |
boolean |
commitTran()
committing a transaction on the repository |
void |
dispose()
|
boolean |
lock(String uri)
lock the resource |
boolean |
lock(String uri,
int timeout)
lock the resource with explicit timeout in seconds |
boolean |
rollbackTran()
rolling back a transaction on the repository |
void |
service(ServiceManager manager)
|
boolean |
supportsLocking()
checking wether the repository supports locking |
boolean |
supportsTransactions()
checking wether the repository supports transactions |
boolean |
unlock(String uri)
unlock resource |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDAVRepositoryTransactionHelper(CredentialsToken credentials, WebDAVRepository repo)
credentials
- the user credentials to be used against the WebDAV repository.repo
- a reference to the WebDAVRepository object.Method Detail |
---|
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void dispose()
dispose
in interface Disposable
public boolean beginTran()
RepositoryTransactionHelper
beginTran
in interface RepositoryTransactionHelper
public boolean commitTran()
RepositoryTransactionHelper
commitTran
in interface RepositoryTransactionHelper
public boolean rollbackTran()
RepositoryTransactionHelper
rollbackTran
in interface RepositoryTransactionHelper
public boolean lock(String uri)
RepositoryTransactionHelper
lock
in interface RepositoryTransactionHelper
uri
- the uri of the resource.
public boolean lock(String uri, int timeout)
RepositoryTransactionHelper
lock
in interface RepositoryTransactionHelper
uri
- the uri of the resource.timeout
- the lock timeout in seconds.
public boolean unlock(String uri)
RepositoryTransactionHelper
unlock
in interface RepositoryTransactionHelper
uri
- the uri of the resource.
public boolean supportsTransactions()
RepositoryTransactionHelper
supportsTransactions
in interface RepositoryTransactionHelper
public boolean supportsLocking()
RepositoryTransactionHelper
supportsLocking
in interface RepositoryTransactionHelper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |