1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.page.document;
18
19 import org.apache.jetspeed.om.page.Document;
20
21 /***
22 * <p>
23 * DocumentHandler
24 * </p>
25 * <p>
26 *
27 * </p>
28 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
29 * @version $Id: DocumentHandler.java 516448 2007-03-09 16:25:47Z ate $
30 *
31 */
32 public interface DocumentHandler
33 {
34 Document getDocument(String name) throws DocumentNotFoundException, NodeException;
35
36 Document getDocument(String name, boolean fromCahe) throws DocumentNotFoundException, NodeException;
37
38 void updateDocument(Document document) throws FailedToUpdateDocumentException;
39
40 void removeDocument(Document document) throws DocumentNotFoundException, FailedToDeleteDocumentException;
41
42 String getType();
43
44 DocumentHandlerFactory getHandlerFactory();
45
46 void setHandlerFactory(DocumentHandlerFactory factory);
47 }