1 package org.kuali.ole.ncip.service.impl;
2
3 import org.kuali.ole.deliver.bo.OlePatronDocument;
4 import org.kuali.ole.deliver.controller.checkout.CircUtilController;
5 import org.kuali.ole.deliver.util.DroolsResponse;
6 import org.kuali.ole.utility.OleStopWatch;
7
8 import java.util.ArrayList;
9
10
11
12
13 public class VuFindRenewItemService extends NonSip2RenewItemService{
14
15 @Override
16 public DroolsResponse validatePatron(OlePatronDocument olePatronDocument) {
17 OleStopWatch oleStopWatch = new OleStopWatch();
18 oleStopWatch.start();
19 ArrayList<Object> facts = new ArrayList<>();
20 facts.add(olePatronDocument);
21 DroolsResponse droolsResponse = new DroolsResponse();
22 facts.add(droolsResponse);
23 new CircUtilController().fireRules(facts, null, "lookup-user-vufind");
24 return droolsResponse;
25 }
26 }