View Javadoc
1   package org.kuali.ole.deliver.controller;
2   
3   import org.kuali.ole.deliver.bo.OlePatronDocument;
4   import org.kuali.ole.deliver.drools.DroolsExchange;
5   import org.kuali.ole.deliver.util.ErrorMessage;
6   
7   /**
8    * Created by chenchulakshmig on 8/25/15.
9    */
10  public class PatronLookupCircAPIController extends PatronLookupCircBaseController {
11  
12      @Override
13      public OlePatronDocument getPatronDocument(DroolsExchange droolsExchange) {
14          OlePatronDocument olePatronDocument = (OlePatronDocument) droolsExchange.getFromContext("olePatronDocument");
15          if (olePatronDocument == null) {
16              return new OlePatronDocument();
17          }
18          return olePatronDocument;
19      }
20  
21      @Override
22      public void setPatronDocument(DroolsExchange droolsExchange, OlePatronDocument patronDocument) {
23          droolsExchange.addToContext("olePatronDocument", patronDocument);
24      }
25  
26      @Override
27      public String getPatronBarcode(DroolsExchange droolsExchange) {
28          return (String) droolsExchange.getFromContext("patronBarcode");
29      }
30  
31      @Override
32      public void setErrorMessage(DroolsExchange droolsExchange, ErrorMessage errorMessage) {
33  
34      }
35  
36      @Override
37      public void setProxyCheckDone(DroolsExchange droolsExchange, boolean proxyCheckDone) {
38  
39      }
40  }