View Javadoc
1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.select.service;
17  
18  import org.kuali.ole.select.businessobject.BibInfoBean;
19  import org.kuali.ole.select.businessobject.DocInfoBean;
20  
21  import java.util.HashMap;
22  import java.util.List;
23  import java.util.Map;
24  
25  public interface BibInfoService {
26  
27      public boolean isExists(HashMap map) throws Exception;
28  
29      public String save(BibInfoBean bibInfoBean) throws Exception;
30  
31      public String save(BibInfoBean bibInfoBean, HashMap dataMap) throws Exception;
32  
33      public List<BibInfoBean> getUUID(List<BibInfoBean> bibInfoBeanList, HashMap dataMap) throws Exception;
34  
35      //public BibInfoBean retrieveFromDocStore(String titleId) throws Exception;
36      public BibInfoBean retrieveFromDocStore(HashMap<String, String> dataMap) throws Exception;
37  
38      public List search(HashMap map, int noOfRecords) throws Exception;
39  
40      public String getDocStoreResponse(HashMap<String, String> dataMap) throws Exception;
41  
42      public List search(Map map) throws Exception;
43  
44      public List<BibInfoBean> searchBibInfo(BibInfoBean bibInfoBean) throws Exception;
45  
46      public String convertBibInfoBeanToMarcXMLString(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
47  
48      public String generateItemMarcXMLString(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
49  
50      public String generateRequestXMLString(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
51  
52      public String generateXMLStringForIngest(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
53  
54      public String getDocSearchResponse(BibInfoBean bibInfoBean) throws Exception;
55  
56      public boolean isDuplicateRecord(BibInfoBean bibInfoBean) throws Exception;
57  
58      public List<DocInfoBean> getResult(List isbnList) throws Exception;
59  
60      public String getTitleIdByMarcXMLFileProcessing(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
61  
62  /*    public BibInfoBean retrieveFromSolrQuery(Map map) throws Exception;
63  
64      public BibInfoBean retrieveFromSolrQueryNew(Map map) throws Exception;*/
65  }