|
||||||||||
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.WebDAVRepositoryPropertyHelper
public class WebDAVRepositoryPropertyHelper
A property helper class for the WebDAV repository intended to be used by flowscripts or corresponding wrapper components.
Constructor Summary | |
---|---|
WebDAVRepositoryPropertyHelper(CredentialsToken credentials,
WebDAVRepository repo)
create a WebDAVRepositoryPropertyHelper |
Method Summary | |
---|---|
void |
dispose()
|
List |
getAllProperties(String uri)
get all properties |
Map |
getProperties(String uri,
Set propNames)
get multiple properties |
SourceProperty |
getProperty(String uri,
String name,
String namespace)
get a single property |
void |
service(ServiceManager manager)
|
boolean |
setProperties(String uri,
Map properties)
set multiple properties |
boolean |
setProperty(String uri,
String name,
String namespace,
Node value)
set a single property to a W3C Node value |
boolean |
setProperty(String uri,
String name,
String namespace,
String value)
set a single property to a String value |
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 WebDAVRepositoryPropertyHelper(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 SourceProperty getProperty(String uri, String name, String namespace)
RepositoryPropertyHelper
getProperty
in interface RepositoryPropertyHelper
uri
- the uri of the resource.name
- the name of the property.namespace
- the namespace of the property.
public Map getProperties(String uri, Set propNames)
RepositoryPropertyHelper
getProperties
in interface RepositoryPropertyHelper
uri
- the uri of the resource.propNames
- a Set containing the property names.
public List getAllProperties(String uri)
RepositoryPropertyHelper
getAllProperties
in interface RepositoryPropertyHelper
uri
- the uri of the resource.
public boolean setProperty(String uri, String name, String namespace, String value)
RepositoryPropertyHelper
setProperty
in interface RepositoryPropertyHelper
uri
- the uri of the resource.name
- the name of the property.namespace
- the namespace of the property.value
- the String value to set the property to.
public boolean setProperty(String uri, String name, String namespace, Node value)
RepositoryPropertyHelper
setProperty
in interface RepositoryPropertyHelper
uri
- the uri of the resource.name
- the name of the property.namespace
- the namespace of the property.value
- the DOM value to set the property to.
public boolean setProperties(String uri, Map properties)
RepositoryPropertyHelper
setProperties
in interface RepositoryPropertyHelper
uri
- the uri of the resource.properties
- a Map containing the properties to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |