View Javadoc
1   package org.kuali.ole.ncip.service.impl;
2   
3   import org.kuali.ole.ncip.bo.OLECheckInItem;
4   
5   /**
6    * Created by chenchulakshmig on 8/27/15.
7    */
8   public class NonSip2CheckinItemService extends CheckinItemService {
9   
10      @Override
11      public String prepareResponse(OLECheckInItem oleCheckInItem) {
12          switch (responseFormatType) {
13              case ("XML"):
14                  response = getResponseHandler().marshalObjectToXml(oleCheckInItem);
15                  break;
16              case ("JSON"):
17                  response = getResponseHandler().marshalObjectToJson(oleCheckInItem);
18                  break;
19          }
20  
21          return response;
22      }
23  
24      @Override
25      public String getOperatorId(String operatorId) {
26          return operatorId;
27      }
28  }