001package org.kuali.asr; 002 003/** 004 * Created with IntelliJ IDEA. 005 * User: sheiksalahudeenm 006 * Date: 1/16/14 007 * Time: 11:42 AM 008 * To change this template use File | Settings | File Templates. 009 */ 010public class ASRConstants { 011 012 /* ASR ERROR MESSAGES*/ 013 public static final String ITEM_NOT_FOUND="error.no.item"; 014 public static final String HAVING_HOLD="We could not place the hold. You already have a hold on this item"; 015 public static final String CHECKED_IN="We could not place the hold. You already have this item checked out"; 016 public static final String NO_CIRCULATION="We could not place the hold. This item may not be available for circulation. Please contact your library for assistance"; 017 public static final String EXCEED_NO_OF_HOLD="We could not place the hold. You have exceeded the limit for the number of holds per user."; 018 public static final String CARD_BLOCKED="We could not place the hold. Your library card may be blocked. Please contact your library for assistance"; 019 public static final String HOLD_PLACED="Your hold has been placed"; 020 public static final String PATRON_NOT_FOUND="error.no.patron"; 021 public static final String OPERATOR_NOT_FOUND="error.no.operator"; 022 public static final String ITEM_STATUS_NOT_UPDATED="error.no.item.status.update"; 023 public static final String REQUEST_NOT_FOUND="error.no.request.found"; 024 public static final String REQUEST_CANCELED="request.cancelled"; 025 public static final String REQUEST_NOT_FOUND_FOR_HOLD_ID="error.request.id.not.found"; 026 public static final String REQUEST_STATUS_UPDATION_FAILED="Request Status updation is failed for request id:"; 027 public static final String REQUEST_STATUS_UPDATED="Request Status successfully updated for request id:"; 028 public static final String ASR_LIBRARY_NOT_FOUND="ASR Library is not found"; 029 public static final String ITEM_DELETED="item.deleted.message"; 030 public static final String NOT_ASR_ITEM="error.no.asr.item"; 031 public static final String ITEM_STATUS_UPDATED="item.status.updated"; 032 public static final String ITEM_NOT_IN_TRANSIT="error.item.not.transit"; 033 public static final String LOCATION_MISMATCH="error.invalid.transit.location"; 034 public static final String ACCESS_FORBIDDEN="Access Forbidden"; 035 public static final String INVALID_PKUP_LOCN ="error.invalid.pickup.location"; 036 public static final String SUCESS_REQUEST_MESG = "item.requested.message"; 037 public static final String FAILURE_REQUEST_MESG = "internal.server.error"; 038 public static final String SUCESS_ITEM_MESG = "item.add.message"; 039 public static final String EXCEPTION = "method.failure"; 040 public static final String STATUS_NOT_MATCH = "error.status.mismatch"; 041 042 043 /*ASR ERROR MESSAGES CODE*/ 044 public static final String ITEM_NOT_FOUND_CODE="007"; 045 public static final String HAVING_HOLD_CODE="002"; 046 public static final String CHECKED_IN_CODE="003"; 047 public static final String NO_CIRCULATION_CODE="004"; 048 public static final String EXCEED_NO_OF_HOLD_CODE="005"; 049 public static final String CARD_BLOCKED_CODE="006"; 050 public static final String HOLD_PLACED_CODE="001"; 051 public static final String PATRON_NOT_FOUND_CODE="008"; 052 public static final String OPERATOR_NOT_FOUND_CODE="009"; 053 public static final String ITEM_STATUS_NOT_UPDATED_CODE="010"; 054 public static final String REQUEST_NOT_FOUND_CODE="011"; 055 public static final String REQUEST_CANCELED_CODE="012"; 056 public static final String REQUEST_NOT_FOUND_FOR_HOLD_ID_CODE="013"; 057 public static final String REQUEST_STATUS_UPDATION_FAILED_CODE="014"; 058 public static final String REQUEST_STATUS_UPDATED_CODE="015"; 059 public static final String ASR_LIBRARY_NOT_FOUND_CODE="016"; 060 public static final String ITEM_DELETED_CODE="017"; 061 public static final String NOT_ASR_ITEM_CODE="018"; 062 public static final String ITEM_STATUS_UPDATED_CODE="000"; 063 public static final String ITEM_NOT_IN_TRANSIT_CODE="002"; 064 public static final String LOCATION_MISMATCH_CODE="003"; 065 public static final String ACCESS_FORBIDDEN_CODE=""; 066 public static final String INVALID_PKUP_LOCN_CD ="019"; 067 public static final String SUCESS_REQUEST_CD = "000"; 068 public static final String EXCEPTION_CODE = "020"; 069 public static final String STATUS_NOT_MATCH_CODE = "021"; 070 071 /*ASR ERROR MESSAGES STATUS*/ 072 public static final int ITEM_NOT_FOUND_STATUS=404; 073 public static final int HAVING_HOLD_STATUS=400; 074 public static final int CHECKED_IN_STATUS=400; 075 public static final int NO_CIRCULATION_STATUS=400; 076 public static final int EXCEED_NO_OF_HOLD_STATUS=400; 077 public static final int CARD_BLOCKED_STATUS=400; 078 public static final int HOLD_PLACED_STATUS=200; 079 public static final int PATRON_NOT_FOUND_STATUS=400; 080 public static final int OPERATOR_NOT_FOUND_STATUS=400; 081 public static final int ITEM_STATUS_NOT_UPDATED_STATUS=400; 082 public static final int REQUEST_NOT_FOUND_STATUS=400; 083 public static final int REQUEST_CANCELED_STATUS=200; 084 public static final int REQUEST_NOT_FOUND_FOR_HOLD_ID_STATUS=404; 085 public static final int REQUEST_STATUS_UPDATION_FAILED_STATUS=400; 086 public static final int REQUEST_STATUS_UPDATED_STATUS=400; 087 public static final int ASR_LIBRARY_NOT_FOUND_STATUS=400; 088 public static final int ITEM_DELETED_STATUS=200; 089 public static final int NOT_ASR_ITEM_STATUS=204; 090 public static final int ITEM_STATUS_UPDATED_STATUS=200; 091 public static final int ITEM_NOT_IN_TRANSIT_STATUS=400; 092 public static final int LOCATION_MISMATCH_STATUS=400; 093 public static final int ACCESS_FORBIDDEN_STATUS=403; 094 public static final int INVALID_PKUP_LOCN_STAT =400; 095 public static final int SUCCESS_STATUS=200; 096 public static final int FAILURE_STATUS=500; 097 public static final int EXCEPTION_STATUS=420; 098 public static final int STATUS_NOT_MATCH_STATUS=420; 099 100 /*Constants*/ 101 public static final String ITEM_BARCODE_DISPLAY="ItemBarcode_display"; 102 public static final String LOCATION_LEVEL_DISPLAY="Location_display"; 103 public static final String REQUEST_RAISED="Request raised succesfully"; 104 public static final String HOLD="HOLD"; 105 public static final String INTRANSIT_FOR_HOLD="INTRANSIT-FOR-HOLD"; 106 public static final String ON_HOLD="ONHOLD"; 107 public static final String IN_TRANSIT="INTRANSIT"; 108 public static final String AVAILABLE="AVAILABLE"; 109 public static final String ASR_TYP_RQST="ASR_REQUEST_TYPE"; 110 public static final String ITEM_AVAILABLE="csa"; 111 public static final String ITEM_MISSING="csn"; 112 public static final String ITEM_RETRIVED="csp"; 113 public static final String ASR_ITEM_AVAILABLE="ASR_ITEM_AVAILABLE"; 114 public static final String ASR_ITEM_MISSING="ASR_ITEM_MISSING"; 115 public static final String ASR_ITEM_RETRIVED="ASR_ITEM_RETRIVED"; 116 public static final String ASR_REQUEST_IN_PROCESS="3"; 117 public static final String ASR_REQUEST_FAILURE="5"; 118 public static final String ASR_REQUEST_ITEM_STATUS="ASR_REQUEST_ITEM_STATUS"; 119 public static final String ITEM_STATUS_UPDATED_HOLD="item.status.updated.to.hold"; 120 121 122 123}