| |
|
| java.lang.Object com.ibm.webdav.impl.CachedPropertiesManager
All known Subclasses: org.openharmonise.dav.server.managers.HarmonisePropertiesManager, com.ibm.webdav.fileSystem.PropertiesManager,
CachedPropertiesManager | abstract public class CachedPropertiesManager implements PropertiesManager(Code) | | CachedPropertiesManager implements the Properties interface by loading
all properties on an initial request, and then accessing from the
cache to satisfy more specific requests. This implementation is
appropriate in those situations where reading all the properties
is just as efficient as reading one. CachedProperties is abstract
because it relies on specific subclasses to support the actual
reading and writing of the properties.
author: Jim Amsden <jamsden@us.ibm.com> |
CachedPropertiesManager | public CachedPropertiesManager()(Code) | | The default constructor.
|
CachedPropertiesManager | public CachedPropertiesManager(ResourceImpl resource, com.ibm.webdav.impl.NamespaceManager namespaceManager)(Code) | | Create a properties manager for the given resource and its
namespace manager.
Parameters: resource - the resource whose properties are to be managed Parameters: namespaceManager - its namespace manager |
getProperties | public MultiStatus getProperties() throws WebDAVException(Code) | | Get all the properties of this resource.
This implementation stores properties in an XML document containing a properties
root element. The properties file name is derived from the URI by adding the extension
PropertiesManager.propertiesSuffix. This applies to collections as well as other resources.
Since the properties are stored in a file, and all methods that query and
update the properties must read the XML file into memory and parse it,
many of the other property methods are implemented by calling this method.
Subclasses of ResourceImpl may want to use other techniques depending on
how the properties are stored.
a MultiStatus containing response elements with prop elementscontaining the properties and their statuses. exception: com.ibm.webdav.WebDAVException - |
getPropertyNames | public MultiStatus getPropertyNames() throws WebDAVException(Code) | | Get the names of all properties for this resource. This implementation
reads all the properties and then extracts their names.
a MultiStatus of PropertyResponses(PropertyValue.value is always null, PropertyValue.status contains the status) exception: com.ibm.webdav.WebDAVException - |
initialize | public void initialize(ResourceImpl resource, com.ibm.webdav.impl.NamespaceManager namespaceManager)(Code) | | Initialize this properties manager.
Parameters: resource - the resource whose properties are to be managed Parameters: namespaceManager - its namespace manager |
isLive | public boolean isLive(String propertyName)(Code) | | Is a property live, i.e., has semantics supported by the server?
Parameters: propertyName - the name of the property to check true if the named property is live on this server |
removeLiveProperties | abstract public void removeLiveProperties(Document propertiesDocument)(Code) | | Remove the live DAV properties from the properties document that
do not need to be saved. There is no reason to save them as long
as they are recalculated each time the properties are loaded. This
method removes the ones that are repository specific.
Parameters: propertiesDocument - the XML document containing the properties. Elementsare removed from this document that don't need to be saved. |
setProperties | public MultiStatus setProperties(Document propertyUpdates) throws WebDAVException(Code) | | Edit the properties of a resource. The updates must refer to a Document containing a WebDAV
propertyupdates element as the document root.
Parameters: updates - an XML Document containing propertyupdate elements the result of making the updatesdescribing the edits to be made. exception: com.ibm.webdav.WebDAVException - |
updateLiveProperties | abstract public void updateLiveProperties(Document document) throws WebDAVException(Code) | | Update the live properties that are unique to the
repository implementation.
Parameters: document - the XML document containing the properties exception: com.ibm.webdav.WebDAVException - |
|
|
|