1 package org.kuali.ole.ncip.bo;
2
3 import org.apache.log4j.Logger;
4
5
6
7
8
9
10
11
12 public class OLENCIPConstants {
13
14 private static final Logger LOG = Logger.getLogger(OLENCIPConstants.class);
15 public static final String CIRCULATION_SERVICE = "oleCirculationService";
16 public static final String CIRCULATION_HELPER_SERVICE = "oleCirculationHelperService";
17 public static final String CHECKIN_ITEM_CONVERTER= "oleCheckInItemConverter";
18 public static final String CHECKOUT_ITEM_CONVERTER = "oleCheckOutItemConverter";
19 public static final String LOOKUP_USER_CONVERTER = "oleLookupUserConverter";
20
21
22 public static final String LOOKUPUSER ="service,patronBarcode,operatorId";
23 public static final String GETCHECKOUTITEMS ="service,patronBarcode,operatorId";
24 public static final String PLACEREQUEST ="service,patronBarcode,operatorId,itemBarcode,requestType";
25 public static final String CANCELREQUEST ="service,operatorId,requestId";
26 public static final String RENEWITEM ="service,patronBarcode,operatorId,itemBarcode";
27 public static final String ACCEPTITEM ="service,patronBarcode,operatorId,itemBarcode,callNumber,title,author,itemType,itemLocation,dateExpires,requestType";
28 public static final String CHECKINITEM ="service,patronBarcode,operatorId,itemBarcode,deleteIndicator";
29 public static final String CHECKOUTITEM ="service,patronBarcode,operatorId,itemBarcode";
30 public static final String FINE ="service,patronBarcode,operatorId";
31 public static final String HOLDS ="service,patronBarcode,operatorId";
32
33
34 public static final String PLACEREQUEST_SERVICE ="placeRequest";
35 public static final String CANCELREQUEST_SERVICE ="cancelRequest";
36 public static final String RENEWITEM_SERVICE ="renewItem";
37 public static final String RENEWITEMLIST_SERVICE ="renewItemList";
38 public static final String ACCEPTITEM_SERVICE ="acceptItem";
39 public static final String CHECKINITEM_SERVICE ="checkInItem";
40 public static final String CHECKOUTITEM_SERVICE ="checkOutItem";
41 public static final String GETCHECKEDOUTITEM_SERVICE ="getCheckedOutItems";
42 public static final String FINE_SERVICE ="fine";
43 public static final String HOLDS_SERVICE ="holds";
44 public static final String LOOKUPUSER_SERVICE ="lookupUser";
45
46
47 public static final String OLE_CIRCULATION_SERVICE ="service";
48 public static final String PATRON_ID ="patronId";
49 public static final String PATRON_BARCODE="patronBarcode";
50 public static final String OPERATOR_ID ="operatorId";
51 public static final String REQUEST_ID ="requestId";
52 public static final String ITEM_BARCODE ="itemBarcode";
53 public static final String CALLNUMBER ="callNumber";
54 public static final String TITLE ="title";
55 public static final String AUTHOR ="author";
56 public static final String ITEM_TYPE ="itemType";
57 public static final String ITEM_LOCATION ="itemLocation";
58 public static final String DATE_EXPIRES ="dateExpires";
59 public static final String FORMAT ="format";
60 public static final String DELETE_INDICATOR ="deleteIndicator";
61 public static final String PICKUP_LOCATION ="pickupLocation";
62 public static final String REQUEST_TYPE ="requestType";
63 public static final String NCIPAPI_PARAMETER_NAME = "NCIPAPI_VALUES";
64 public static final String TEMP_ITEM_DELETE_INDICATOR="TEMP_ITEM_DELETE_INDICATOR";
65
66
67 public static final String INVALID_PARAMETERS ="Contains Invalid Parameters";
68 public static final String PARAMETER_MISSING ="Parameter is Missing";
69 public static final String INVALID_FORMAT ="Unknown output format. It should be either XML or JSON";
70 public static final String UNKNOWN_SERVICE ="Unknown Service Name";
71 public static final String XML_FORMAT ="xml";
72 public static final String JSON_FORMAT ="json";
73 public static final String NULL_SERVICE ="<message>Service is NULL</message>";
74 public static final String INVALID_DATA ="<response>Invalid Data</response>";
75 public static final String MESSAGE ="message";
76 public static final String INVALID_INPUT ="Invalid Input";
77 public static final String XML_CONTENT_TYPE ="text/xml";
78 public static final String XML_CHAR_ENCODING ="UTF-8";
79
80 public static final String TELEPHONE_CODE = "TEL";
81 public static final String ADDRESS_TYPE_SCHEME = "http://www.niso.org/ncip/v1_0/imp1/schemes/physicaladdresstype/physicaladdresstype.scm";
82 public static final String EMAIL = "NCIP_EMAILADDRESS_TYPE";
83
84 public static final String CHECK_ALL_OVERDUE_FINE_AMT = "Check all Overdue fine amount";
85 public static final String CHECK_OVERALL_CHARGES = "Check Overall Charges";
86 public static final String CHECK_REPLACEMENT_FEE_AMT = "Check Replacement fee amt";
87
88 public static final String USER = "USER";
89 public static final String OPERATOR = "OPERATOR";
90
91 public static final String USER_UN_AVAILABLE = "error.user.unavailable";
92 public static final String OPERATOR_UN_AVAILABLE = "error.operator.unavailable";
93
94
95 public static final String AGENCY_ID = "AGENCY ID";
96 public static final String INVALID_AGENCY_ID = "error.invalid.agency.id";
97 public static final String IDENTIFIER_TYPE = "Identifier Type";
98 public static final String MEDIUM_TYPE = "Medium Type";
99 public static final String REQUEST_TYPES = "Request Type";
100 public static final String PAYMENT_METHOD_TYPE = "Payment Method Type";
101 public static final String FISCAL_ACTION_TYPE = "Fiscal Action Type";
102 public static final String FISCAL_TRANSACTION_TYPE = "Fiscal Transaction Type";
103 public static final String ITEM_BARCODES = "Item Barcode";
104 public static final String CASH = "Cash";
105 public static final String FINES = "Fine";
106 public static final String REQUEST_IDS = "Request Id";
107 public static final String SCHEME = "Scheme";
108 public static final String ITEM = "Item";
109 public static final String REQUEST_FAIL = "error.request.failed";
110 public static final String RENEW_FAIL = "error.renew.fail";
111 public static final String CHECK_IN_FAIL="error.checkin.fail";
112 public static final String CHECK_OUT_FAIL="error.checkout.fail";
113 public static final String ACCEPT_ITEM_FAIL="error.accept.item.fail";
114 public static final String AGENCY_ID_PARAMETER="AGENCY_ID";
115 public static final String USD="USD";
116
117
118
119
120
121
122 }