001/*
002 * Copyright 2011 The Kuali Foundation.
003 * 
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 * http://www.opensource.org/licenses/ecl2.php
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.ole.select.service;
017
018import org.kuali.ole.select.businessobject.BibInfoBean;
019import org.kuali.ole.select.businessobject.DocInfoBean;
020
021import java.util.HashMap;
022import java.util.List;
023import java.util.Map;
024
025public interface BibInfoService {
026
027    public boolean isExists(HashMap map) throws Exception;
028
029    public String save(BibInfoBean bibInfoBean) throws Exception;
030
031    public String save(BibInfoBean bibInfoBean, HashMap dataMap) throws Exception;
032
033    public List<BibInfoBean> getUUID(List<BibInfoBean> bibInfoBeanList, HashMap dataMap) throws Exception;
034
035    //public BibInfoBean retrieveFromDocStore(String titleId) throws Exception;
036    public BibInfoBean retrieveFromDocStore(HashMap<String, String> dataMap) throws Exception;
037
038    public List search(HashMap map, int noOfRecords) throws Exception;
039
040    public String getDocStoreResponse(HashMap<String, String> dataMap) throws Exception;
041
042    public List search(Map map) throws Exception;
043
044    public List<BibInfoBean> searchBibInfo(BibInfoBean bibInfoBean) throws Exception;
045
046    public String convertBibInfoBeanToMarcXMLString(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
047
048    public String generateItemMarcXMLString(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
049
050    public String generateRequestXMLString(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
051
052    public String generateXMLStringForIngest(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
053
054    public String getDocSearchResponse(BibInfoBean bibInfoBean) throws Exception;
055
056    public boolean isDuplicateRecord(BibInfoBean bibInfoBean) throws Exception;
057
058    public List<DocInfoBean> getResult(List isbnList) throws Exception;
059
060    public String getTitleIdByMarcXMLFileProcessing(BibInfoBean bibInfoBean, HashMap<String, String> dataMap) throws Exception;
061
062/*    public BibInfoBean retrieveFromSolrQuery(Map map) throws Exception;
063
064    public BibInfoBean retrieveFromSolrQueryNew(Map map) throws Exception;*/
065}