KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > webdav > impl > VersionedPropertiesManager


1 /*
2  * (C) Copyright Simulacra Media Ltd, 2004. All rights reserved.
3  *
4  * The program is provided "AS IS" without any warranty express or
5  * implied, including the warranty of non-infringement and the implied
6  * warranties of merchantibility and fitness for a particular purpose.
7  * Simulacra Media Ltd will not be liable for any damages suffered by you as a result
8  * of using the Program. In no event will Simulacra Media Ltd be liable for any
9  * special, indirect or consequential damages or lost profits even if
10  * Simulacra Media Ltd has been advised of the possibility of their occurrence.
11  * Simulacra Media Ltd will not be liable for any third party claims against you.
12  *
13  */

14 package com.ibm.webdav.impl;
15
16 import org.w3c.dom.Document JavaDoc;
17
18 import com.ibm.webdav.WebDAVException;
19
20
21 /**
22  * VersionedPropertiesManager implements all WebDAV property methods that deal with
23  * versioned resources that are dependent on a specific repository manager interface.
24  * This manager is used by ResourceImpl and its subclasses to interface with a particular
25  * repository manager for accessing and controlling resource version properties.
26  *
27  * @author Michael Bell
28  * @version $Revision: 1.1 $
29  * @since November 14, 2003
30  */

31 public interface VersionedPropertiesManager extends PropertiesManager {
32     public static final String JavaDoc TAG_COMMENT = "comment";
33     public static final String JavaDoc TAG_CREATOR_DISPLAYNAME = "creator-displayname";
34
35
36     /** Remove the version DAV properties from the properties document that
37     * do not need to be saved. There is no reason to save them as long
38     * as they are recalculated each time the properties are loaded. This
39     * method removes the ones that are repository specific.
40     *
41     * @param propertiesDocument an XML document containing a properties element.
42     */

43     public void removeVersionProperties(Document JavaDoc propertiesDocument);
44     
45     /** Update the version properties that are unique to the
46     * repository implementation
47     *
48     * @param document an XML document containing a properties to update.
49     * @exception com.ibm.webdav.WebDAVException
50     */

51     public void updateVersionProperties(Document JavaDoc document) throws WebDAVException;
52
53     public boolean isVersionProperty(String JavaDoc sPropName);
54 }
55
Popular Tags