1 package org.kuali.ole.loaders.deliver.service;
2
3 import com.sun.jersey.api.core.HttpContext;
4 import org.codehaus.jettison.json.JSONArray;
5 import org.kuali.ole.deliver.bo.OlePatronDocument;
6 import org.kuali.ole.ingest.pojo.OlePatron;
7 import org.kuali.ole.loaders.common.bo.OLELoaderResponseBo;
8 import java.util.List;
9 import java.util.Map;
10
11
12
13
14 public interface OLEPatronLoaderHelperService {
15
16 public OlePatronDocument getPatronById(String patronId);
17
18 public OlePatronDocument getPatronByCode(String patronCode);
19
20 public List<OlePatronDocument> getAllPatrons();
21
22 public Object formPatronExportResponse(Object object, String patronContext, String uri, boolean addContext);
23
24 public Object formAllPatronExportResponse(HttpContext context, List<OlePatronDocument> oleInstancePatronList, String patronContext, String uri);
25
26 public List<OlePatron> formIngestOlePatrons(JSONArray patronJsonArray,Map<String,Integer> rejectedPatronBarcodeIndexMap, Map<String,Integer> selectedPatronBarcodeIndexMap);
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 }