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