View Javadoc
1   /*
2    * Copyright 2013 The Kuali Foundation.
3    *
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }