View Javadoc
1   package org.kuali.ole.service.impl;
2   
3   import org.kuali.ole.OLEConstants;
4   import org.kuali.ole.describe.service.DiscoveryHelperService;
5   import org.kuali.ole.service.OverlayMatchingService;
6   
7   import java.util.List;
8   
9   /**
10   * Created by IntelliJ IDEA.
11   * User: premkb
12   * Date: 12/2/12
13   * Time: 8:49 PM
14   * To change this template use File | Settings | File Templates.
15   */
16  public class OverlayMatchingServiceImpl implements OverlayMatchingService {
17  
18      private DiscoveryHelperService discoveryHelperService ;
19  
20  
21      public List getInstanceCollectionOnLocationMatch(String locationName) throws Exception{
22          List resultList =  getDiscoveryHelperService().getResponseFromSOLR(OLEConstants.OverlayMatchingServiceImpl.LOCATION_LEVEL_SEARCH, locationName);
23          return resultList;
24      }
25  
26      public List getInstanceCollectionOnItemBarcodenMatch(String itemBarcode) throws Exception{
27          List resutlList = getDiscoveryHelperService().getResponseFromSOLR(OLEConstants.OverlayMatchingServiceImpl.ITEM_BARCODE_DISPLAY, itemBarcode);
28          return resutlList;
29      }
30  
31      @Override
32      public List getInstanceCollectionOnVendorLineItemIdentifierMatch(String vendorLineItenIdentifier) throws Exception {
33          List resutlList = getDiscoveryHelperService().getResponseFromSOLR(OLEConstants.OverlayMatchingServiceImpl.VENDOR_LINEITEM_IDENTIFIER,vendorLineItenIdentifier);
34          return resutlList;
35      }
36  
37      @Override
38      public List getBibInfoUsingUUID(String id) throws Exception {
39          List resutlList = getDiscoveryHelperService().getBibInformationFromBibId(id);
40          return resutlList;
41      }
42  
43      public DiscoveryHelperService getDiscoveryHelperService() {
44          if (null == discoveryHelperService) {
45              discoveryHelperService = new DiscoveryHelperService();
46          }
47          return discoveryHelperService;
48      }
49  }