001package org.kuali.ole.ncip.service.impl;
002
003import org.kuali.ole.ncip.bo.OLECheckInItem;
004
005/**
006 * Created by chenchulakshmig on 8/27/15.
007 */
008public class NonSip2CheckinItemService extends CheckinItemService {
009
010    @Override
011    public String prepareResponse(OLECheckInItem oleCheckInItem) {
012        switch (responseFormatType) {
013            case ("XML"):
014                response = getResponseHandler().marshalObjectToXml(oleCheckInItem);
015                break;
016            case ("JSON"):
017                response = getResponseHandler().marshalObjectToJson(oleCheckInItem);
018                break;
019        }
020
021        return response;
022    }
023
024    @Override
025    public String getOperatorId(String operatorId) {
026        return operatorId;
027    }
028}