001package org.kuali.asr.handler;
002
003
004import org.kuali.ole.bo.OLELookupUser;
005import org.kuali.ole.converter.OLELookupUserConverter;
006
007/**
008 * Created by chenchulakshmig on 9/22/15.
009 */
010public class LookupUserResponseHandler extends ResponseHandler {
011
012    private OLELookupUserConverter oleLookupUserConverter;
013
014    public String marshalObjectToSIP2Xml(Object object) {
015        String checkOutItemXml = getOleLookupUserConverter().generateLookupUserResponseXmlForSip2((OLELookupUser) object);
016        return checkOutItemXml;
017    }
018
019    @Override
020    public String marshalObjectToXml(Object object) {
021        String checkOutItemXml = getOleLookupUserConverter().generateLookupUserResponseXml((OLELookupUser) object);
022        return checkOutItemXml;
023    }
024
025    public OLELookupUserConverter getOleLookupUserConverter() {
026        if (null == oleLookupUserConverter) {
027            oleLookupUserConverter = new OLELookupUserConverter();
028        }
029        return oleLookupUserConverter;
030    }
031
032    public void setOleLookupUserConverter(OLELookupUserConverter oleLookupUserConverter) {
033        this.oleLookupUserConverter = oleLookupUserConverter;
034    }
035}