1 package org.kuali.asr.handler;
2
3
4 import org.kuali.ole.bo.OLELookupUser;
5 import org.kuali.ole.converter.OLELookupUserConverter;
6
7
8
9
10 public class LookupUserResponseHandler extends ResponseHandler {
11
12 private OLELookupUserConverter oleLookupUserConverter;
13
14 public String marshalObjectToSIP2Xml(Object object) {
15 String checkOutItemXml = getOleLookupUserConverter().generateLookupUserResponseXmlForSip2((OLELookupUser) object);
16 return checkOutItemXml;
17 }
18
19 @Override
20 public String marshalObjectToXml(Object object) {
21 String checkOutItemXml = getOleLookupUserConverter().generateLookupUserResponseXml((OLELookupUser) object);
22 return checkOutItemXml;
23 }
24
25 public OLELookupUserConverter getOleLookupUserConverter() {
26 if (null == oleLookupUserConverter) {
27 oleLookupUserConverter = new OLELookupUserConverter();
28 }
29 return oleLookupUserConverter;
30 }
31
32 public void setOleLookupUserConverter(OLELookupUserConverter oleLookupUserConverter) {
33 this.oleLookupUserConverter = oleLookupUserConverter;
34 }
35 }