001package org.kuali.ole.ncip.service; 002 003import org.extensiblecatalog.ncip.v2.service.*; 004import org.kuali.ole.ncip.bo.OLENCIPConstants; 005 006 007/** 008 * Created by chenchulakshmig on 8/11/15. 009 */ 010public class NCIPAcceptItemResponseBuilder { 011 012 public void setRequestId(AcceptItemResponseData acceptItemResponseData, AgencyId agencyId, String requestIdentifierValue) { 013 RequestId requestId = new RequestId(); 014 requestId.setAgencyId(agencyId); 015 RequestIdentifierType requestIdentifierType = new RequestIdentifierType(OLENCIPConstants.SCHEME, OLENCIPConstants.REQUEST_IDS); 016 requestId.setRequestIdentifierType(requestIdentifierType); 017 requestId.setRequestIdentifierValue(requestIdentifierValue); 018 acceptItemResponseData.setRequestId(requestId); 019 020 } 021 022 public void setItemId(AcceptItemResponseData acceptItemResponseData, AgencyId agencyId, String itemIdentifierValue) { 023 ItemId itemId = new ItemId(); 024 itemId.setAgencyId(agencyId); 025 ItemIdentifierType itemIdentifierType = new ItemIdentifierType(OLENCIPConstants.SCHEME, OLENCIPConstants.ITEM_BARCODES); 026 itemId.setItemIdentifierType(itemIdentifierType); 027 itemId.setItemIdentifierValue(itemIdentifierValue); 028 acceptItemResponseData.setItemId(itemId); 029 } 030 031}