1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
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
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 }