1 package org.kuali.ole.ncip.service;
2
3 import org.extensiblecatalog.ncip.v2.service.*;
4 import org.kuali.ole.ncip.bo.OLENCIPConstants;
5
6
7
8
9
10 public class NCIPAcceptItemResponseBuilder {
11
12 public void setRequestId(AcceptItemResponseData acceptItemResponseData, AgencyId agencyId, String requestIdentifierValue) {
13 RequestId requestId = new RequestId();
14 requestId.setAgencyId(agencyId);
15 RequestIdentifierType requestIdentifierType = new RequestIdentifierType(OLENCIPConstants.SCHEME, OLENCIPConstants.REQUEST_IDS);
16 requestId.setRequestIdentifierType(requestIdentifierType);
17 requestId.setRequestIdentifierValue(requestIdentifierValue);
18 acceptItemResponseData.setRequestId(requestId);
19
20 }
21
22 public void setItemId(AcceptItemResponseData acceptItemResponseData, AgencyId agencyId, String itemIdentifierValue) {
23 ItemId itemId = new ItemId();
24 itemId.setAgencyId(agencyId);
25 ItemIdentifierType itemIdentifierType = new ItemIdentifierType(OLENCIPConstants.SCHEME, OLENCIPConstants.ITEM_BARCODES);
26 itemId.setItemIdentifierType(itemIdentifierType);
27 itemId.setItemIdentifierValue(itemIdentifierValue);
28 acceptItemResponseData.setItemId(itemId);
29 }
30
31 }