View Javadoc
1   package org.kuali.asr.handler;
2   
3   import org.kuali.ole.bo.OLECheckOutItem;
4   import org.kuali.ole.converter.OLECheckOutItemConverter;
5   
6   /**
7    * Created by chenchulakshmig on 8/25/15.
8    */
9   public class CheckoutItemResponseHandler extends ResponseHandler {
10  
11      private OLECheckOutItemConverter oleCheckOutItemConverter;
12  
13      public String marshalObjectToSIP2Xml(Object object) {
14          String checkOutItemXml = getOleCheckOutItemConverter().generateCheckOutItemXmlForSIP2((OLECheckOutItem) object);
15          return checkOutItemXml;
16      }
17  
18      @Override
19      public String marshalObjectToXml(Object object) {
20          String checkOutItemXml = getOleCheckOutItemConverter().generateCheckOutItemXml((OLECheckOutItem) object);
21          return checkOutItemXml;
22      }
23  
24      public OLECheckOutItemConverter getOleCheckOutItemConverter() {
25          if (null == oleCheckOutItemConverter){
26              oleCheckOutItemConverter = new OLECheckOutItemConverter();
27          }
28          return oleCheckOutItemConverter;
29      }
30  
31      public void setOleCheckOutItemConverter(OLECheckOutItemConverter oleCheckOutItemConverter) {
32          this.oleCheckOutItemConverter = oleCheckOutItemConverter;
33      }
34  }