01: /*
02: * Copyright 2003-2005 Michael Franken, Zilverline.
03: *
04: * The contents of this file, or the files included with this file, are subject to
05: * the current version of ZILVERLINE Collaborative Source License for the
06: * Zilverline Search Engine (the "License"); You may not use this file except in
07: * compliance with the License.
08: *
09: * You may obtain a copy of the License at
10: *
11: * http://www.zilverline.org.
12: *
13: * See the License for the rights, obligations and
14: * limitations governing use of the contents of the file.
15: *
16: * The Original and Upgraded Code is the Zilverline Search Engine. The developer of
17: * the Original and Upgraded Code is Michael Franken. Michael Franken owns the
18: * copyrights in the portions it created. All Rights Reserved.
19: *
20: */
21:
22: package org.zilverline.dao;
23:
24: import org.zilverline.service.CollectionManager;
25:
26: /**
27: * Interface towards data access of CollectionManager.
28: *
29: * @author Michael Franken
30: * @version $Revision: 1.3 $
31: */
32: public interface CollectionManagerDAO {
33: /**
34: * Retrieve the CollectionManager from store.
35: *
36: * @return CollectionManager the Manager
37: */
38: CollectionManager load();
39:
40: /**
41: * Save the CollectionManager to the datastore.
42: *
43: * @param manager the CollectionManager
44: * @throws DAOException if the manager can not be stored
45: */
46: void store(CollectionManager manager) throws DAOException;
47: }
|