Java Doc for CachedPropertiesManager.java in  » Content-Management-System » harmonise » com » ibm » webdav » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » harmonise » com.ibm.webdav.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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>


Field Summary
protected  ResourceImplresource
    

Constructor Summary
public  CachedPropertiesManager()
     The default constructor.
public  CachedPropertiesManager(ResourceImpl resource, com.ibm.webdav.impl.NamespaceManager namespaceManager)
     Create a properties manager for the given resource and its namespace manager.

Method Summary
abstract public  voiddeleteProperties()
    
public  MultiStatusgetProperties()
     Get all the properties of this resource. This implementation stores properties in an XML document containing a properties root element.
public  MultiStatusgetProperties(PropertyName[] names)
     Get the named properties for this resource and (potentially) its children.
public  MultiStatusgetPropertyNames()
     Get the names of all properties for this resource.
public  voidinitialize(ResourceImpl resource, com.ibm.webdav.impl.NamespaceManager namespaceManager)
     Initialize this properties manager.
public  booleanisLive(String propertyName)
    
abstract public  DocumentloadProperties()
     Load properties from their persistent store.
abstract public  voidremoveLiveProperties(Document propertiesDocument)
     Remove the live DAV properties from the properties document that do not need to be saved.
abstract public  voidsaveProperties(Document propertiesDocument)
     Save the properties to the persistent store.
public  MultiStatussetProperties(Document propertyUpdates)
     Edit the properties of a resource.
public  voidsetProperty(String name, Element value)
     Set a property of a resource to a value.
abstract public  voidupdateLiveProperties(Document document)
     Update the live properties that are unique to the repository implementation.

Field Detail
resource
protected ResourceImpl resource(Code)




Constructor Detail
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




Method Detail
deleteProperties
abstract public void deleteProperties() throws WebDAVException(Code)
Delete all properties for the managed resource
exception:
  IOException -
exception:
  com.ibm.webdav.WebDAVException -



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 -



getProperties
public MultiStatus getProperties(PropertyName[] names) throws WebDAVException(Code)
Get the named properties for this resource and (potentially) its children.
Parameters:
  names - an arrary of property names to retrieve a MultiStatus of PropertyResponses
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



loadProperties
abstract public Document loadProperties() throws WebDAVException(Code)
Load properties from their persistent store. an XML document containing a properties element.
exception:
  com.ibm.webdav.WebDAVException -



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.



saveProperties
abstract public void saveProperties(Document propertiesDocument) throws WebDAVException(Code)
Save the properties to the persistent store.
Parameters:
  propertiesDocument - an XML document containing a properties element.
exception:
  com.ibm.webdav.WebDAVException -



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 -



setProperty
public void setProperty(String name, Element value) throws WebDAVException(Code)
Set a property of a resource to a value.
Parameters:
  name - the property name
Parameters:
  value - the property value
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 -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.