1 package org.kuali.ole.ncip.bo;
2
3 import org.apache.log4j.Logger;
4 import org.jfree.util.HashNMap;
5 import org.kuali.ole.OLEConstants;
6 import org.kuali.ole.module.purap.PurapConstants;
7 import org.kuali.ole.module.purap.PurapParameterConstants;
8 import org.kuali.ole.module.purap.document.PurchaseOrderDocument;
9 import org.kuali.rice.core.api.config.property.ConfigContext;
10 import org.kuali.rice.coreservice.impl.parameter.ParameterBo;
11 import org.kuali.rice.krad.service.BusinessObjectService;
12
13 import java.util.HashMap;
14 import java.util.List;
15 import java.util.Map;
16
17
18
19
20
21
22
23
24 public class OLENCIPConstants {
25
26 private static final Logger LOG = Logger.getLogger(OLENCIPConstants.class);
27 public static final String CIRCULATION_SERVICE = "oleCirculationService";
28 public static final String CIRCULATION_HELPER_SERVICE = "oleCirculationHelperService";
29 public static final String CHECKIN_ITEM_CONVERTER= "oleCheckInItemConverter";
30 public static final String CHECKOUT_ITEM_CONVERTER = "oleCheckOutItemConverter";
31
32
33 public static final String LOOKUPUSER ="service,partonId,operatorId";
34 public static final String GETCHECKOUTITEMS ="service,partonId,operatorId";
35 public static final String PLACEREQUEST ="service,partonId,operatorId,itemBarcode,requestType";
36 public static final String CANCELREQUEST ="service,operatorId,requestId";
37 public static final String RENEWITEM ="service,partonId,operatorId,itemBarcode";
38 public static final String ACCEPTITEM ="service,partonId,operatorId,itemBarcode,callNumber,title,author,itemType,itemLocation,dateExpires,requestType";
39 public static final String CHECKINITEM ="service,partonId,operatorId,itemBarcode,deleteIndicator";
40 public static final String CHECKOUTITEM ="service,partonId,operatorId,itemBarcode";
41 public static final String FINE ="service,partonId,operatorId";
42 public static final String HOLDS ="service,partonId,operatorId";
43
44
45 public static final String PLACEREQUEST_SERVICE ="placeRequest";
46 public static final String CANCELREQUEST_SERVICE ="cancelRequest";
47 public static final String RENEWITEM_SERVICE ="renewItem";
48 public static final String ACCEPTITEM_SERVICE ="acceptItem";
49 public static final String CHECKINITEM_SERVICE ="checkInItem";
50 public static final String CHECKOUTITEM_SERVICE ="checkOutItem";
51 public static final String GETCHECKEDOUTITEM_SERVICE ="getCheckedOutItems";
52 public static final String FINE_SERVICE ="fine";
53 public static final String HOLDS_SERVICE ="holds";
54 public static final String LOOKUPUSER_SERVICE ="lookupUser";
55
56
57 public static final String OLE_CIRCULATION_SERVICE ="service";
58 public static final String PATRON_ID ="patronId";
59 public static final String OPERATOR_ID ="operatorId";
60 public static final String REQUEST_ID ="requestId";
61 public static final String ITEM_BARCODE ="itemBarcode";
62 public static final String CALLNUMBER ="callNumber";
63 public static final String TITLE ="title";
64 public static final String AUTHOR ="author";
65 public static final String ITEM_TYPE ="itemType";
66 public static final String ITEM_LOCATION ="itemLocation";
67 public static final String DATE_EXPIRES ="dateExpires";
68 public static final String FORMAT ="format";
69 public static final String DELETE_INDICATOR ="deleteIndicator";
70 public static final String PICKUP_LOCATION ="pickupLocation";
71 public static final String REQUEST_TYPE ="requestType";
72 public static final String NCIPAPI_PARAMETER_NAME = "NCIPAPI_VALUES";
73
74
75 public static final String INVALID_PARAMETERS ="Contains Invalid Parameters";
76 public static final String PARAMETER_MISSING ="Parameter is Missing";
77 public static final String INVALID_FORMAT ="Unknown output format. It should be either XML or JSON";
78 public static final String UNKNOWN_SERVICE ="Unknown Service Name";
79 public static final String XML_FORMAT ="xml";
80 public static final String JSON_FORMAT ="json";
81 public static final String NULL_SERVICE ="<message>Service is NULL</message>";
82 public static final String INVALID_DATA ="<response>Invalid Data</response>";
83 public static final String MESSAGE ="message";
84 public static final String INVALID_INPUT ="Invalid Input";
85 public static final String XML_CONTENT_TYPE ="text/xml";
86 public static final String XML_CHAR_ENCODING ="UTF-8";
87
88 public static final String TELEPHONE_CODE = "TEL";
89
90 }