View Javadoc
1   package org.kuali.ole.docstore.discovery.service;
2   
3   import org.apache.solr.client.solrj.SolrServerException;
4   import org.kuali.ole.docstore.discovery.model.CallNumberBrowseParams;
5   import org.kuali.ole.docstore.discovery.model.SearchParams;
6   import org.kuali.ole.docstore.model.bo.*;
7   import org.kuali.ole.pojo.OLESerialReceivingRecord;
8   
9   import java.io.IOException;
10  import java.util.LinkedHashMap;
11  import java.util.List;
12  import java.util.Map;
13  
14  /**
15   * User: tirumalesh.b
16   * Date: 16/1/12 Time: 12:46 PM
17   */
18  public interface QueryService {
19      public List<OleDocument> queryForDocs(OleDocument queryDoc) throws Exception;
20  
21      public String queryField(SearchParams searchParams, String fieldName) throws Exception;
22  
23      public String buildQueryForDoc(OleDocument queryDoc);
24  
25      public List<String> getUUIDList(List<String> idList, String identifierType);
26  
27      public List<String> getTitleValues(String fieldValue);
28  
29      List<WorkBibDocument> getBibDocuments(SearchParams searchParams) throws Exception;
30  
31      List<WorkItemDocument> getItemDocuments(SearchParams searchParams) throws Exception;
32  
33      List<WorkHoldingsDocument> getHoldingDocuments(SearchParams searchParams) throws Exception;
34  
35      List<OLESerialReceivingRecord> getOleSerialReceivingRecords(SearchParams searchParams) throws Exception;
36  
37      List<String> getBibDetailsForPurchaseOrderSearch(Map<String, String> searchCriteria);
38  
39      public WorkBibDocument queryForBibTree(WorkBibDocument workBibDocument) throws Exception;
40  
41      public List<WorkBibDocument> queryForBibTree(List<WorkBibDocument> workBibDocumentList) throws SolrServerException, Exception;
42  
43      public WorkBibDocument buildBibDocumentInfo(WorkBibDocument bibDocument) throws SolrServerException, IOException;
44  
45      public WorkInstanceDocument queryForInstanceTree(WorkInstanceDocument instanceDocument) throws SolrServerException;
46  
47      public WorkItemDocument queryForItemTree(WorkItemDocument itemDocument) throws SolrServerException;
48  
49      public List<String> queryForBibs(String uuid) throws SolrServerException;
50  
51      public String queryForBib(String uuid) throws SolrServerException;
52  
53      public void initCallNumberBrowse(CallNumberBrowseParams callNumberBrowseParams) throws Exception;
54  
55      public List<WorkBibDocument> getWorkBibRecords(List<LinkedHashMap<String, String>> uuidsMapList) throws Exception;
56  
57      public List<WorkBibDocument> browseCallNumbers(CallNumberBrowseParams callNumberBrowseParams) throws Exception;
58  
59      boolean isFieldValueExists(String docType, String solrField, String fieldValue, String id) throws Exception;
60  
61      public List<String> queryForInstances(String uuid) throws SolrServerException;
62  
63      public List retriveResults(String queryString);
64  
65      public Map getItemDetails(String itemBarcode, String itemUUID) throws Exception;
66  
67      public Map getTitleAndAuthorfromBib(String bibUuid) throws Exception;
68  
69      public Map<String, String> getBibInformation(String bibIdentifier, Map<String, String> searchCriteria);
70  
71      public List retriveResults(String queryString, int rowSize);
72  
73      public boolean verifyFieldValue(String uuid, String fieldValue, List<String> fieldValueList) throws SolrServerException;
74  
75      public List<String> getItemIdsForInstanceIds(List<String> instanceIds) throws SolrServerException;
76  
77      public String buildQuery(SearchParams params);
78  
79      public List<WorkEHoldingsDocument> getEHoldingsDocuments(SearchParams searchParams) throws Exception;
80  
81      public WorkEInstanceDocument queryForEInstanceTree(WorkEInstanceDocument eInstanceDocument) throws SolrServerException;
82  
83      public List<String> getBibUuidsForBibMatchPoints(String code, String value) throws SolrServerException;
84  
85      public List<String> queryForItems(String bibId) throws SolrServerException;
86  
87      public List getDocuments(SearchParams searchParams) throws Exception;
88  
89  }