001package org.kuali.asr.handler; 002 003import org.kuali.ole.bo.OLERenewItemList; 004import org.kuali.ole.converter.OLERenewItemConverter; 005 006/** 007 * Created by pvsubrah on 6/26/15. 008 */ 009public class RenewItemResponseHandler extends ResponseHandler { 010 011 private OLERenewItemConverter oleRenewItemConverter; 012 013 public String marshalObjectToSIP2Xml(Object object) { 014 String renewItemXml = getOleRenewItemConverter().generateRenewItemListXmlForSip2((OLERenewItemList) object); 015 return renewItemXml; 016 } 017 018 @Override 019 public String marshalObjectToXml(Object object) { 020 String renewItemXml = getOleRenewItemConverter().generateRenewItemListXml((OLERenewItemList) object); 021 return renewItemXml; 022 } 023 024 @Override 025 public String marshalObjectToJson(Object object) { 026 return super.marshalObjectToJson(object); 027 } 028 029 private OLERenewItemConverter getOleRenewItemConverter() { 030 if (null == oleRenewItemConverter) { 031 oleRenewItemConverter = new OLERenewItemConverter(); 032 } 033 return oleRenewItemConverter; 034 } 035}