|
||||||||||
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.WebDAVRepositoryVersioningHelper
public class WebDAVRepositoryVersioningHelper
A versioning helper class intended to be used by flowscripts or corresponding wrapper components.
Constructor Summary | |
---|---|
WebDAVRepositoryVersioningHelper(CredentialsToken credentials,
WebDAVRepository repo)
create a WebDAVRepositoryVersioningHelper |
Method Summary | |
---|---|
boolean |
checkin(String uri)
checkin a resource |
boolean |
checkout(String uri)
checkout a resource |
void |
dispose()
|
List |
getVersions(String uri)
get the version history of a resource |
boolean |
isVersioned(String uri)
check if a resource is under version control |
void |
service(ServiceManager manager)
|
boolean |
setVersioned(String uri,
boolean versioned)
set a resource under version control |
boolean |
uncheckout(String uri)
undo a previously done checkout |
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 WebDAVRepositoryVersioningHelper(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 checkout(String uri)
RepositoryVersioningHelper
checkout
in interface RepositoryVersioningHelper
uri
- the uri of the resource.
public boolean checkin(String uri)
RepositoryVersioningHelper
checkin
in interface RepositoryVersioningHelper
uri
- the uri of the resource.
public boolean uncheckout(String uri)
RepositoryVersioningHelper
uncheckout
in interface RepositoryVersioningHelper
uri
- the uri of the resource.
public boolean isVersioned(String uri)
RepositoryVersioningHelper
isVersioned
in interface RepositoryVersioningHelper
uri
- the uri of the resource.
public boolean setVersioned(String uri, boolean versioned)
RepositoryVersioningHelper
setVersioned
in interface RepositoryVersioningHelper
uri
- the uri of the resource.versioned
- if true the resource is set under version control.
public List getVersions(String uri)
RepositoryVersioningHelper
getVersions
in interface RepositoryVersioningHelper
uri
- the uri of the resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |