View Javadoc
1   /**
2    * Copyright 2005-2016 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.core.api.util;
17  
18  /**
19   * Holds error key constants.
20   */
21  public final class RiceKeyConstants {
22      public static final String ERROR_EXISTENCE = "error.existence";
23      public static final String ERROR_EXPIRED = "error.expired";
24      public static final String ERROR_INACTIVE = "error.inactive";
25      public static final String ERROR_CLOSED = "error.closed";
26      public static final String ERROR_DUPLICATE_ELEMENT = "error.duplicate.element";
27      public static final String ERROR_INVALIDNEGATIVEAMOUNT = "error.invalidNegativeAmount";
28      public static final String ERROR_REQUIRED = "error.required";
29      public static final String ERROR_REQUIRED_FOR_US = "error.requiredForUs";
30      public static final String ERROR_DATE = "error.invalidDate";
31      public static final String ERROR_TIME = "error.invalidTime";
32      public static final String ERROR_DATE_TIME = "error.invalidDateTime";
33      public static final String ERROR_NUMBER = "error.invalidNumber";
34      public static final String ERROR_BOOLEAN = "error.invalidBoolean";
35      public final static String ERROR_CURRENCY = "error.currency";
36      public final static String ERROR_CURRENCY_DECIMAL = "error.currency.decimal";
37      public final static String ERROR_BIG_DECIMAL = "error.bigDecimal";
38      public final static String ERROR_INTEGER = "error.integer";
39      public final static String ERROR_LONG = "error.long";
40      public final static String ERROR_PHONE_NUMBER = "error.phonenumber";
41      public final static String ERROR_PERCENTAGE = "error.percentage";
42      public final static String ERROR_NUMERIC = "error.numeric";
43      public static final String ERROR_MIN_LENGTH = "error.minLength";
44      public static final String ERROR_MAX_LENGTH = "error.maxLength";
45      public static final String ERROR_LENGTH_OUT_OF_RANGE = "error.lengthOutOfRange";
46      public static final String ERROR_MIN_OCCURS = "error.minOccurs";
47      public static final String ERROR_MAX_OCCURS = "error.maxOccurs";
48      public static final String ERROR_QUANTITY_RANGE = "error.quantityRange";
49      public static final String ERROR_OCCURS = "error.occurs";
50      public static final String ERROR_REQUIRES_FIELD = "error.requiresField";
51      public static final String ERROR_INVALID_FORMAT = "error.invalidFormat";
52      public static final String ERROR_EXCLUSIVE_MIN = "error.exclusiveMin";
53      public static final String ERROR_INCLUSIVE_MIN = "error.inclusiveMin";
54      public static final String ERROR_INCLUSIVE_MAX = "error.inclusiveMax";
55      public static final String ERROR_OUT_OF_RANGE = "error.outOfRange";
56      public static final String ERROR_NOT_SYNTAX = "error.notSyntax";
57      public static final String ERROR_BETWEEN_SYNTAX = "error.betweenSyntax";
58  
59      public static final String ERROR_INACTIVATION_BLOCKED = "error.inactivation.blocked";
60  
61      // KULRICE-7419: Adhoc route completion validation rule
62      public static final String ERROR_ADHOC_COMPLETE_PERSON_IS_INITIATOR = "error.adhoc.complete.person.is.initiator";
63  
64      // KULRICE-8760: Multiple complete adhoc requests should not be allowed on the same document
65      public static final String ERROR_ADHOC_COMPLETE_MORE_THAN_ONE = "error.adhoc.complete.more.than.one.request";
66  
67      // KULRICE-7864: blanket approve should not be allowed when adhoc route for completion request is newly added 
68      public static final String ERROR_ADHOC_COMPLETE_BLANKET_APPROVE_NOT_ALLOWED =
69              "error.adhoc.complete.blanket.approve.not.allowed";
70  
71      public static final String ERROR_INVALID_ADHOC_PERSON_ID = "error.adhoc.invalid.person";
72      public static final String ERROR_MISSING_ADHOC_PERSON_ID = "error.adhoc.missing.person";
73      public static final String ERROR_UNAUTHORIZED_ADHOC_PERSON_ID = "error.adhoc.unauthorized.person";
74      public static final String ERROR_INACTIVE_ADHOC_PERSON_ID = "error.adhoc.inactive.person";
75      public static final String ERROR_INVALID_ADHOC_WORKGROUP_ID = "error.adhoc.invalid.workgroup";
76      public static final String ERROR_MISSING_ADHOC_WORKGROUP_ID = "error.adhoc.missing.workgroup";
77      public static final String ERROR_INVALID_ADHOC_WORKGROUP_NAMESPACECODE =
78              "error.adhoc.invalid.workgroupNamespaceCode";
79      public static final String ERROR_UNAUTHORIZED_ADHOC_WORKGROUP_ID = "error.adhoc.unauthorized.workgroup";
80      public static final String MESSAGE_ADHOC_ANNOTATION = "message.adhoc.annotation";
81  
82      //  KULRICE-8091: Adhoc routing tab utilizing Groups on all documents missing asterisks 
83      public static final String ERROR_ADHOC_INVALID_WORKGROUP_NAMESPACE_MISSING =
84              "error.adhoc.invalid.workgroup.namespace.missing";
85      public static final String ERROR_ADHOC_INVALID_WORKGROUP_NAMESPACE = "error.adhoc.invalid.workgroup.namespace";
86  
87      public static final String ERROR_SECURE_FIELD = "error.secureField";
88      public static final String ERROR_SEND_NOTE_NOTIFICATION_RECIPIENT = "error.send.note.notification.recipient";
89      public static final String ERROR_SEND_NOTE_NOTIFICATION_DOCSTATUS = "error.send.note.notification.docStatus";
90      public static final String MESSAGE_SEND_NOTE_NOTIFICATION_SUCCESSFUL = "message.send.note.notification.successful";
91      public static final String MESSAGE_NOTE_NOTIFICATION_ANNOTATION = "message.note.notification.annotation";
92  
93      public static final String UNAUTHORIZED_INQUIRY = "unauthorized.inquiry";
94      public static final String UNAUTHORIZED_LOOKUP = "unauthorized.lookup";
95      public static final String UNAUTHORIZED_DOCUMENT = "unauthorized.document";
96      public static final String UNAUTHORIZED_CUSTOM = "unauthorized.custom";
97  
98      public static final String MULTIPLE_VALUE_LOOKUP_ICON_LABEL = "multiple.value.lookup.icon.label";
99  
100     public static final String AUTHORIZATION_ERROR_GENERAL = "error.authorization.general";
101     public static final String AUTHORIZATION_ERROR_INACTIVE_DOCTYPE = "error.authorization.inactiveDocumentType";
102     public static final String AUTHORIZATION_ERROR_DOCTYPE = "error.authorization.documentType";
103     public static final String AUTHORIZATION_ERROR_DOCUMENT = "error.authorization.document";
104     public static final String AUTHORIZATION_ERROR_MAINTENANCE_NEWCOPY = "error.authorization.maintenance.newCopy";
105     public static final String AUTHORIZATION_ERROR_MODULE = "error.authorization.module";
106     public static final String AUTHORIZATION_ERROR_DOCUMENT_WORKGROUP = "error.authorization.workgroupInitiation";
107 
108     // Document-specific errors
109     public static final String ERROR_DOCUMENT_ANNOTATION_MAX_LENGTH_EXCEEDED =
110             "error.document.annotation.maxLength.exceeded";
111     public static final String ERROR_DOCUMENT_DISAPPROVE_REASON_REQUIRED = "error.document.disapprove.reasonRequired";
112     public static final String ERROR_DOCUMENT_RECALL_REASON_REQUIRED = "error.document.recall.reasonRequired";
113     public static final String ERROR_DOCUMENT_NO_DESCRIPTION = "error.document.noDescription";
114     public static final String ERROR_UPLOADFILE_NULL = "error.uploadFile.null";
115     public static final String ERROR_UPLOADFILE_EMPTY = "error.uploadFile.empty";
116     public static final String ERROR_UPLOADFILE_SIZE = "error.uploadFile.size";
117     public static final String ERROR_UNIMPLEMENTED = "error.unimplemented";
118     public static final String ERROR_OPTIMISTIC_LOCK = "error.document.optimisticLockException";
119 
120     public static final String QUESTION_CONTINUATION_ACCOUNT_SELECTION =
121             "document.question.selectContinuationAccount.text";
122     public static final String QUESTION_SAVE_BEFORE_CLOSE = "document.question.saveBeforeClose.text";
123 
124     // General Maintenance Document Error Messages
125     public static final String ERROR_DOCUMENT_MAINTENANCE_PRIMARY_KEYS_CHANGED_ON_EDIT =
126             "error.document.maintenance.general.primaryKeysChangedOnEdit";
127     public static final String ERROR_DOCUMENT_MAINTENANCE_KEYS_ALREADY_EXIST_ON_CREATE_NEW =
128             "error.document.maintenance.general.objectAlreadyExistsByPrimaryKeysOnCreateNew";
129     public static final String ERROR_DOCUMENT_AUTHORIZATION_RESTRICTED_FIELD_CHANGED =
130             "error.document.maintenance.authorization.restrictedFieldChanged";
131     public static final String ERROR_DOCUMENT_MAINTENANCE_PARTIALLY_FILLED_OUT_REF_FKEYS =
132             "error.document.maintenance.partiallyFilledOutReferenceForeignKeys";
133     public static final String ERROR_DOCUMENT_MAINTENANCE_FORMATTING_ERROR =
134             "error.document.maintenance.formattingError";
135     public static final String ERROR_DOCUMENT_INVALID_VALUE_ALLOWED_VALUES_PARAMETER =
136             "error.document.invalid.value.allowedValuesParameter";
137     public static final String ERROR_DOCUMENT_INVALID_VALUE_DENIED_VALUES_PARAMETER =
138             "error.document.invalid.value.deniedValuesParameter";
139 
140     // Person errors
141     public static final String ERROR_DOCUMENT_KUALIUSERMAINT_UNIQUE_EMPLID =
142             "error.document.PersonMaintenance.UniqueEmplId";
143 
144     public static final String ERROR_CUSTOM = "error.custom";
145     public static final String ERROR_INQUIRY = "error.inquiry";
146     public static final String ERROR_MAINTENANCE_LOCKED = "error.maintenance.locked";
147     public static final String ERROR_MAINTENANCE_LOCKED1 = "error.maintenance.locked.1";
148     public static final String ERROR_MAINTENANCE_LOCKED2 = "error.maintenance.locked.2";
149     public static final String ERROR_MAINTENANCE_LOCKED3 = "error.maintenance.locked.3";
150     public static final String ERROR_TRANSACTIONAL_LOCKED = "error.transactional.locked";
151     public static final String ERROR_ZERO_AMOUNT = "error.zeroAmount";
152     public static final String ERROR_ZERO_OR_NEGATIVE_AMOUNT = "error.zeroOrNegativeAmount";
153     public static final String ERROR_NEGATIVE_AMOUNT = "error.negativeAmount";
154     public static final String ERROR_NOT_AMONG = "error.invalidNotAmong";
155 
156     public static final String WARNING_MAINTENANCE_LOCKED = "warning.maintenance.locked";
157     public static final String ERROR_VERSION_MISMATCH = "error.version.mismatch";
158     public static final String UNABLE_TO_GET_DATA_FROM_XML = "unable.to.get.data.from.xml";
159 
160     public static final String MESSAGE_CANCELLED = "message.cancelled";
161     public static final String MESSAGE_RELOADED = "message.document.reloaded";
162     public static final String MESSAGE_ROUTE_SUCCESSFUL = "message.route.successful";
163     public static final String MESSAGE_SAVED = "message.saved";
164     public static final String MESSAGE_ROUTE_APPROVED = "message.route.approved";
165     public static final String MESSAGE_ROUTE_DISAPPROVED = "message.route.disapproved";
166     public static final String MESSAGE_ROUTE_CANCELED = "message.route.canceled";
167     public static final String MESSAGE_ROUTE_RECALLED = "message.route.recalled";
168     public static final String MESSAGE_ROUTE_ACKNOWLEDGED = "message.route.acknowledged";
169     public static final String MESSAGE_ROUTE_FYIED = "message.route.fyied";
170     public static final String MESSAGE_NO_HELP_TEXT = "message.nohelp";
171     public static final String MESSAGE_REVERT_SUCCESSFUL = "message.revert.successful";
172     public static final String MESSAGE_REVERT_UNNECESSARY = "message.revert.unnecessary";
173     public static final String MESSAGE_DISAPPROVAL_NOTE_TEXT_INTRO = "message.disapprove.noteTextIntro";
174     public static final String MESSAGE_RECALL_NOTE_TEXT_INTRO = "message.recall.noteTextIntro";
175     public static final String MESSAGE_RECALL_NOT_SUPPORTED= "message.recall.not.supported";
176 
177     public static final String MESSAGE_SUPER_USER_ACTION_REQUEST_ACKNOWLEDGED = "general.routing.superuser.actionRequestAcknowledged";
178     public static final String MESSAGE_SUPER_USER_ACTION_REQUEST_FYIED = "general.routing.superuser.actionRequestFYI";
179     public static final String MESSAGE_SUPER_USER_ACTION_REQUEST_COMPLETED = "general.routing.superuser.actionRequestCompleted";
180     public static final String MESSAGE_SUPER_USER_ACTION_REQUEST_APPROVED = "general.routing.superuser.actionRequestApproved";
181     public static final String MESSAGE_SUPER_USER_APPROVED = "general.routing.superuser.approved";
182     public static final String MESSAGE_SUPER_USER_DISAPPROVED = "general.routing.superuser.disapproved";
183 
184     public static final String INFO_LOOKUP_RESULTS_DISPLAY_ALL = "lookup.results.found.display.all";
185     public static final String INFO_LOOKUP_RESULTS_DISPLAY_ONE = "lookup.results.found.display.one";
186     public static final String INFO_LOOKUP_RESULTS_NONE_FOUND = "lookup.results.none.found";
187     public static final String INFO_LOOKUP_RESULTS_USING_PRIMARY_KEY = "lookup.using.primary.keys";
188     public static final String INFO_LOOKUP_RESULTS_EXCEEDS_LIMIT = "lookup.results.exceeds.limit";
189     public static final String INFO_LOOKUP_RESULTS_MV_RETURN_EXCEEDS_LIMIT = "lookup.results.exceeds.mv.return.limit";
190 
191     public static final String MESSAGE_DELETE = "message.delete";
192     public static final String MESSAGE_DELETED = "mesage.deleted";
193     public static final String MESSAGE_COLLECTION_LINE_DELETED = "message.collection.line.deleted";
194     public static final String MESSAGE_DELETE_ACTION_NOT_SUPPORTED = "delete.action.not.supported";
195 
196     public static final String QUESTION_DISAPPROVE_DOCUMENT = "document.question.disapprove.text";
197     public static final String QUESTION_RECALL_DOCUMENT = "document.question.recall.text";
198     public static final String QUESTION_SENSITIVE_DATA_DOCUMENT = "document.question.sensitiveData.text";
199 
200     public static final String ERROR_MISSING = "error.missing";
201 
202     // Application Parameter Component errors
203     public static final String ERROR_APPLICATION_PARAMETERS_ALLOWED_RESTRICTION =
204             "error.applicationParametersAllowedRestriction";
205     public static final String ERROR_APPLICATION_PARAMETERS_DENIED_RESTRICTION =
206             "error.applicationParametersDeniedRestriction";
207     public static final String ERROR_PAYMENT_REASON_ALLOWED_RESTRICTION = "error.paymentReasonAllowedRestriction";
208     public static final String ERROR_PAYMENT_REASON_DENIED_RESTRICTION = "error.paymentReasonDeniedRestriction";
209 
210     public static final Object WARNING_LINE_IMPORT_LENGTH_MISMATCH = "warning.core.bo.AccountImportLengthMismatch";
211 
212     // kim role document
213     public static final String QUESTION_ACTIVE_DELEGATES_FOR_INACTIVE_MEMBERS =
214             "question.document.maintenance.role.activeDelegatesForInactiveRoleMembers";
215 
216     // kim person document
217     public static final String ERROR_MULTIPLE_DEFAULT_SELETION = "error.multiple.default.selection";
218     public static final String ERROR_NO_DEFAULT_SELETION = "error.no.default.selection";
219     public static final String ERROR_MULTIPLE_PRIMARY_EMPLOYMENT = "error.multiple.primary.employment";
220     public static final String ERROR_NO_PRIMARY_EMPLOYMENT = "error.no.primary.employment";
221     public static final String ERROR_DUPLICATE_ENTRY = "error.duplicate.entry";
222     public static final String ERROR_EMPTY_ENTRY = "error.empty.entry";
223     public static final String ERROR_EXIST_PRINCIPAL_NAME = "error.exist.principalName";
224     public static final String ERROR_ASSIGN_ROLE = "error.assign.role";
225     public static final String ERROR_ASSIGN_GROUP = "error.assign.group";
226     public static final String ERROR_ASSIGN_GROUP_INVALID = "error.assign.group.invalid";
227     public static final String ERROR_ASSIGN_PERMISSION = "error.assign.perimssion";
228     public static final String ERROR_ASSIGN_RESPONSIBILITY = "error.assign.responsibility";
229     public static final String ERROR_POPULATE_GROUP = "error.populate.group";
230     public static final String ERROR_ACTIVE_TO_DATE_BEFORE_FROM_DATE = "error.active.todate.before.fromdate";
231     public static final String ERROR_NOT_EMPLOYMENT_AFFILIATION_TYPE = "error.not.employment.affilationType";
232     public static final String ERROR_NOT_UNIQUE_AFFILIATION_TYPE_PER_CAMPUS =
233             "error.not.unique.affilationType.per.campus";
234     public static final String ERROR_ROLE_QUALIFIER_REQUIRED = "error.role.qualifier.required";
235     public static final String MESSAGE_SEND_AD_HOC_REQUESTS_SUCCESSFUL = "message.sendAdHocRequests.successful";
236     public static final String ERROR_ONE_ITEM_REQUIRED = "error.one.item.required";
237     public static final String ERROR_ONE_ACTIVE_ITEM_REQUIRED = "error.one.active.item.required";
238     public static final String ERROR_MEMBERID_MEMBERTYPE_MISMATCH = "error.memberid.membertype.mismatch";
239     public static final String ERROR_PRIORITY_NUMBER_RANGE = "error.prioritynumber.range";
240     public static final String ERROR_CANT_ADD_DERIVED_ROLE = "error.cant.add.derived.role";
241     public static final String ERROR_INVALID_ROLE = "error.invalid.role";
242     public static final String ERROR_REQUIRED_CONDITIONALLY = "error.required.conditionally";
243     public static final String ERROR_CANT_BE_MODIFIED = "error.unmodifiable.attribute";
244     public static final String ERROR_DELEGATE_ROLE_MEMBER_ASSOCIATION = "error.delegation.notassociatedwith.rolemember";
245     public static final String ERROR_DELEGATION_TO_AMOUNT_GREATER = "error.delegation.toamount.greater";
246     public static final String ERROR_DELEGATION_FROM_AMOUNT_LESSER = "error.delegation.fromamount.lesser";
247     public static final String ERROR_ASSIGN_ROLE_MEMBER_CIRCULAR = "error.assign.role.member.circular";
248     public static final String ERROR_ASSIGN_GROUP_MEMBER_CIRCULAR = "error.assign.group.member.circular";
249 
250     //parameter document
251     public static final String AUTHORIZATION_ERROR_PARAMETER = "error.authorization.parameter";
252 
253     public static final String ERROR_DOCUMENT_FIELD_CONTAINS_POSSIBLE_SENSITIVE_DATA =
254             "error.document.fieldContainsPossibleSensitiveData";
255 
256     public static final String ERROR_WILDCARDS_AND_OPERATORS_NOT_ALLOWED_ON_FIELD =
257             "error.wildcards.and.operators.not.allowed.on.field";
258     public static final String INFO_WILDCARDS_AND_OPERATORS_TREATED_LITERALLY =
259             "info.wildcards.and.operators.treated.literally";
260     public static final String ERROR_DOCUMENT_IDENTITY_MANAGEMENT_PERSON_QUALIFIER_VALUE_NOT_UNIQUE =
261             "error.document.identityManagementPerson.qualifier.valueNotUnique";
262     public static final String ERROR_NEGATIVES_NOT_ALLOWED_ON_FIELD =
263             "error.negatives.not.allowed.on.field";
264 
265     // PeopleFlow
266     public static final String PEOPLEFLOW_DUPLICATE = "peopleFlow.duplicate";
267 
268     // Super User
269     public static final String ERROR_SUPER_USER_TAKE_ACTIONS_MISSING = "superuser.takeactions.annotation.missing";
270     public static final String ERROR_SUPER_USER_TAKE_ACTIONS_NONE_SELECTED = "superuser.takeactions.none.selected";
271     public static final String ERROR_SUPER_USER_APPROVE_MISSING = "superuser.approve.annotation.missing";
272     public static final String ERROR_SUPER_USER_APPROVE_ACTIONS_CHECKED = "superuser.approve.when.actions.checked";
273     public static final String ERROR_SUPER_USER_DISAPPROVE_MISSING = "superuser.disapprove.annotation.missing";
274     public static final String ERROR_SUPER_USER_DISAPPROVE_ACTIONS_CHECKED = "superuser.disapprove.when.actions.checked";
275 
276     private RiceKeyConstants() {
277         throw new UnsupportedOperationException("do not call");
278     }
279 }
280