|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ServiceableServiceExceptionpublic void dispose()
dispose in interface Disposablepublic boolean beginTran()
RepositoryTransactionHelper
beginTran in interface RepositoryTransactionHelperpublic boolean commitTran()
RepositoryTransactionHelper
commitTran in interface RepositoryTransactionHelperpublic boolean rollbackTran()
RepositoryTransactionHelper
rollbackTran in interface RepositoryTransactionHelperpublic boolean lock(String uri)
RepositoryTransactionHelper
lock in interface RepositoryTransactionHelperuri - the uri of the resource.
public boolean lock(String uri,
int timeout)
RepositoryTransactionHelper
lock in interface RepositoryTransactionHelperuri - the uri of the resource.timeout - the lock timeout in seconds.
public boolean unlock(String uri)
RepositoryTransactionHelper
unlock in interface RepositoryTransactionHelperuri - the uri of the resource.
public boolean supportsTransactions()
RepositoryTransactionHelper
supportsTransactions in interface RepositoryTransactionHelperpublic boolean supportsLocking()
RepositoryTransactionHelper
supportsLocking in interface RepositoryTransactionHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||