View Javadoc
1   package org.kuali.ole.ncip.service.impl;
2   
3   import org.kuali.ole.deliver.controller.checkout.CircUtilController;
4   import org.kuali.ole.deliver.util.DroolsResponse;
5   import org.kuali.ole.utility.OleStopWatch;
6   
7   import java.util.ArrayList;
8   
9   /**
10   * Created by chenchulakshmig on 10/1/15.
11   */
12  public class VuFindCheckoutItemServiceImplImpl extends NonSip2CheckoutItemServiceImpl {
13  
14      @Override
15      protected String fireRules() {
16          OleStopWatch oleStopWatch = new OleStopWatch();
17          oleStopWatch.start();
18          ArrayList<Object> facts = new ArrayList<>();
19          facts.add(getOlePatronDocument());
20          DroolsResponse droolsResponse = new DroolsResponse();
21          facts.add(droolsResponse);
22          new CircUtilController().fireRules(facts, null, "lookup-user-vufind");
23          return droolsResponse.getErrorMessage().getErrorMessage();
24      }
25  }