Salome HOME
Reindex of studies is fixed.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / SearchService.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   05.10.2012
6  * @author         $Author$
7  * @version        $Revision$
8  *****************************************************************************/
9
10 package org.splat.service;
11
12 import java.util.List;
13
14 import org.splat.dal.bo.som.KnowledgeElement;
15 import org.splat.dal.bo.som.Study;
16 import org.splat.service.dto.Proxy;
17
18 /**
19  * Search service interface.
20  * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
21  */
22 public interface SearchService {
23
24         /**
25          * Refresh lucene index for studies.
26          * 
27          * @param ridlist
28          *            list of studies id's
29          */
30         public void reindexStudies(String[] ridlist);
31
32         /**
33          * Find knowledge elements with given properties.
34          * @param kprop search filter parameters
35          * @return the list of found knowledge elements as proxiy results of lucene search
36          */
37         public List<Proxy> selectKnowledgeElementsWhere(
38                         KnowledgeElement.Properties... kprop);
39
40         /**
41          * Find studies with given properties.
42          * @param sprop search filter parameters
43          * @return the list of found studies as proxiy results of lucene search
44          */
45         public List<Proxy> selectStudiesWhere(Study.Properties... sprop);
46
47         /**
48          * Refresh lucene index for a study.
49          * @param study the study to reindex
50          */
51         public void indexStudy(Study study);
52 }