1 package org.kuali.ole.patron.inquiry;
2
3 import org.kuali.ole.OLEConstants;
4 import org.kuali.ole.patron.bo.OlePatronIngestSummaryRecord;
5 import org.kuali.rice.kns.inquiry.KualiInquirableImpl;
6 import java.util.Map;
7
8
9
10
11
12
13
14
15 public class OlePatronSummaryInquirable extends KualiInquirableImpl {
16 public Object object;
17
18 @Override
19 public Object retrieveDataObject(Map parameters) {
20 object= super.retrieveDataObject(parameters);
21 return object;
22 }
23
24 public String getUrl(){
25 OlePatronIngestSummaryRecord olePatronIngestSummaryRecord=(OlePatronIngestSummaryRecord)object;
26 String url= OLEConstants.FAILED_PATRON_ATTACHMENT_DOWNLOAD_URL+olePatronIngestSummaryRecord.getOlePatronSummaryId();
27 return url;
28 }
29
30 public String getFileName(){
31 OlePatronIngestSummaryRecord olePatronIngestSummaryRecord=(OlePatronIngestSummaryRecord)object;
32 if(olePatronIngestSummaryRecord.getPatronFailedCount()!=null && olePatronIngestSummaryRecord.getPatronFailedCount()>0)
33 return olePatronIngestSummaryRecord.getOlePatronSummaryId()+OLEConstants.FAILED_PATRON_RECORD_NAME;
34 else
35 return null;
36 }
37 }