001package org.kuali.ole.ncip.bo; 002 003import org.apache.log4j.Logger; 004 005/** 006 * Created with IntelliJ IDEA. 007 * User: maheswarang 008 * Date: 8/7/13 009 * Time: 3:03 PM 010 * To change this template use File | Settings | File Templates. 011 */ 012public class OLENCIPConstants { 013 014 private static final Logger LOG = Logger.getLogger(OLENCIPConstants.class); 015 public static final String CIRCULATION_SERVICE = "oleCirculationService"; 016 public static final String CIRCULATION_HELPER_SERVICE = "oleCirculationHelperService"; 017 public static final String CHECKIN_ITEM_CONVERTER= "oleCheckInItemConverter"; 018 public static final String CHECKOUT_ITEM_CONVERTER = "oleCheckOutItemConverter"; 019 public static final String LOOKUP_USER_CONVERTER = "oleLookupUserConverter"; 020 021 /*Circulation Service Required Parameter Constants*/ 022 public static final String LOOKUPUSER ="service,patronBarcode,operatorId"; 023 public static final String GETCHECKOUTITEMS ="service,patronBarcode,operatorId"; 024 public static final String PLACEREQUEST ="service,patronBarcode,operatorId,itemBarcode,requestType"; 025 public static final String CANCELREQUEST ="service,operatorId,requestId"; 026 public static final String RENEWITEM ="service,patronBarcode,operatorId,itemBarcode"; 027 public static final String ACCEPTITEM ="service,patronBarcode,operatorId,itemBarcode,callNumber,title,author,itemType,itemLocation,dateExpires,requestType"; 028 public static final String CHECKINITEM ="service,patronBarcode,operatorId,itemBarcode,deleteIndicator"; 029 public static final String CHECKOUTITEM ="service,patronBarcode,operatorId,itemBarcode"; 030 public static final String FINE ="service,patronBarcode,operatorId"; 031 public static final String HOLDS ="service,patronBarcode,operatorId"; 032 033 /*Circulation Service name Constants*/ 034 public static final String PLACEREQUEST_SERVICE ="placeRequest"; 035 public static final String CANCELREQUEST_SERVICE ="cancelRequest"; 036 public static final String RENEWITEM_SERVICE ="renewItem"; 037 public static final String RENEWITEMLIST_SERVICE ="renewItemList"; 038 public static final String ACCEPTITEM_SERVICE ="acceptItem"; 039 public static final String CHECKINITEM_SERVICE ="checkInItem"; 040 public static final String CHECKOUTITEM_SERVICE ="checkOutItem"; 041 public static final String GETCHECKEDOUTITEM_SERVICE ="getCheckedOutItems"; 042 public static final String FINE_SERVICE ="fine"; 043 public static final String HOLDS_SERVICE ="holds"; 044 public static final String LOOKUPUSER_SERVICE ="lookupUser"; 045 046 /*Circulation Service parameter name's constants*/ 047 public static final String OLE_CIRCULATION_SERVICE ="service"; 048 public static final String PATRON_ID ="patronId"; 049 public static final String PATRON_BARCODE="patronBarcode"; 050 public static final String OPERATOR_ID ="operatorId"; 051 public static final String REQUEST_ID ="requestId"; 052 public static final String ITEM_BARCODE ="itemBarcode"; 053 public static final String CALLNUMBER ="callNumber"; 054 public static final String TITLE ="title"; 055 public static final String AUTHOR ="author"; 056 public static final String ITEM_TYPE ="itemType"; 057 public static final String ITEM_LOCATION ="itemLocation"; 058 public static final String DATE_EXPIRES ="dateExpires"; 059 public static final String FORMAT ="format"; 060 public static final String DELETE_INDICATOR ="deleteIndicator"; 061 public static final String PICKUP_LOCATION ="pickupLocation"; 062 public static final String REQUEST_TYPE ="requestType"; 063 public static final String NCIPAPI_PARAMETER_NAME = "NCIPAPI_VALUES"; 064 public static final String TEMP_ITEM_DELETE_INDICATOR="TEMP_ITEM_DELETE_INDICATOR"; 065 066 /*Ciculation Service message Constants*/ 067 public static final String INVALID_PARAMETERS ="Contains Invalid Parameters"; 068 public static final String PARAMETER_MISSING ="Parameter is Missing"; 069 public static final String INVALID_FORMAT ="Unknown output format. It should be either XML or JSON"; 070 public static final String UNKNOWN_SERVICE ="Unknown Service Name"; 071 public static final String XML_FORMAT ="xml"; 072 public static final String JSON_FORMAT ="json"; 073 public static final String NULL_SERVICE ="<message>Service is NULL</message>"; 074 public static final String INVALID_DATA ="<response>Invalid Data</response>"; 075 public static final String MESSAGE ="message"; 076 public static final String INVALID_INPUT ="Invalid Input"; 077 public static final String XML_CONTENT_TYPE ="text/xml"; 078 public static final String XML_CHAR_ENCODING ="UTF-8"; 079 080 public static final String TELEPHONE_CODE = "TEL"; 081 public static final String ADDRESS_TYPE_SCHEME = "http://www.niso.org/ncip/v1_0/imp1/schemes/physicaladdresstype/physicaladdresstype.scm"; 082 public static final String EMAIL = "NCIP_EMAILADDRESS_TYPE"; 083 084 public static final String CHECK_ALL_OVERDUE_FINE_AMT = "Check all Overdue fine amount"; 085 public static final String CHECK_OVERALL_CHARGES = "Check Overall Charges"; 086 public static final String CHECK_REPLACEMENT_FEE_AMT = "Check Replacement fee amt"; 087 088 public static final String USER = "USER"; 089 public static final String OPERATOR = "OPERATOR"; 090 091 public static final String USER_UN_AVAILABLE = "error.user.unavailable"; 092 public static final String OPERATOR_UN_AVAILABLE = "error.operator.unavailable"; 093 094 095 public static final String AGENCY_ID = "AGENCY ID"; 096 public static final String INVALID_AGENCY_ID = "error.invalid.agency.id"; 097 public static final String IDENTIFIER_TYPE = "Identifier Type"; 098 public static final String MEDIUM_TYPE = "Medium Type"; 099 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}