001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali;
017:
018: import org.kuali.core.JstlConstants;
019: import org.kuali.core.util.KualiDecimal;
020:
021: /**
022: * This class is used to define global constants.
023: */
024: public class RiceConstants extends JstlConstants {
025: private static final long serialVersionUID = 2882277719647128949L;
026:
027: // special user used in the post-processor
028: public static final String SYSTEM_USER = "KULUSER";
029:
030: public static final String PARAM_MAINTENANCE_VIEW_MODE = "maintenanceViewMode";
031: public static final String PARAM_MAINTENANCE_VIEW_MODE_MAINTENANCE = "maintenance";
032: public static final String PARAM_MAINTENANCE_VIEW_MODE_LOOKUP = "lookup";
033: public static final String PARAM_MAINTENANCE_VIEW_MODE_INQUIRY = "inquiry";
034:
035: public static final String KNS_NAMESPACE = "KR-NS";
036:
037: public static class DetailTypes {
038: public static final String NA_PARM_DETAIL_TYPE = "N/A";
039: public static final String ALL_DETAIL_TYPE = "All";
040: public static final String LOOKUP_PARM_DETAIL_TYPE = "Lookup";
041: public static final String UNIVERSAL_USER_DETAIL_TYPE = "UniversalUser";
042: public static final String KUALI_MODULE_USER_DETAIL_TYPE = "KualiModuleUser";
043: public static final String DOCUMENT_DETAIL_TYPE = "Document";
044: public static final String DOCUMENT_TYPE_DETAIL_TYPE = "DocumentType";
045: }
046:
047: public static final String MAX_UPLOAD_SIZE_PARM_NM = "MAX_FILE_SIZE_DEFAULT_UPLOAD";
048:
049: public static final String SEND_NOTE_WORKFLOW_NOTIFICATION_ACTIONS_PARM_NM = "SEND_NOTE_WORKFLOW_NOTIFICATION_ACTIONS";
050: public static final String ATTACHMENT_MAX_FILE_SIZE_PARM_NM = "MAX_FILE_SIZE_ATTACHMENT";
051:
052: public static final String CONFIGURATION_FILE_NAME = "configuration";
053: public static final String ENVIRONMENT_KEY = "environment";
054: public static final String VERSION_KEY = "version";
055: public static final String LOG4J_SETTINGS_FILE_KEY = "log4j.settings.file";
056: public static final String LOGS_DIRECTORY_KEY = "logs.directory";
057: public static final String LOG4J_RELOAD_MINUTES_KEY = "log4j.reload.minutes";
058: public static final String STARTUP_STATS_MAILING_LIST_KEY = "startup.stats.mailing.list";
059: public static final String APPLICATION_URL_KEY = "application.url";
060: public static final String ATTACHMENTS_DIRECTORY_KEY = "attachments.directory";
061: public static final String ATTACHMENTS_PENDING_DIRECTORY_KEY = "attachments.pending.directory";
062: public static final String HTDOCS_LOGS_URL_KEY = "htdocs.logs.url";
063: public static final String HTDOCS_STAGING_URL_KEY = "htdocs.staging.url";
064: public static final String EXTERNALIZABLE_HELP_URL_KEY = "externalizable.help.url";
065: public static final String APPLICATION_EXTERNALIZABLE_IMAGES_URL_KEY = "externalizable.images.url";
066: public static final String EXTERNALIZABLE_IMAGES_URL_KEY = "kr.externalizable.images.url";
067: public static final String REPORTS_DIRECTORY_KEY = "reports.directory";
068: public static final String WORKFLOW_URL_KEY = "workflow.url";
069: public static final String PROD_ENVIRONMENT_CODE_KEY = "production.environment.code";
070: public static final String MAINTAIN_USERS_LOCALLY_KEY = "maintain.users.locally";
071: public static final String DOCHANDLER_DO_URL = "/DocHandler.do?docId=";
072: public static final String DOCHANDLER_URL_CHUNK = "&command=displayDocSearchView";
073:
074: public static final String DATABASE_REPOSITORY_FILES_LIST_NAME = "databaseRepositoryFilePaths";
075: public static final String SCRIPT_CONFIGURATION_FILES_LIST_NAME = "scriptConfigurationFilePaths";
076: public static final String JOB_NAMES_LIST_NAME = "jobNames";
077: public static final String TRIGGER_NAMES_LIST_NAME = "triggerNames";
078:
079: public static final String ACTION_FORM_UTIL_MAP_METHOD_PARM_DELIMITER = "~";
080: public static final String ADD_LINE_METHOD = "addLine";
081: public static final String ADD_PREFIX = "add";
082: public static final String ACTIVE_INDICATOR = "Y";
083: public static final String AMOUNT_PROPERTY_NAME = "amount";
084: public static final String APPROVE_METHOD = "approve";
085: public static final String NON_ACTIVE_INDICATOR = "N";
086: public static final String BLANK_SPACE = " ";
087: public static final String BACK_LOCATION = "backLocation";
088: public static final String BACKDOOR_PARAMETER = "backdoorId";
089: public static final String BLANKET_APPROVE_METHOD = "blanketApprove";
090: public static final String BUSINESS_OBJECT_CLASS_ATTRIBUTE = "businessObjectClassName";
091: public static final String CALLING_METHOD = "caller";
092: public static final String CONFIRMATION_QUESTION = "confirmationQuestion";
093: public static final String CONFIGURATION_SERVICE_DATA_FILE_NAME = "configurationServiceData.xml";
094: public static final String CONSOLIDATED_SUBACCOUNT = "*ALL*";
095: public static final String CONVERSION_FIELDS_PARAMETER = "conversionFields";
096: public static final String LOOKUP_READ_ONLY_FIELDS = "readOnlyFields";
097: public static final String LOOKUP_AUTO_SEARCH = "autoSearch";
098: public static final String COST_SHARE = "CS";
099: public static final String CREDIT_AMOUNT_PROPERTY_NAME = "newSourceLineCredit";
100: public static final String DEBIT_AMOUNT_PROPERTY_NAME = "newSourceLineDebit";
101: public static final String DEFAULT_RETURN_LOCATION = "lookup.do";
102: public static final String DELETE_LINE_METHOD = "deleteLine";
103: public static final String TOGGLE_INACTIVE_METHOD = "toggleInactiveRecordDisplay";
104: public static final String DICTIONARY_BO_NAME = "dictionaryBusinessObjectName";
105: public static final String DISPATCH_REQUEST_PARAMETER = "methodToCall";
106: public static final String DOC_FORM_KEY = "docFormKey";
107: public static final String DOCUMENT_CANCEL_QUESTION = "DocCancel";
108: public static final String DOCUMENT_DELETE_QUESTION = "DocDelete";
109: public static final String DOCUMENT_DISAPPROVE_QUESTION = "DocDisapprove";
110: public static final String DOCUMENT_HEADER_ID = "documentHeaderId";
111: public static final String DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME = "financialDocumentStatusCode";
112: public static final String NOTE_TEXT_PROPERTY_NAME = "noteText";
113: public static final String DOCUMENT_HEADER_PROPERTY_NAME = "documentHeader";
114: public static final String DOCUMENT_SAVE_BEFORE_CLOSE_QUESTION = "DocSaveBeforeClose";
115: public static final String EMPLOYEE_ACTIVE_STATUS = "A";
116: public static final String EXISTING_SOURCE_ACCT_LINE_PROPERTY_NAME = "sourceAccountingLine";
117: public static final String EXISTING_TARGET_ACCT_LINE_PROPERTY_NAME = "targetAccountingLine";
118: public static final String EXTRA_BUTTON_SOURCE = "extraButtonSource";
119: public static final String EXTRA_BUTTON_PARAMS = "extraButtonParams";
120: public static final String NEW_DOCUMENT_NOTE_PROPERTY_NAME = "newDocumentNote";
121: public static final String NEW_AD_HOC_ROUTE_PERSON_PROPERTY_NAME = "newAdHocRoutePerson";
122: public static final String NEW_AD_HOC_ROUTE_WORKGROUP_PROPERTY_NAME = "newAdHocRouteWorkgroup";
123: public static final String EXISTING_AD_HOC_ROUTE_PERSON_PROPERTY_NAME = "adHocRoutePerson";
124: public static final String EXISTING_AD_HOC_ROUTE_WORKGROUP_PROPERTY_NAME = "adHocRouteWorkgroup";
125: public static final String DOCUMENT_PROPERTY_NAME = "document";
126: public static final String DOCUMENT_TYPE_NAME = "docTypeName";
127: public static final String EDIT_PREFIX = "edit";
128: public static final String EMPTY_STRING = "";
129: public static final String FIELD_CONVERSION_PAIR_SEPERATOR = ":";
130: public static final String FIELD_CONVERSIONS_SEPERATOR = ",";
131: public static final String REFERENCES_TO_REFRESH_SEPARATOR = ",";
132: public static final String GENERIC_FIELD_NAME = "Field";
133: public static final String GENERIC_CODE_PROPERTY_NAME = "code";
134: public static final String STAND_IN_BUSINESS_OBJECT_FOR_ATTRIBUTES = "AttributeReferenceDummy";
135: public static final String OVERRIDE_KEYS = "overrideKeys";
136:
137: /**
138: * This value is the name of the param for the default max column length of a lookup result field if
139: * the field maxLength has not been defined in the DD
140: */
141: public static final String RESULTS_DEFAULT_MAX_COLUMN_LENGTH = "RESULTS_DEFAULT_MAX_COLUMN_LENGTH";
142:
143: /**
144: * The number of levels BusinessObjectDictionaryServiceImpl will recurse. If this number is high, it may lead to serious
145: * performance problems
146: */
147: public static final int BUSINESS_OBJECT_DICTIONARY_SERVICE_PERFORM_FORCE_UPPERCASE_RECURSION_MAX_DEPTH = 3;
148:
149: /**
150: * When checkboxes are rendered on the form, a hidden field will also be rendered corresponding to each checkbox
151: * with the checkbox's name suffixed with the value of this constant. No real fields should have names that contain this suffix,
152: * since this may lead to undesired results.
153: */
154: public static final String CHECKBOX_PRESENT_ON_FORM_ANNOTATION = "{CheckboxPresentOnFormAnnotation}";
155:
156: public static final int DOCUMENT_ANNOTATION_MAX_LENGTH = 2000;
157:
158: public static final String HIDE_LOOKUP_RETURN_LINK = "hideReturnLink";
159: public static final String SUPPRESS_ACTIONS = "suppressActions";
160: public static final String REFERENCES_TO_REFRESH = "referencesToRefresh";
161: public static final String INITIAL_KUALI_DOCUMENT_STATUS_CD = "?";
162:
163: public static final String INQUIRABLE_ATTRIBUTE_NAME = "kualiInquirable";
164: public static final String INQUIRY_ACTION = "inquiry.do";
165: public static final String INQUIRY_IMPL_ATTRIBUTE_NAME = "inquirableImplServiceName";
166: public static final String INQUIRY_PK_VALUE_PASSED_FROM_PREVIOUS_REQUEST_PREFIX = "previousPkValue_";
167: public static final String INACTIVE_RECORD_DISPLAY_PARAM_PREFIX = "inactiveRecordDisplay_";
168:
169: public static final String KUALI_WORKFLOW_APPLICATION_CODE = "kuali";
170: public static final String LOOKUP_ACTION = "lookup.do";
171: public static final String MULTIPLE_VALUE_LOOKUP_ACTION = "multipleValueLookup.do";
172: public static final String LOOKUP_RESULTS_SEQUENCE_NUMBER = "lookupResultsSequenceNumber";
173: public static final String LOOKUP_RESULTS_BO_CLASS_NAME = "lookupResultsBOClassName";
174: public static final String LOOKED_UP_COLLECTION_NAME = "lookedUpCollectionName";
175: public static final String MULTIPLE_VALUE_LOOKUP_PREVIOUSLY_SELECTED_OBJ_IDS_PARAM = "previouslySelectedObjectIds";
176: public static final String MULTIPLE_VALUE_LOOKUP_OBJ_IDS_SEPARATOR = "||";
177: public static final String MULTIPLE_VALUE_LOOKUP_DISPLAYED_OBJ_ID_PARAM_PREFIX = "displayedObjId-";
178: public static final String MULTIPLE_VALUE_LOOKUP_SELECTED_OBJ_ID_PARAM_PREFIX = "selectedObjId-";
179: public static final String LOOKUP_ANCHOR = "lookupAnchor";
180: public static final String LOOKUPABLE_IMPL_ATTRIBUTE_NAME = "lookupableImplServiceName";
181: public static final String LOOKUP_RESULTS_SEQUENCE = "LOOKUP_RESULT_SEQUENCE_NBR_SEQ";
182: public static final String KUALI_LOOKUPABLE_IMPL = "kualiLookupable";
183: public static final String DOC_HANDLER_ACTION = "DocHandler.do";
184: public static final String DOC_HANDLER_METHOD = "docHandler";
185: public static final String PARAMETER_DOC_ID = "docId";
186: public static final String PARAMETER_COMMAND = "command";
187: public static final String LOOKUP_METHOD = "performLookup";
188: public static final String METHOD_DISPLAY_DOC_SEARCH_VIEW = "displayDocSearchView";
189: public static final String MAINTENANCE_ACTION = "maintenance.do";
190: public static final String MAINTENANCE_ADD_PREFIX = "add.";
191: public static final String MAINTENANCE_COPY_ACTION = "Copy";
192: public static final String MAINTENANCE_EDIT_ACTION = "Edit";
193: public static final String MAINTENANCE_NEW_ACTION = "New";
194: public static final String MAINTENANCE_COPY_METHOD_TO_CALL = "copy";
195: public static final String MAINTENANCE_EDIT_METHOD_TO_CALL = "edit";
196: public static final String MAINTENANCE_NEW_METHOD_TO_CALL = "start";
197: public static final String MAINTENANCE_NEWWITHEXISTING_ACTION = "newWithExisting";
198: public static final String MAINTENANCE_NEW_MAINTAINABLE = "document.newMaintainableObject.";
199: public static final String MAINTENANCE_OLD_MAINTAINABLE = "document.oldMaintainableObject.";
200: public static final String ENCRYPTED_LIST_PREFIX = "encryptedValues";
201: public static final String MAPPING_BASIC = "basic";
202: public static final String MAPPING_CANCEL = "cancel";
203: public static final String MAPPING_CLOSE = "close";
204: public static final String MAPPING_DISAPPROVE = "disapprove";
205: public static final String MAPPING_DELETE = "delete";
206: public static final String MAPPING_ERROR = "error";
207: public static final String MAPPING_PORTAL = "portal";
208: public static final String MAPPING_MULTIPLE_VALUE_LOOKUP = "multipleValueLookup";
209: public static final String MAPPING_ROUTE_REPORT = "route_report";
210: public static final String MAXLENGTH_SUFFIX = ".maxLength";
211: public static final String METHOD_TO_CALL_ATTRIBUTE = "methodToCallAttribute";
212: public static final String METHOD_TO_CALL_PATH = "methodToCallPath";
213: public static final String METHOD_TO_CALL_BOPARM_LEFT_DEL = "(!!";
214: public static final String METHOD_TO_CALL_BOPARM_RIGHT_DEL = "!!)";
215: public static final String METHOD_TO_CALL_PARM1_LEFT_DEL = "(((";
216: public static final String METHOD_TO_CALL_PARM1_RIGHT_DEL = ")))";
217: public static final String METHOD_TO_CALL_PARM2_LEFT_DEL = "((#";
218: public static final String METHOD_TO_CALL_PARM2_RIGHT_DEL = "#))";
219: public static final String METHOD_TO_CALL_PARM3_LEFT_DEL = "((<";
220: public static final String METHOD_TO_CALL_PARM3_RIGHT_DEL = ">))";
221: public static final String METHOD_TO_CALL_PARM4_LEFT_DEL = "(([";
222: public static final String METHOD_TO_CALL_PARM4_RIGHT_DEL = "]))";
223: public static final String METHOD_TO_CALL_PARM5_LEFT_DEL = "((*";
224: public static final String METHOD_TO_CALL_PARM5_RIGHT_DEL = "*))";
225: public static final String METHOD_TO_CALL_PARM6_LEFT_DEL = "((%";
226: public static final String METHOD_TO_CALL_PARM6_RIGHT_DEL = "%))";
227: public static final String METHOD_TO_CALL_PARM7_LEFT_DEL = "((^";
228: public static final String METHOD_TO_CALL_PARM7_RIGHT_DEL = "^))";
229: public static final String METHOD_TO_CALL_PARM8_LEFT_DEL = "((&";
230: public static final String METHOD_TO_CALL_PARM8_RIGHT_DEL = "&))";
231: public static final String METHOD_TO_CALL_PARM9_LEFT_DEL = "((~";
232: public static final String METHOD_TO_CALL_PARM9_RIGHT_DEL = "~))";
233: public static final String METHOD_TO_CALL_PARM10_LEFT_DEL = "((/";
234: public static final String METHOD_TO_CALL_PARM10_RIGHT_DEL = "/))";
235: public static final String METHOD_TO_CALL_PARM11_LEFT_DEL = "(:;";
236: public static final String METHOD_TO_CALL_PARM11_RIGHT_DEL = ";:)";
237: public static final String METHOD_TO_CALL_PARM12_LEFT_DEL = "(::;";
238: public static final String METHOD_TO_CALL_PARM12_RIGHT_DEL = ";::)";
239: public static final String METHOD_TO_CALL_PARM13_LEFT_DEL = "(:::;";
240: public static final String METHOD_TO_CALL_PARM13_RIGHT_DEL = ";:::)";
241: // if more strings needed, then add more colons to the PARM11 strings above, e.g. (::; (:::;, etc.
242:
243: public static final String ANCHOR = "anchor";
244: public static final String ANCHOR_TOP_OF_FORM = "topOfForm";
245: public static final String QUESTION_ANCHOR = "questionAnchor";
246: public static final String NOT_AVAILABLE_STRING = "N/A";
247: public static final int NEGATIVE_ONE = -1;
248: public static final String CONTEXT_PATH = "contextPath";
249: public static final String QUESTION_ACTION = "questionPrompt.do";
250: public static final String QUESTION_CLICKED_BUTTON = "buttonClicked";
251: public static final String QUESTION_ERROR_KEY = "questionErrorKey";
252: public static final String QUESTION_ERROR_PROPERTY_NAME = "questionErrorPropertyName";
253: public static final String QUESTION_ERROR_PARAMETER = "questionErrorParameter";
254: public static final String QUESTION_IMPL_ATTRIBUTE_NAME = "questionType";
255: public static final String QUESTION_INST_ATTRIBUTE_NAME = "questionIndex";
256: public static final String QUESTION_PAGE_TITLE = "Question Dialog Page";
257: public static final String QUESTION_REFRESH = "QuestionRefresh";
258: public static final String QUESTION_CONTEXT = "context";
259: public static final String QUESTION_TEXT_ATTRIBUTE_NAME = "questionText";
260: public static final String QUESTION_REASON_ATTRIBUTE_NAME = "reason";
261: public static final String QUESTION_SHOW_REASON_FIELD = "showReasonField";
262: public static final String RELOAD_METHOD_TO_CALL = "reload";
263: public static final String REFRESH_CALLER = "refreshCaller";
264: public static final String REFRESH_MAPPING_PREFIX = "/Refresh";
265: public static final String REQUIRED_FIELD_SYMBOL = "*";
266: public static final String RETURN_LOCATION_PARAMETER = "returnLocation";
267: public static final String RETURN_METHOD_TO_CALL = "refresh";
268: public static final String ROUTE_METHOD = "route";
269: public static final String SAVE_METHOD = "save";
270: public static final String START_METHOD = "start";
271: public static final String SEARCH_METHOD = "search";
272: public static final String COPY_METHOD = "copy";
273: public static final String ERRORCORRECT_METHOD = "correct";
274: public static final String SOURCE = "Source";
275: public static final String SQUARE_BRACKET_LEFT = "[";
276: public static final String SQUARE_BRACKET_RIGHT = "]";
277: public static final String TARGET = "Target";
278: public static final String TO = "To";
279: public static final String USER_SESSION_KEY = "UserSession";
280: public static final String VERSION_NUMBER = "versionNumber";
281: public static final KualiDecimal ZERO = new KualiDecimal("0.00");
282:
283: public static final String SEARCH_LIST_KEY_PREFIX = "searchResults";
284: public static final String SEARCH_LIST_REQUEST_KEY = "searchResultKey";
285:
286: public static final String CORRECTION_FORM_KEY = "correctionFormKey";
287: public static final int CORRECTION_RECENT_GROUPS_DAY = 10;
288:
289: public static final String SEARCH_DATA_KEY_PREFIX = "dataSearchResults";
290: public static final String SEARCH_DATA_REQUEST_KEY = "searchResultDataKey";
291:
292: public static final String GLOBAL_ERRORS = "GLOBAL_ERRORS";
293: public static final String GLOBAL_MESSAGES = "GlobalMessages";
294: public static final String AD_HOC_ROUTE_PERSON_ERRORS = "newAdHocRoutePerson*,adHocRoutePerson*";
295: public static final String AD_HOC_ROUTE_WORKGROUP_ERRORS = "newAdHocRouteWorkgroup*,adHocRouteWorkgroup*";
296: public static final String DOCUMENT_DOCUMENT_ERRORS = "document.document*";
297: public static final String DOCUMENT_EXPLANATION_ERRORS = "document.explanation*";
298: public static final String DOCUMENT_REVERSAL_ERRORS = "document.reversal*";
299: public static final String DOCUMENT_SELECTED_ERRORS = "document.selected*";
300: public static final String DOCUMENT_HEADER_ERRORS = "document.header*";
301: public static final String DOCUMENT_ERRORS_LESS_DOCUMENT = DOCUMENT_EXPLANATION_ERRORS
302: + ","
303: + DOCUMENT_REVERSAL_ERRORS
304: + ","
305: + DOCUMENT_SELECTED_ERRORS + "," + DOCUMENT_HEADER_ERRORS;
306: public static final String DOCUMENT_ERRORS = DOCUMENT_DOCUMENT_ERRORS
307: + ","
308: + DOCUMENT_EXPLANATION_ERRORS
309: + ","
310: + DOCUMENT_REVERSAL_ERRORS
311: + ","
312: + DOCUMENT_SELECTED_ERRORS
313: + "," + DOCUMENT_HEADER_ERRORS;
314: public static final String DOCUMENT_NOTES_ERRORS = "newDocumentNote*";
315:
316: public enum NoteTypeEnum {
317: BUSINESS_OBJECT_NOTE_TYPE("BO", "documentBusinessObject"), DOCUMENT_HEADER_NOTE_TYPE(
318: "DH", "documentHeader");
319: private String noteTypeCode;
320: private String noteTypePath;
321:
322: private NoteTypeEnum(String noteTypeCode, String noteTypePath) {
323: this .noteTypeCode = noteTypeCode;
324: this .noteTypePath = noteTypePath;
325: }
326:
327: public String getCode() {
328: return this .noteTypeCode;
329: }
330:
331: public String getPath() {
332: return this .noteTypePath;
333: }
334:
335: public String getFullPath() {
336: return RiceConstants.DOCUMENT_PROPERTY_NAME + "."
337: + getPath();
338: }
339: }
340:
341: public static final String AND_LOGICAL_OPERATOR = "&&";
342: public static final String OR_LOGICAL_OPERATOR = "|";
343: public static final String NOT_LOGICAL_OPERATOR = "!";
344: // add AND operator to thest if it is uncommented below
345: public static final String[] LOGICAL_OPERATORS = {
346: OR_LOGICAL_OPERATOR, NOT_LOGICAL_OPERATOR };
347: public static final String[] QUERY_CHARACTERS = { "*", "?", "%",
348: ">", "<", "..", OR_LOGICAL_OPERATOR, NOT_LOGICAL_OPERATOR,
349: "=" };
350: public static final String AUDIT_ERRORS = "AuditErrors";
351:
352: // Header Tab navigation constant values
353: public static final String NAVIGATE_TO = "navigateTo.";
354: public static final String HEADER_DISPATCH = "headerDispatch.";
355:
356: public static final String APC_ALLOWED_OPERATOR = "A";
357: public static final String APC_DENIED_OPERATOR = "D";
358: // country
359: public static final String COUNTRY_CODE_UNITED_STATES = "US";
360:
361: public static final String MULTIPLE_VALUE = "multipleValues";
362: public static final String MULTIPLE_VALUE_LABEL = "Lookup initial values";
363: public static final String MULTIPLE_VALUE_NAME = "Multiple Value Name";
364:
365: // Agency type codes
366: public static final String AGENCY_TYPE_CODE_FEDERAL = "F";
367:
368: // special chars that I don't know how to put into string literals in JSP expression language
369: public static final String NEWLINE = "\n";
370:
371: // Workflow constants
372: public static final String WORKFLOW_FYI_REQUEST = "F";
373: public static final String WORKFLOW_APPROVE_REQUEST = "A";
374:
375: // Permission codes
376: public static final String PERMISSION_READ_CODE = "R";
377: public static final String PERMISSION_READ_DESCRIPTION = "READ";
378: public static final String PERMISSION_MOD_CODE = "M";
379: public static final String PERMISSION_MOD_DESCRIPTION = "MOD";
380: public static final String PERMISSION_MODIFY = "modify";
381: public static final String PERMISSION_VIEW = "view";
382:
383: public static class DocumentStatusCodes {
384: public static final String INITIATED = "?";
385: public static final String CANCELLED = "X";
386: public static final String ENROUTE = "R";
387: public static final String DISAPPROVED = "D";
388: public static final String APPROVED = "A";
389:
390: public static class CashReceipt {
391: // once a CashReceipt gets approved, its financialDocumentStatus goes to "verified"
392: public static final String VERIFIED = "V";
393:
394: // when a CashReceipt associated with a Deposit, its financialDocumentStatus changes to "interim" or "final"
395: public static final String INTERIM = "I";
396: public static final String FINAL = "F";
397:
398: // when the CMDoc is finalized, the CRs of its Deposits change to status "approved"
399: }
400: }
401:
402: public static final String ALLOWED_EMPLOYEE_STATUS_RULE = "ACTIVE_EMPLOYEE_STATUSES";
403:
404: public static class CoreApcParms {
405:
406: public static final String UNIVERSAL_USER_EDIT_WORKGROUP = "UNIVERSAL_USER_EDIT_GROUP";
407: public static final String WORKFLOW_EXCEPTION_WORKGROUP = "EXCEPTION_GROUP";
408: public static final String SUPERVISOR_WORKGROUP = "SUPERVISOR_GROUP";
409: }
410:
411: public static class SystemGroupParameterNames {
412: public static final String CHECK_ENCRYPTION_SERVICE_OVERRIDE_IND = "CHECK_ENCRYPTION_SERVICE_OVERRIDE_IND";
413:
414: public static final String LOOKUP_RESULTS_LIMIT = "RESULTS_LIMIT";
415: public static final String MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE = "MULTIPLE_VALUE_RESULTS_PER_PAGE";
416: public static final String MULTIPLE_VALUE_LOOKUP_RESULTS_EXPIRATION_AGE = "MULTIPLE_VALUE_RESULTS_EXPIRATION_SECONDS";
417:
418: public static final String DEFAULT_CAN_PERFORM_ROUTE_REPORT_IND = "DEFAULT_CAN_PERFORM_ROUTE_REPORT_IND";
419:
420: /**
421: * Used to indicate whether field level help is enabled. Depending on the namespace this parameter is in, it may
422: * affect either lookups (i.e. the search criteria fields) or maintenance documents.
423: */
424: public static final String ENABLE_FIELD_LEVEL_HELP_IND = "ENABLE_FIELD_LEVEL_HELP_IND";
425:
426: /**
427: * Used by PurgePendingAttachmentsJob to compute the maximum amount of time a pending attachment is allowed to
428: * persist on the file system before being deleted.
429: */
430: public static final String PURGE_PENDING_ATTACHMENTS_STEP_MAX_AGE = "purgePendingAttachmentsStepMaxAge";
431:
432: }
433:
434: public static class GeneralLedgerApplicationParameterKeys {
435: public static final String INCOME_OBJECT_TYPE_CODES = "INCOME_OBJECT_TYPE_CODES";
436: public static final String INCOME_TRANSFER_OBJECT_TYPE_CODES = "INCOME_TRANSFER_OBJECT_TYPE_CODES";
437: public static final String EXPENSE_OBJECT_TYPE_CODES = "EXPENSE_OBJECT_TYPE_CODES";
438: public static final String EXPENSE_TRANSFER_OBJECT_TYPE_CODES = "EXPENSE_TRANSFER_OBJECT_TYPE_CODES";
439: }
440:
441: public static class GeneralLedgerCorrectionProcessApplicationParameterKeys {
442: public static final String RECORD_COUNT_FUNCTIONALITY_LIMIT = "RECORD_COUNT_FUNCTIONALITY_LIMIT";
443: public static final String RECORDS_PER_PAGE = "RECORDS_PER_PAGE";
444: }
445:
446: public static class ParameterValues {
447: public static final String YES = "Y";
448: public static final String NO = "N";
449: }
450:
451: public static class Maintenance {
452: public static final String AFTER_CLASS_DELIM = "!!";
453: public static final String AFTER_FIELDNAME_DELIM = "^^";
454: public static final String AFTER_VALUE_DELIM = "::";
455: }
456:
457: public static final String REQUEST_SEARCH_RESULTS = "reqSearchResults";
458: public static final String REQUEST_SEARCH_RESULTS_SIZE = "reqSearchResultsSize";
459:
460: public static final int DEFAULT_NUM_OF_COLUMNS = 1;
461:
462: public static final String EMPLOYEE_LOOKUP_ERRORS = "document.employeeLookups";
463:
464: public static class OperationType {
465: public static final String READ = "read";
466: public static final String REPORT_ERROR = "with error";
467: public static final String INSERT = "insert";
468: public static final String UPDATE = "update";
469: public static final String DELETE = "delete";
470: public static final String SELECT = "select";
471: }
472:
473: public static class TableRenderConstants {
474: public static final String SWITCH_TO_PAGE_METHOD = "switchToPage";
475: public static final String SORT_METHOD = "sort";
476: public static final String SELECT_ALL_METHOD = "selectAll";
477: public static final String UNSELECT_ALL_METHOD = "unselectAll";
478:
479: public static final String PREVIOUSLY_SORTED_COLUMN_INDEX_PARAM = "previouslySortedColumnIndex";
480: public static final String VIEWED_PAGE_NUMBER = "viewedPageNumber";
481: }
482: }
|