1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.select.service.impl;
17
18 import org.apache.commons.lang.StringUtils;
19 import org.kuali.ole.deliver.bo.OLEPatronEntityViewBo;
20 import org.kuali.ole.deliver.bo.OlePatronDocument;
21 import org.kuali.ole.select.businessobject.OLERequestorPatronDocument;
22 import org.kuali.ole.select.businessobject.OlePatronDocuments;
23 import org.kuali.ole.select.businessobject.OlePatronRecordHandler;
24 import org.kuali.ole.select.service.OleUrlResolver;
25 import org.kuali.ole.service.impl.OlePatronWebServiceImpl;
26 import org.kuali.ole.sys.OLEConstants;
27 import org.kuali.rice.kns.lookup.AbstractLookupableHelperServiceImpl;
28 import org.kuali.rice.krad.bo.BusinessObject;
29
30 import java.util.*;
31
32 public class OlePatronLookupableServiceImpl extends AbstractLookupableHelperServiceImpl {
33
34 private transient OleUrlResolver oleUrlResolver;
35 private OlePatronRecordHandler olePatronRecordHandler;
36
37
38 public OlePatronRecordHandler getOlePatronRecordHandler() {
39 if (null == olePatronRecordHandler) {
40 olePatronRecordHandler = new OlePatronRecordHandler();
41 }
42 return olePatronRecordHandler;
43 }
44
45 public void setOlePatronRecordHandler(OlePatronRecordHandler olePatronRecordHandler) {
46 this.olePatronRecordHandler = olePatronRecordHandler;
47 }
48
49 @Override
50 public List<? extends BusinessObject> getSearchResults(Map<String, String> fieldValues) {
51 return (List<OLEPatronEntityViewBo>)getBusinessObjectService().findAll(OLEPatronEntityViewBo.class);
52 }
53
54 }