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:
15: package com.ibm.webdav.impl;
16:
17: import com.ibm.webdav.*;
18:
19: import java.util.*;
20:
21: /**
22: * SearchManager implements all WebDAV search methods that are
23: * dependent on a specific repository manager interface. This manager is
24: * used by ResourceImpl and its subclasses to interface with a particular
25: * repository manager for searching over resources.
26: *
27: * @author Michael Bell
28: * @version $Revision: 1.1 $
29: *
30: */
31: public interface SearchManager {
32: /** Initialize this SearchManager instance.
33: * @param resource the resource to manage
34: */
35: public void initialize();
36:
37: /**
38: * Returns the query schema for this resource
39: *
40: * @param searchReq
41: * @return
42: * @throws WebDAVException
43: */
44: public SearchSchema getSearchSchema(SearchRequest searchReq)
45: throws WebDAVException;
46:
47: /**
48: * Executes search and returns result
49: *
50: * @param searchReq
51: * @param resource
52: * @return
53: * @throws WebDAVException
54: */
55: public Vector executeSearch(SearchRequest searchReq,
56: ResourceImpl resource) throws WebDAVException;
57:
58: /**
59: * Validate search request
60: *
61: * @param searchReq
62: * @return
63: * @throws WebDAVException
64: */
65: public boolean validate(SearchRequest searchReq)
66: throws WebDAVException;
67: }
|