01: /*
02: * (C) Copyright Simulacra Media Ltd, 2004. All rights reserved.
03: *
04: * The program is provided "AS IS" without any warranty express or
05: * implied, including the warranty of non-infringement and the implied
06: * warranties of merchantibility and fitness for a particular purpose.
07: * Simulacra Media Ltd will not be liable for any damages suffered by you as a result
08: * of using the Program. In no event will Simulacra Media Ltd be liable for any
09: * 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;
17:
18: import com.ibm.webdav.WebDAVException;
19:
20: /**
21: * VersionedPropertiesManager implements all WebDAV property methods that deal with
22: * versioned resources that are dependent on a specific repository manager interface.
23: * This manager is used by ResourceImpl and its subclasses to interface with a particular
24: * repository manager for accessing and controlling resource version properties.
25: *
26: * @author Michael Bell
27: * @version $Revision: 1.1 $
28: * @since November 14, 2003
29: */
30: public interface VersionedPropertiesManager extends PropertiesManager {
31: public static final String TAG_COMMENT = "comment";
32: public static final String TAG_CREATOR_DISPLAYNAME = "creator-displayname";
33:
34: /** Remove the version DAV properties from the properties document that
35: * do not need to be saved. There is no reason to save them as long
36: * as they are recalculated each time the properties are loaded. This
37: * method removes the ones that are repository specific.
38: *
39: * @param propertiesDocument an XML document containing a properties element.
40: */
41: public void removeVersionProperties(Document propertiesDocument);
42:
43: /** Update the version properties that are unique to the
44: * repository implementation
45: *
46: * @param document an XML document containing a properties to update.
47: * @exception com.ibm.webdav.WebDAVException
48: */
49: public void updateVersionProperties(Document document)
50: throws WebDAVException;
51:
52: public boolean isVersionProperty(String sPropName);
53: }
|