KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > search > QueryRegisterComponent


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.repo.search;
18
19 import org.alfresco.service.cmr.search.QueryParameterDefinition;
20 import org.alfresco.service.namespace.QName;
21
22 public interface QueryRegisterComponent
23 {
24     /**
25      * Get a query defintion by Qname
26      *
27      * @param qName
28      * @return
29      */

30     public CannedQueryDef getQueryDefinition(QName qName);
31     
32     /**
33      * Get the name of the collection containing a query
34      *
35      * @param qName
36      * @return
37      */

38     public String JavaDoc getCollectionNameforQueryDefinition(QName qName);
39     
40     /**
41      * Get a parameter definition
42      *
43      * @param qName
44      * @return
45      */

46     public QueryParameterDefinition getParameterDefinition(QName qName);
47     
48     /**
49      * Get the name of the collection containing a parameter definition
50      *
51      * @param qName
52      * @return
53      */

54     public String JavaDoc getCollectionNameforParameterDefinition(QName qName);
55     
56     
57     /**
58      * Get a query collection by name
59      *
60      * @param name
61      * @return
62      */

63     public QueryCollection getQueryCollection(String JavaDoc name);
64     
65     
66     /**
67      * Load a query collection
68      *
69      * @param location
70      */

71     public void loadQueryCollection(String JavaDoc location);
72 }
73
Popular Tags