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.form.CircForm;
6 import org.kuali.ole.deliver.util.ErrorMessage;
7
8
9
10
11 public class PatronLookupCircUIController extends PatronLookupCircBaseController {
12
13 private CircForm getCircForm(DroolsExchange droolsExchange){
14 return (CircForm) droolsExchange.getContext().get("circForm");
15 }
16
17 @Override
18 public OlePatronDocument getPatronDocument(DroolsExchange droolsExchange){
19 return getCircForm(droolsExchange).getPatronDocument();
20 }
21
22 @Override
23 public void setPatronDocument(DroolsExchange droolsExchange, OlePatronDocument patronDocument) {
24 getCircForm(droolsExchange).setPatronDocument(patronDocument);
25 }
26
27 @Override
28 public String getPatronBarcode(DroolsExchange droolsExchange) {
29 return getCircForm(droolsExchange).getPatronBarcode();
30 }
31
32 @Override
33 public void setErrorMessage(DroolsExchange droolsExchange, ErrorMessage errorMessage) {
34 getCircForm(droolsExchange).setErrorMessage(errorMessage);
35 }
36
37 @Override
38 public void setProxyCheckDone(DroolsExchange droolsExchange, boolean proxyCheckDone) {
39 getCircForm(droolsExchange).setProxyCheckDone(proxyCheckDone);
40 }
41 }
42
43
44