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.apache.struts.upload.FormFile;
19  import org.kuali.ole.select.businessobject.BibInfoBean;
20  import org.kuali.ole.select.businessobject.OleLoadFailureRecords;
21  import org.kuali.ole.select.businessobject.OleLoadSumRecords;
22  
23  import java.io.Serializable;
24  import java.math.BigDecimal;
25  import java.util.List;
26  import java.util.Map;
27  
28  
29  public interface BatchLoadService extends Serializable {
30  
31      //public Properties loadPropertiesFromClassPath(String classPath);
32  
33      public List<BibInfoBean> getBibInfoBeanList(String xmlString);
34  
35      public void saveFailureRecord(List<BibInfoBean> bibFailureRecordsList, Integer loadSumId, BigDecimal errorId);
36  
37      public void saveSuccessRecord(OleLoadSumRecords oleLoadSumRecords, int dupRecords, int poSucRecords, int sucRecords, String batchDescription, BigDecimal batchLoadProfile, String fileName);
38  
39      public boolean fileSizeValidation(Long fileSize);
40  
41      public List getDocIsbnList(List bibIsbnList);
42  
43      public int getNoOfDupIsbnRecords(List testList, List bibList);
44  
45      public List<BibInfoBean> getIsbnFailureRecordsList(List isbnList, List<BibInfoBean> bibInfoBeanList);
46  
47      public List<BibInfoBean> getVendorPoNumberFailureRecordsList(List vendorNumberList, List<BibInfoBean> bibInfoBeanList);
48  
49      public OleLoadSumRecords getOleLoadSumRecords(Map loadRecordsMap);
50  
51      public List<OleLoadFailureRecords> getOleFailureRecordsList(Map loadRecordsMap);
52  
53      public List getVendorPoNumberList(List<BibInfoBean> bibInfoBeanList);
54  
55      public List<BibInfoBean> getRequisitionFailureRecords(List reqList, List<BibInfoBean> bibInfoBeanList);
56  
57      //public List<BibInfoBean> getPoFailureRecords(List reqList,List<BibInfoBean> bibInfoBeanList);
58  
59      public String getDestinationPath();
60  
61      public void foundAllDuplicateRecords(List<BibInfoBean> bibInfoBeanList, List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> isbnDupFailureList, List<BibInfoBean> vendorPoNumberDupFailureList, List bibIsbnList);
62  
63      public Long getFileSize(FormFile upLoadFile);
64  
65      public int getDupRecordsCount(List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> isbnDupFailureList, List<BibInfoBean> vendorPoNumberDupFailureList);
66  
67      public void saveAllFailureRecords(List<BibInfoBean> isbnFailureList, List<BibInfoBean> vendorPoNumberFailureList, List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> vendorPoNumberDupFailureList, int acqLoadSumId);
68  
69      public List<BibInfoBean> getBibFailureRecordsList(List<BibInfoBean> isbnFailureList, List<BibInfoBean> vendorPoNumberFailureList, List<BibInfoBean> reqFailureList, List<BibInfoBean> titleFailureList, List<BibInfoBean> vendorPoNumberDupFailureList);
70  
71      public void createReqIdTextFile(List reqList, Integer acqSumId);
72  
73      public void createErrorMrkFile(String failureRawData, Integer acqSumId);
74  
75      public List getPOList(String loadSumId);
76  
77      public List getBibIDList(String loadSumId);
78  }