1 package org.kuali.ole.deliver.drools;
2
3
4
5
6 public class DroolsConstants {
7
8
9 public static final String PRINT_SLIP_FLAG = "PRINT_SLIP_FLAG";
10 public static final String ROUTE_TO_LOCATION_SELECTOR = "ROUTE_TO_LOCATION_SELECTOR";
11 public static final String AUTO_CHECKOUT = "AUTO_CHECKOUT";
12 public static enum ERROR_CODES
13 {
14 CUSTOM_LOAN_DUE_DATE_REQUIRED(DroolsConstants.CUSTOM_DUE_DATE_REQUIRED_FLAG),
15 GENERAL_MESSAGE(DroolsConstants.GENERAL_MESSAGE_FLAG);
16
17 private String name;
18
19 ERROR_CODES(String name){
20 this.name = name;
21 }
22
23 public String getName() {
24 return name;
25 }
26
27 };
28
29 public enum EDITOR_SECTIONS {
30 GENERAL_CHECK("DroolsEditorBo-GeneralChecks-MaintenanceView-ruleSection"),
31 CHECKOUT("DroolsEditorBo-Checkout-MaintenanceView-ruleSection"),
32 CHECKIN("DroolsEditorBo-Checkin-MaintenanceView-ruleSection"),
33 RENEW("DroolsEditorBo-Renew-MaintenanceView-ruleSection"),
34 NOTICES("DroolsEditorBo-Notices-MaintenanceView-ruleSection");
35
36 private String sectionId;
37
38 EDITOR_SECTIONS(String sectionId) {
39 this.sectionId = sectionId;
40 }
41
42 public String getSectionId() {
43 return sectionId;
44 }
45 };
46
47 public static final String GENERAL_MESSAGE_FLAG = "GENERAL_MESSAGE";
48
49 public static final String CUSTOM_DUE_DATE_REQUIRED_FLAG = "CUSTOM_DUE_DATE_REQUIRED";
50
51 public static final String EMAIL = "email";
52
53 public static final String INTERVAL_TO_GENERATE_NOTICE_FOR_COURTESY = "intervalToGenerateNoticeForCourtesy";
54
55 public static final String NUMBER_OF_OVERDUE_NOTICES_TO_BE_SENT = "numberOfOverdueToBeSent";
56
57 public static final String INTERVAL_TO_GENERATE_NOTICE_FOR_OVERDUE = "intervalToGenerateNotice";
58 public static final String REPLACEMENT_BILL_AMT = "replacementBill";
59 public static final String GENERAL_BLOCK_PERMISSION = "Patron has a general block";
60
61 public static final String MAX_CHARGES_PERMISSION = "Patron has max amount of all charges";
62 public static final String SHORT_TERM_LOANS_NOTICE_CONFIG = "SHORT_TERM_LOANS_TERM_NOTICE";
63 public static final String ILL_NOTICE_CONFIG = "ILL_NOTICE_CONFIG";
64 public static final String REGULAR_LOANS_NOTICE_CONFIG = "REGULAR_LOANS_NOTICE";
65 public static final String DROOL_UPLOAD_SELECT_FILE = "error.drool.file.upload";
66
67 public static final String DROOL_UPLOAD_INVALID_FILE = "error.drool.invalid.file";
68 public static final String DROOL_UPLOAD_SUCCESS = "drool.upload.success";
69
70 public static final class PATRON_ADDRESS_VERIFIED {
71 public static final String RULE_NAME = "isAddressVerifiedRuleName";
72 public static final String ERROR_MSG = "isAddressVerifiedErrorMessage";
73
74 public static final String OVERRIDE_PERMISSION = "isAddressVerifiedOverridePermission";
75 public static final String ACTIVATION_GROUP = "isAddressVerifiedActivation-group";
76 }
77 public static final class PATRON_ACTIVE {
78 public static final String RULE_NAME = "isPatronActiveRuleName";
79 public static final String ERROR_MSG = "isPatronActiveErrorMessage";
80 public static final String OVERRIDE_PERMISSION = "isPatronActiveOverridePermission";
81 public static final String ACTIVATION_GROUP = "isPatronActiveActivation-group";
82 }
83 public static final class PATRON_BLOCKED {
84 public static final String RULE_NAME = "isPatronBlockRuleName";
85 public static final String ERROR_MSG = "isPatronBlockErrorMessage";
86 public static final String OVERRIDE_PERMISSION = "isPatronBlockOverridePermission";
87 public static final String ACTIVATION_GROUP = "isPatronBlockActivation-group";
88 }
89 public static final class PATRON_EXPIRED {
90 public static final String RULE_NAME = "isPatronExpiredRuleName";
91 public static final String ERROR_MSG = "isPatronExpiredErrorMessage";
92
93 public static final String OVERRIDE_PERMISSION = "isPatronExpiredOverridePermission";
94 public static final String ACTIVATION_GROUP = "isPatronExpiredActivation-group";
95 }
96 public static final class PATRON_ALL_CHARGES {
97 public static final String RULE_NAME = "patronAllChargesRuleName";
98 public static final String ERROR_MSG = "patronAllChargesErrorMessage";
99
100 public static final String OVERRIDE_PERMISSION = "patronAllChargesOverridePermission";
101 public static final String ALL_CHARGES = "allCharges";
102 public static final String ACTIVATION_GROUP = "patronAllChargesActivation-group";
103 }
104 public static final class PATRON_REPLACEMENT_AMOUNT {
105 public static final String RULE_NAME = "patronReplacementAmountRuleName";
106 public static final String ERROR_MSG = "patronReplacementAmountErrorMessage";
107
108 public static final String OVERRIDE_PERMISSION = "patronReplacementAmountOverridePermission";
109 public static final String REPLACEMENT_AMOUNT = "replacementAmount";
110 public static final String ACTIVATION_GROUP = "patronReplacementAmountActivation-group";
111 }
112 public static final class PATRON_OVERDUE_DAYS {
113 public static final String RULE_NAME = "patronOverdueRuleName";
114 public static final String ERROR_MSG = "patronOverdueErrorMessage";
115
116 public static final String OVERRIDE_PERMISSION = "patronOverdueOverridePermission";
117 public static final String OVERDUE_DAYS = "overdueDays";
118 public static final String ACTIVATION_GROUP = "patronOverdueActivation-group";
119 }
120 public static final class PATRON_RECALLED_AND_OVERDUE_DAYS {
121 public static final String RULE_NAME = "patronOverdueRuleName";
122 public static final String ERROR_MSG = "patronOverdueErrorMessage";
123
124 public static final String OVERRIDE_PERMISSION = "patronOverdueOverridePermission";
125 public static final String RECALL_AND_OVERDUE_DAYS = "overdueDays";
126 public static final String ACTIVATION_GROUP = "patronOverdueActivation-group";
127 }
128 public static final class GENERAL_CHECK_RULE_TYPE {
129 public static final String IS_ACTIVE = "isActive";
130 public static final String IS_BLOCKED = "isBlocked";
131
132 public static final String ADDRESS_VERIFIED = "addressVerified";
133 public static final String IS_PATRON_EXPIRED = "isPatronExpired";
134 public static final String ALL_CHARGES = "allCharges";
135 public static final String REPLACEMENT_FEE_AMOUNT = "replacementFeeAmount";
136 public static final String OVERDUE_CHECK = "overdueCheck";
137 public static final String RECALL_AND_OVERDUE_DAYS = "recallAndOverDueDays";
138 public static final String OVERDUE_FINE_AMOUNT = "overdueFineAmount";
139 public static final String ACTIVATION_DATE = "activationDate";
140 }
141 public static final class CHECKOUT_RULE_TYPE {
142 public static final String CHECKOUT = "checkout";
143 }
144
145 public static final class EDITOR_TYPE {
146 public static final String GENERAL_CHECK = "general-checks";
147 public static final String CHECKOUT= "checkout";
148
149 public static final String RENEW = "renew";
150 public static final String CHECKIN = "checkin";
151 public static final String NOTICE = "notices";
152 }
153 public static final String REQUEST_EXITS = "deliver-request";
154 public static final String GENERAL_INFO = "GENERAL_INFO";
155 public static final String ITEM_DAMAGED = "damaged-item";
156
157 public static final String ITEM_CLAIMS_RETURNED = "claims-returned-item";
158 public static final String ITEM_MISSING_PIECE = "missing-piece-item";
159 public static final String CHECKED_OUT_BY_SAME_PATRON = "CHECKED_OUT_BY_SAME_PATRON";
160 public static final String CHECKIN_REQUEST_EXITS_FOR_THIS_ITEM = "REQUEST_EXITS_FOR_THIS_ITEM";
161 public static final String REQUEST_EXITS_FOR_AVAIL_ITEM = "REQUEST_EXITS_FOR_AVAIL_ITEM";
162 public static final String REQUEST_EXITS_FOR_LOANED_ITEM = "REQUEST_EXITS_FOR_LOANED_ITEM";
163 public static final String LOANED_BY_DIFFERENT_PATRON = "loaned_to_different_patron";
164 public static final String DUE_DATE_TRUNCATED= "DUE_DATE_TRUNCATED";
165
166
167 public static final String ITS_ADP_LOANS_NOTICE_CONFIG = "its_adp_loans_notice_config";
168 public static final String ITS_LAP_NOTICE_CONFIG = "its_lap_notice_config";
169 public static final String ITS_CNF_NOTICE_CONFIG = "its_cnf_notice_config";
170 public static final String ITS_IPD_NOTICE_CONFIG = "its_ipd_notice_config";
171 }