01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/search/tags/sakai_2-4-1/search-api/api/src/java/org/sakaiproject/search/dao/SearchBuilderItemDao.java $
03: * $Id: SearchBuilderItemDao.java 9762 2006-05-22 12:34:41Z ian@caret.cam.ac.uk $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.search.dao;
21:
22: import java.util.List;
23:
24: import org.sakaiproject.search.model.SearchBuilderItem;
25:
26: /**
27: * @author ieb
28: */
29: public interface SearchBuilderItemDao {
30:
31: /**
32: * create a new item
33: *
34: * @return
35: */
36: SearchBuilderItem create();
37:
38: /**
39: * Update a single item
40: *
41: * @param sb
42: */
43: void update(SearchBuilderItem sb);
44:
45: /**
46: * Locate the resource entry
47: *
48: * @param resourceName
49: * @return
50: */
51: SearchBuilderItem findByName(String resourceName);
52:
53: /**
54: * count the number of entries pending
55: *
56: * @return
57: */
58: int countPending();
59:
60: /**
61: * Get all the SearchItems
62: *
63: * @return
64: */
65: List getAll();
66:
67: /**
68: * get the global master items
69: *
70: * @return
71: */
72: List getGlobalMasters();
73:
74: /**
75: * get the site master items
76: *
77: * @return
78: */
79: List getSiteMasters();
80:
81: }
|