View Javadoc
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   * Created by sheiksalahudeenm on 27/3/15.
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      /*public OlePatron populateIngestOlePatronEmail(OLEPatronBo olePatronBo, OlePatron olePatron);
29  
30      public OlePatron populateIngestOlePatronName(OLEPatronBo olePatronBo, OlePatron olePatron);
31  
32      public OlePatron populateIngestOlePatronAddress(OLEPatronBo olePatronBo, OlePatron olePatron);
33  
34      public OlePatron populateIngestOlePatronPhone(OLEPatronBo olePatronBo, OlePatron olePatron);
35  
36      public OlePatron populateIngestOlePatronAffiliations(OLEPatronBo olePatronBo,  OlePatron olePatron);
37  
38      public OlePatron populateIngestOlePatronNotes(OLEPatronBo olePatronBo, OlePatron olePatron);*/
39  
40     // public OLELoaderResponseBo updateOlePatronDocument(OlePatronDocument oleInstancePatron, OLEPatronBo oleInstancePatronBo, HttpContext context);
41  }