001/*
002 * Copyright 2007 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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 */
016package org.kuali.ole.sys;
017
018import java.util.ArrayList;
019import java.util.Collections;
020import java.util.HashMap;
021import java.util.List;
022import java.util.Map;
023
024import org.apache.commons.lang.StringUtils;
025import org.kuali.ole.gl.businessobject.OriginEntryFull;
026import org.kuali.ole.module.purap.PurapConstants;
027import org.kuali.ole.sys.context.SpringContext;
028import org.kuali.rice.core.api.util.type.KualiDecimal;
029import org.kuali.rice.core.api.util.type.KualiInteger;
030import org.kuali.rice.kew.api.KewApiConstants;
031import org.kuali.rice.kns.service.DataDictionaryService;
032import org.kuali.rice.krad.util.KRADConstants;
033
034/**
035 * This class is used to define global constants.
036 */
037public class OLEConstants {
038    private static final long serialVersionUID = 2882277719647128949L;
039    private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OLEConstants.class);
040    public static final String APPLICATION_NAMESPACE_CODE = "OLE";
041
042    public static final String KFS_CORE_SERVICE_NAMESPACE = "http://kfs.kuali.org/core/v5_0";
043
044    public static final String KFS_CORE_DISTRIBUTED_CACHE_MANAGER = "kfs.core.DistributedCacheManager";
045    public static Map<String, Boolean>     PO_NOTE_MAP                             = new HashMap<String, Boolean>();
046    public static final String MULTIPLE_ITEM_LOC = "Multiple";
047    public static final int BIG_DECIMAL_SCALE = 2;
048    @Deprecated
049    public static class ParameterNamespaces {
050        public static final String OLE = "OLE-SYS";
051        public static final String CHART = "OLE-COA";
052        public static final String FINANCIAL = "OLE-FP";
053        public static final String GL = "OLE-GL";
054        public static final String PDP = "OLE-PDP";
055        public static final String KNS = KRADConstants.KNS_NAMESPACE;
056    }
057
058    public static class CoreModuleNamespaces {
059        public static final String OLE = "OLE-SYS";
060        public static final String CHART = "OLE-COA";
061        public static final String FINANCIAL = "OLE-FP";
062        public static final String GL = "OLE-GL";
063        public static final String VENDOR = "OLE-VND";
064        public static final String PDP = "OLE-PDP";
065        public static final String KNS = KRADConstants.KNS_NAMESPACE;
066        public static final String ACCESS_SECURITY = "OLE-SEC";
067        public static final String SELECT = "OLE-SELECT";
068    }
069
070    // for ease of reference, a list of the optional modules delivered with and supported by the KFS project
071    public static final class OptionalModuleNamespaces {
072        public static final String PURCHASING_ACCOUNTS_PAYABLE = "OLE-PURAP";
073    }
074
075    public static class DocumentTypeAttributes {
076        public static final String INDICATOR_ATTRIBUTE_TRUE_VALUE = "Y";
077
078        public static final String TRANSACTION_SCRUBBER_OFFSET_INDICATOR_ATTRIBUTE_KEY = "TRANSACTION_SCRUBBER_OFFSET_GENERATION";
079        public static final String ACCOUNTING_DOCUMENT_TYPE_NAME = "OLE_ACCT";
080    }
081
082    // special user used in the post-processor
083    //TODO: eventually this should be removed and the system user should be pulled from a parameter
084    // right now, you HAVE to make sure that a 'ole' user exists in your system, either in the DB
085    // or in an external system such as LDAP if implemented
086    public static final String SYSTEM_USER = "ole-quickstart";
087
088    public static final String BATCH_FAILURE_ATCH_NAME_BIB="Failure Bib File";
089    public static final String BATCH_FAILURE_ATCH_NAME_EDI="Failure Edi File";
090    public static final String BATCH_FAILURE_EXTRA_ATCH_NAME_BIB="Extra Bib Records File";
091    public static final String BATCH_FAILURE_EXTRA_ATCH_NAME_EDI="Extra Edi Records File";
092    public static final String BATCH_FAILURE_BIB_FILE_ETN="_bib_err.xml";
093    public static final String BATCH_FAILURE_EDI_FILE_ETN="_edi_err.xml";
094    public static final String BATCH_FAILURE_FILE_MRK="_err.mrk";
095    public static final String BATCH_REQ_ID_FILE="_reqId.txt";
096    public static final String BATCH_FAILURE_CONTENT_TYPE="text/xml";
097    public static final String ACCOUNT_MAINTENANCE_DOCUMENT_TYPE_DD_KEY = "AccountMaintenanceDocument";
098    public static final String ENVIRONMENT_KEY = "environment";
099    public static final String VERSION_KEY = "version";
100    public static final String LOG4J_SETTINGS_FILE_KEY = "log4j.settings.file";
101    public static final String LOGS_DIRECTORY_KEY = "logs.directory";
102    public static final String LOG4J_RELOAD_MINUTES_KEY = "log4j.reload.minutes";
103    public static final String LOG4J_OVERRIDE_KEY = "ole.fs.log4j.override";
104    public static final String APPLICATION_URL_KEY = "application.url";
105    public static final String ATTACHMENTS_DIRECTORY_KEY = "attachments.directory";
106    public static final String ATTACHMENTS_PENDING_DIRECTORY_KEY = "attachments.pending.directory";
107    public static final String STAGING_DIRECTORY_KEY = "staging.directory";
108    public static final String TEMP_DIRECTORY_KEY = "temp.directory";
109    public static final String EXTERNALIZABLE_HELP_URL_KEY = "externalizable.help.url";
110    public static final String EXTERNALIZABLE_IMAGES_URL_KEY = "externalizable.images.url";
111    public static final String EXTERNALIZABLE_XML_URL_KEY = "externalizable.xml.url";
112    public static final String RICE_EXTERNALIZABLE_IMAGES_URL_KEY = "kr.externalizable.images.url";
113    public static final String REPORTS_DIRECTORY_KEY = "reports.directory";
114    public static final String WORKFLOW_URL_KEY = "workflow.url";
115    public static final String PROD_ENVIRONMENT_CODE_KEY = "production.environment.code";
116    public static final String USE_STANDALONE_WORKFLOW = "rice.use.standalone.workflow";
117    public static final String BATCH_FILE_LOOKUP_ROOT_DIRECTORIES = "batch.file.lookup.root.directories";
118    public static final String BATCH_UPLOAD_HELP_SYS_PARAM_NAME = "BATCH_UPLOAD_HELP_URL";
119    public static final String BATCH_ISBN_DUPLICATE_FOUND="ISBN_DUP_FOUND";
120    public static final String BATCH_VNO_DUPLICATE_FOUND="VEN_NO_DUP_FOUND";
121    public static final String BATCH_LOAD_FAILD_FOUND="LOAD_FAILD_FOUND";
122    public static final String BATCH_TITLE_FAILD_FOUND="TITLE_NOT_FOUND";
123    public static final String BATCH_VNO_NOT_FOUND="VEN_NO_NOT_FOUND";
124    public static final String BAD_BFN_NO_FOUND="BAD_BFN_NUMBER_FOUND";
125    public static final String BAD_CONTROLL_LINE_FOUND="BAD_CONTROL_LINE_FOUND";
126    public static final String APO_RULE_FAILED="APO_RULE_FAILED";
127    public static final String BATCH_FAILURE_ATCH_NAME="Failure Mrk File";
128    public static final String DOWNLOAD_CUSTM_BO_ATTACHMENT_METHOD="downloadCustomBOAttachment";
129    public static final String LICENSE_WEB_SERVICE_URL="license.web.service.url";
130    public static final String   EXCEPTION="EXCEPTION";
131    public static final String   FINAL="FINAL";
132    public static final String   REQ_IDENTIFIER="requisitionIdentifier";
133    public static final String   PUR_DOC_IDENTIFIER="purapDocumentIdentifier";
134    public static final String   LOCATION_WEB_SERVICE_URL                                                       = "location.web.service.url";
135    public static final String   PATRON_WEB_SERVICE_URL                                                         = "patron.web.service.url";
136    public static final String   PATRON_SERVICE_CLASSNAME                                                       = "org.kuali.ole.select.document.service.OlePatronWebService";
137    public static final String   PATRON_SERVICE_NAME                                                            = "olePatronWebService";
138
139    public static final String DATABASE_REPOSITORY_FILES_LIST_NAME = "databaseRepositoryFilePaths";
140    public static final String JOB_NAMES_LIST_NAME = "jobNames";
141    public static final String TRIGGER_NAMES_LIST_NAME = "triggerNames";
142
143    public static final String LOOKUP_RESULTS_LIMIT_URL_KEY = "RESULTS_LIMIT";
144    public static final String DOCHANDLER_DO_URL = "/DocHandler.do?docId=";
145    public static final String DOCHANDLER_URL_CHUNK = "&command=displayDocSearchView";
146
147    public static final String ACCOUNT_NUMBER_PROPERTY_NAME = "accountNumber";
148    public static final String MODULE_ID_PROPERTY_NAME = "moduleId";
149    public static final String MODULE_CODE_PROPERTY_NAME = "moduleCode";
150    public static final String ACCOUNT_STATUS_CLOSED = "Y";
151    public static final String ACCOUNTING_PERIOD_ACTIVE_INDICATOR_FIELD = "active";
152    public static final String ACTION_FORM_UTIL_MAP_METHOD_PARM_DELIMITER = "~";
153    public static final String ADD_LINE_METHOD = "addLine";
154    public static final String ADD_PREFIX = "add";
155    public static final String ACTIVE_INDICATOR = "Y";
156    public static final String AGGREGATE_ENCUMBRANCE_BALANCE_TYPE_CODE = "EN";
157    public static final String AMOUNT_PROPERTY_NAME = "amount";
158    public static final String APPROVE_METHOD = "approve";
159    public static final String NON_ACTIVE_INDICATOR = "N";
160    public static final String BLANK_SPACE = " ";
161    public static final String BACK_LOCATION = "backLocation";
162    public static final String BACKDOOR_PARAMETER = "backdoorId";
163    //${ConfigProperties.application.url}/ole-kr-krad/OLEDistributionOfIncomeAndExpense?viewId=OLEKualiBalanceInquiryReportMenuView&methodToCall=docHandler&command=initiate&documentClass=org.kuali.ole.select.document.OleDistributionOfIncomeExpenseDocument&returnLocation=${ConfigProperties.application.url}/portal.do&hideReturnLink=true'
164    public static final String BALANCE_INQUIRY_REPORT_MENU_ACTION = "ole-kr-krad/OLEKualiBalanceInquiryReportMenu?viewId=OLEKualiBalanceInquiryReportMenuView&methodToCall=start";
165    public static final String ASSET_INQUIRY_MENU_ACTION = "camsAssetPayment.do";
166    public static final String BALANCE_TYPE_PROPERTY_NAME = "balanceTypeCode";
167    public static final String BALANCE_TYPE_CURRENT_BUDGET = "CB";
168    public static final String BALANCE_TYPE_BASE_BUDGET = "BB";
169    public static final String BALANCE_TYPE_MONTHLY_BUDGET = "MB";
170    public static final String BALANCE_TYPE_EXTERNAL_ENCUMBRANCE = "EX";
171    public static final String BALANCE_TYPE_INTERNAL_ENCUMBRANCE = "IE";
172    public static final String BALANCE_TYPE_COST_SHARE_ENCUMBRANCE = "CE";
173    public static final String BALANCE_TYPE_ACTUAL = "AC";
174    public static final String BALANCE_TYPE_AUDIT_TRAIL = "NB";
175    public static final String BALANCE_TYPE_PRE_ENCUMBRANCE = "PE";
176    public static final String BLANKET_APPROVE_METHOD = "blanketApprove";
177    public static final String BUSINESS_OBJECT_CLASS_ATTRIBUTE = "businessObjectClassName";
178    public static final String CALLING_METHOD = "caller";
179    public static final String CASH_MANAGEMENT_DOCUMENT_ACTION = "financialCashManagement.do";
180    public static final String CHANGE_JOURNAL_VOUCHER_BALANCE_TYPE_METHOD = "changeBalanceType";
181    public static final String CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME = "chartOfAccountsCode";
182    public static final String CONFIRMATION_QUESTION = "confirmationQuestion";
183    public static final String CONSOLIDATED_SUBACCOUNT = "*ALL*";
184    public static final String CONVERSION_FIELDS_PARAMETER = "conversionFields";
185    public static final String LOOKUP_READ_ONLY_FIELDS = "readOnlyFields";
186    public static final String LOOKUP_AUTO_SEARCH = "autoSearch";
187    public static final String OBJECT_SUB_TYPES_DIFFERENT_QUESTION = "Object Subtypes different Question";
188
189    public static final String CREDIT_AMOUNT_PROPERTY_NAME = "newSourceLineCredit";
190    public static final String DEBIT_AMOUNT_PROPERTY_NAME = "newSourceLineDebit";
191    public static final String DELETE_LINE_METHOD = "deleteLine";
192    public static final String DICTIONARY_BO_NAME = "dictionaryBusinessObjectName";
193    public static final String DISBURSEMENT_VOUCHER_PDP_EXTRACT_FILE_NAME = "extr_fr_disb_voucher";
194    public static final String DISENCUMBRANCE = "Disencumbrance";
195    public static final String DISPATCH_REQUEST_PARAMETER = "methodToCall";
196    public static final String DOC_FORM_KEY = "docFormKey";
197    public static final String FORM_KEY = "formKey";
198    public static final String BALANCE_INQUIRY_REPORT_MENU_CALLER_DOC_FORM_KEY = "balanceInquiryReportMenuCallerDocFormKey";
199    public static final String ASSET_INQUIRY_CALLER_DOC_FORM_KEY = "assetInquiryCallerDocFormKey";
200    public static final String DOCUMENT_CANCEL_QUESTION = "DocCancel";
201    public static final String DOCUMENT_DELETE_QUESTION = "DocDelete";
202    public static final String DOCUMENT_DISAPPROVE_QUESTION = "DocDisapprove";
203    public static final String DOCUMENT_HEADER_ID = "documentHeaderId";
204    public static final String DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME = "financialDocumentStatusCode";
205    public static final String NOTE_TEXT_PROPERTY_NAME = "noteText";
206    public static final String DOCUMENT_HEADER_PROPERTY_NAME = "documentHeader";
207    public static final String DOCUMENT_SAVE_BEFORE_CLOSE_QUESTION = "DocSaveBeforeClose";
208    public static final String EMPLOYEE_ACTIVE_STATUS = "A";
209    public static final String EXISTING_SOURCE_ACCT_LINE_PROPERTY_NAME = "sourceAccountingLine";
210    public static final String EXISTING_TARGET_ACCT_LINE_PROPERTY_NAME = "targetAccountingLine";
211    public static final String SOURCE_ACCT_LINE_TYPE_CODE = "F"; // F = From, the label for this on most documents
212    public static final String TARGET_ACCT_LINE_TYPE_CODE = "T"; // T = To, the label for this on most documents
213    public static final String EXTRA_BUTTON_SOURCE = "extraButtonSource";
214    public static final String EXTRA_BUTTON_PARAMS = "extraButtonParams";
215    public static final String NEW_DOCUMENT_NOTE_PROPERTY_NAME = "newDocumentNote";
216    public static final String NEW_AD_HOC_ROUTE_PERSON_PROPERTY_NAME = "newAdHocRoutePerson";
217    public static final String NEW_AD_HOC_ROUTE_WORKGROUP_PROPERTY_NAME = "newAdHocRouteWorkgroup";
218    public static final String EXISTING_AD_HOC_ROUTE_PERSON_PROPERTY_NAME = "adHocRoutePerson";
219    public static final String EXISTING_AD_HOC_ROUTE_WORKGROUP_PROPERTY_NAME = "adHocRouteWorkgroup";
220    public static final String NEW_SOURCE_ACCT_LINE_PROPERTY_NAME = "newSourceLine";
221    public static final String NEW_TARGET_ACCT_LINES_PROPERTY_NAME = "newTargetLines";
222    public static final String NEW_TARGET_ACCT_LINE_PROPERTY_NAME = "newTargetLine";
223    public static final String DOCUMENT_PROPERTY_NAME = "document";
224    public static final String DOCUMENT_TYPE_NAME = "docTypeName";
225    public static final String EDIT_PREFIX = "edit";
226    public static final String DASH = "-";
227    public static final String EMPTY_STRING = "";
228    public static final String ENCUMBRANCE = "Encumbrance";
229    public static final String EXPENSE = "Expense";
230    public static final String FIELD_CONVERSION_PAIR_SEPERATOR = ":";
231    public static final String FIELD_CONVERSIONS_SEPERATOR = ",";
232    public static final String REFERENCES_TO_REFRESH_SEPARATOR = ",";
233    public static final String FIELD_CONVERSION_PREFIX_PARAMETER = "fieldConversionPrefix";
234    public static final String FINANCIAL_OBJECT_CODE_PROPERTY_NAME = "financialObjectCode";
235    public static final String FINANCIAL_OBJECT_LEVEL_CODE_PROPERTY_NAME = "financialObjectLevelCode";
236    public static final String FINANCIAL_SUB_OBJECT_CODE_PROPERTY_NAME = "financialSubObjectCode";
237    public static final String FISCAL_CHART_NAME = "fiscalChartOfAccountsCode";
238    public static final String FISCAL_ORG_NAME = "fiscalOrganizationCode";
239    public static final String FROM = "From";
240    public static final String GENERIC_FIELD_NAME = "Field";
241    public static final String GENERIC_CODE_PROPERTY_NAME = "code";
242    public static final String GL_BALANCE_INQUIRY_FLAG = "inquiryFlag";
243    public static final String GL_ACCOUNT_BALANCE_BY_CONSOLIDATION_LOOKUP_ACTION = "glAccountBalanceByConsolidationLookup.do";
244    public static final String AR_CUSTOMER_AGING_REPORT_LOOKUP_ACTION = "arCustomerAgingReportLookup.do";
245    public static final String GL_BALANCE_INQUIRY_ACTION = "glBalanceInquiry.do";
246    public static final String GL_MODIFIED_INQUIRY_ACTION = "glModifiedInquiry.do";
247    public static final String GL_PE_OFFSET_STRING = "TP Generated Offset";
248    public static final String SUB_OBJECT_CODE_PROPERTY_NAME = "subObjectCode";
249    public static final String SUB_ACCOUNT_PROPERTY_NAME = "subAccount";
250    public static final String ACCOUNT_PROPERTY_NAME = "account";
251    public static final String CHART_PROPERTY_NAME = "chart";
252    public static final String PROJECT_PROPERTY_NAME = "project";
253    public static final String REF_ORIGIN_PROPERTY_NAME = "referenceOrigin";
254    public static final String UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME = "universityFiscalYear";
255    public static final String UNIVERSITY_FISCAL_PERIOD_CODE_PROPERTY_NAME = "universityFiscalPeriodCode";
256    public static final String FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME = "financialBalanceTypeCode";
257    public static final String ACCOUNT_SUFFICIENT_FUNDS_CODE_PROPERTY_NAME = "accountSufficientFundsCode";
258    public static final String CURRENT_BUDGET_BALANCE_AMOUNT_PROPERTY_NAME = "currentBudgetBalanceAmount";
259    public static final String ACCOUNT_ENCUMBRANCE_AMOUNT_PROPERTY_NAME = "accountEncumbranceAmount";
260    public static final String TRANSACTION_DEBIT_CREDIT_CODE = "transactionDebitCreditCode";
261    public static final String TRANSACTION_LEDGER_ENTRY_AMOUNT = "transactionLedgerEntryAmount";
262    public static final String ACCOUNT_SUFFICIENT_FUNDS_FINANCIAL_OBJECT_CODE_PROPERTY_NAME = "acctSufficientFundsFinObjCd";
263    public static final String FINANCIAL_OBJECT_TYPE_CODE = "financialObjectTypeCode";
264    public static final String FINANCIAL_DOCUMENT_TYPE_CODE = "financialDocumentTypeCode";
265    public static final String ORGANIZATION_CODE_PROPERTY_NAME = "organizationCode";
266    public static final String ORIGIN_CODE_KUALI = "01";
267    public static final String TRANSFER_FUNDS = "TF";
268    public static final String[] ENCUMBRANCE_BALANCE_TYPE = new String[] { BALANCE_TYPE_EXTERNAL_ENCUMBRANCE, BALANCE_TYPE_INTERNAL_ENCUMBRANCE, BALANCE_TYPE_PRE_ENCUMBRANCE };
269    public static final String STAND_IN_BUSINESS_OBJECT_FOR_ATTRIBUTES = "GenericAttributes";
270    public static final String EMPLOYEE_FUNDING_INQUIRY_ACTION = "employeeFundingInquiry.do";
271    public static final String OVERRIDE_KEYS = "overrideKeys";
272    public static final String PERCENTAGE_SIGN = "%";
273    public static final String RICE_PATH_PREFIX = "kr/";
274    public static final String USE_CONTINUATION_BANK_QUESTION = "UseContinuationBankQuestion";
275    public static final String NEW_WINDOW_URL_TARGET = "_blank";
276    public static final String AND = "and";
277    public static final String COMMA = ",";
278    public static final String PERFORMANCE_BALANCE_INQUIRY_FOR_METHOD = "performBalanceInquiryFor";
279    public static final String INSERT_METHOD = "insert";
280    public static final String SOURCE_ACCOUNTING_LINES_GROUP_NAME = "source";
281    public static final String TARGET_ACCOUNTING_LINES_GROUP_NAME = "target";
282    public static final String SUB_ACCOUNT_EDIT_CG_ICR_SECTION_ID = "Edit CG ICR";
283    public static final String INITIATE_LICENSE_REQUEST = "ILR";
284    public static final String OLE_WEB_SERVICE_PROVIDER = "oleWebServiceProvider";
285    public static final String OLE_NMSPC="OLE-SYS";
286    public static final String OLE_CMPNT="OLE";
287    public static final String APPL_ID="KUALI";
288    public static final String BEGIN_FORMAT_FROM_DATE="beginFormatFromDate";
289    public static final String BEGIN_FORMAT_TO_DATE="beginFormatToDate";
290    public static final String BEGIN_FORMAT="beginFormat";
291
292    public static final String SCRIPT_CONFIGURATION_FILES_LIST_NAME = "scriptConfigurationFilePaths";
293    /**
294     * This value denotes that a max length has not been defined for a given lookup results field
295     */
296    public static final int LOOKUP_RESULT_FIELD_MAX_LENGTH_NOT_DEFINED = -1;
297
298    /**
299     * The number of levels BusinessObjectDictionaryServiceImpl will recurse. If this number is high, it may lead to serious
300     * performance problems
301     */
302    public static final int BUSINESS_OBJECT_DICTIONARY_SERVICE_PERFORM_FORCE_UPPERCASE_RECURSION_MAX_DEPTH = 3;
303
304
305    /**
306     * When checkboxes are rendered on the form, a hidden field will also be rendered corresponding to each checkbox with the
307     * checkbox's name suffixed with the value of this constant. No real fields should have names that contain this suffix, since
308     * this may lead to undesired results.
309     */
310    public static final String CHECKBOX_PRESENT_ON_FORM_ANNOTATION = "{CheckboxPresentOnFormAnnotation}";
311
312    public static class OrgReversion {
313        public static final String VALID_PREFIX = "EXTENDED_DEFINITIONS_INCLUDE_";
314        public static final String INVALID_PREFIX = "EXTENDED_DEFINITIONS_EXCLUDE_";
315        public static final String OBJECT_CONSOL_PARAM_SUFFIX = "OBJECT_CONSOLIDATIONS_BY_ORGANIZATION_REVERSION_CATEGORY";
316        public static final String OBJECT_LEVEL_PARAM_SUFFIX = "OBJECT_LEVELS_BY_ORGANIZATION_REVERSION_CATEGORY";
317        public static final String OBJECT_TYPE_PARAM_SUFFIX = "OBJECT_TYPES_BY_ORGANIZATION_REVERSION_CATEGORY";
318        public static final String OBJECT_SUB_TYPE_PARAM_SUFFIX = "OBJECT_SUB_TYPES_BY_ORGANIZATION_REVERSION_CATEGORY";
319        public static final String IS_EXPENSE_PARAM = "EXTENDED_DEFINITIONS_EXPENSE_CATEGORIES";
320    }
321
322    // CR doc properties
323    public static final String NEW_CHECK_PROPERTY_NAME = "newCheck";
324    public static final String EXISTING_CHECK_PROPERTY_NAME = "check";
325
326    public static final int DOCUMENT_ANNOTATION_MAX_LENGTH = 2000;
327
328    // TRN_LDGR_DEBIT_CRDT_CD valid values
329    public static final String GL_DEBIT_CODE = "D";
330    public static final String GL_CREDIT_CODE = "C";
331    public static final String GL_BUDGET_CODE = " ";
332
333    // TRN_ENCUM_UPDT_CD value values
334    public static final String ENCUMB_UPDT_DOCUMENT_CD = "D";
335    public static final String ENCUMB_UPDT_REFERENCE_DOCUMENT_CD = "R";
336    public static final String ENCUMB_UPDT_NO_ENCUMBRANCE_CD = "N";
337
338    // GL Reversal Generated Entry Description Prefix
339    public static final String GL_REVERSAL_DESCRIPTION_PREFIX = "AUTO REVERSAL-";
340
341    // Misc GL text.
342    public static final String PLANT_INDEBTEDNESS_ENTRY_DESCRIPTION = "GENERATED TRANSFER TO NET PLANT";
343
344    // Sufficient Funds Type Codes
345    public static final String SF_TYPE_NO_CHECKING = "N";
346    public static final String SF_TYPE_OBJECT = "O";
347    public static final String SF_TYPE_LEVEL = "L";
348    public static final String SF_TYPE_CONSOLIDATION = "C";
349    public static final String SF_TYPE_CASH_AT_ACCOUNT = "H";
350    public static final String SF_TYPE_ACCOUNT = "A";
351    public static final String NOTIFICATION_APPROVER = "ole-butt";
352
353    public static final String GRANT = "Grant";
354    public static final String HIDE_LOOKUP_RETURN_LINK = "hideReturnLink";
355    public static final String SUPPRESS_ACTIONS = "suppressActions";
356    public static final String REFERENCES_TO_REFRESH = "referencesToRefresh";
357    public static final String CHECK_IN_OPERATION                                      = "checkIn";
358    public static final String INCOME = "Income";
359    public static final String INITIAL_KUALI_DOCUMENT_STATUS_CD = "?";
360    public static final String INSERT_SOURCE_LINE_METHOD = "insertSourceLine";
361    public static final String INSERT_TARGET_LINE_METHOD = "insertTargetLine";
362    public static final String ICR = "Receipt";
363    public static final String PROJECT_CODE_PROPERTY_NAME = "projectCode";
364
365    public static final String INQUIRY_ACTION = "kr/inquiry.do";
366    public static final String JOURNAL_VOUCHER_CHANGE_BALANCE_TYPE_QUESTION = "JournalVoucherChangeBalanceTypeQuestion";
367    public static final String JOURNAL_VOUCHER_ROUTE_OUT_OF_BALANCE_DOCUMENT_QUESTION = "JournalVoucherRouteOutOfBalanceDocumentQuestion";
368    public static final String JOURNAL_LINE_HELPER_PROPERTY_NAME = "journalLineHelper";
369    public static final String AUXILIARY_LINE_HELPER_PROPERTY_NAME = "auxiliaryLineHelper";
370    public static final String VOUCHER_LINE_HELPER_CREDIT_PROPERTY_NAME = ".credit";
371    public static final String VOUCHER_LINE_HELPER_DEBIT_PROPERTY_NAME = ".debit";
372    public static final String LOOKUP_ACTION = "kr/lookup.do";
373    public static final String LOOKUP_RESULTS_SEQUENCE_NUMBER = "lookupResultsSequenceNumber";
374    public static final String LOOKUP_RESULTS_BO_CLASS_NAME = "lookupResultsBOClassName";
375    public static final String LOOKED_UP_COLLECTION_NAME = "lookedUpCollectionName";
376    public static final String MULTIPLE_VALUE_LOOKUP_PREVIOUSLY_SELECTED_OBJ_IDS_PARAM = "previouslySelectedObjectIds";
377    public static final String MULTIPLE_VALUE_LOOKUP_DISPLAYED_OBJ_ID_PARAM_PREFIX = "displayedObjId-";
378    public static final String MULTIPLE_VALUE_LOOKUP_SELECTED_OBJ_ID_PARAM_PREFIX = "selectedObjId-";
379    public static final String LOOKUP_ANCHOR = "lookupAnchor";
380    public static final String LOOKUPABLE_IMPL_ATTRIBUTE_NAME = "lookupableImplServiceName";
381    public static final String LOOKUPABLE_SUFFIX = "Lookupable";
382    public static final String KUALI_LOOKUPABLE_IMPL = "kualiLookupable";
383    public static final String KUALI_DISBURSEMENT_PAYEE_LOOKUPABLE_IMPL = "disbursementPayeeLookupable";
384    public static final String KUALI_VENDOR_ADDRESS_LOOKUPABLE_IMPL = "vendorAddressLookupable";
385    public static final String DOC_HANDLER_ACTION = "DocHandler.do";
386    public static final String DOC_HANDLER_METHOD = "docHandler";
387    public static final String DOC_HANDLER_URL ="/kew/DocHandler.do?command=displayDocSearchView&docId";
388    public static final String PARAMETER_DOC_ID = "docId";
389    public static final String PARAMETER_COMMAND = "command";
390    public static final String METHOD_DISPLAY_DOC_SEARCH_VIEW = "displayDocSearchView";
391    public static final String MAINTENANCE_ACTION = "maintenance.do";
392    public static final String MAINTENANCE_ADD_PREFIX = "add.";
393    public static final String MAINTENANCE_COPY_ACTION = "Copy";
394    public static final String MAINTENANCE_EDIT_ACTION = "Edit";
395    public static final String MAINTENANCE_NEW_ACTION = "New";
396    public static final String MAINTENANCE_COPY_METHOD_TO_CALL = "copy";
397    public static final String MAINTENANCE_EDIT_METHOD_TO_CALL = "edit";
398    public static final String MAINTENANCE_NEW_METHOD_TO_CALL = "start";
399    public static final String MAINTENANCE_NEWWITHEXISTING_ACTION = "newWithExisting";
400    public static final String MAINTENANCE_NEW_MAINTAINABLE = "document.newMaintainableObject.";
401    public static final String MAINTENANCE_OLD_MAINTAINABLE = "document.oldMaintainableObject.";
402    public static final String MAPPING_BASIC = "basic";
403    public static final String MAPPING_VIEW = "view";
404    public static final String MAPPING_CANCEL = "cancel";
405    public static final String MAPPING_CLOSE = "close";
406    public static final String MAPPING_ERROR = "error";
407    public static final String MAPPING_PORTAL = "portal";
408    public static final String MAPPING_BALANCE_INQUIRY_REPORT_MENU = "balanceInquiryReportMenu";
409    public static final String MAPPING_DV_PER_DIEM_LINKS = "dvPerDiemLinks";
410    public static final String METHOD_TO_CALL_ATTRIBUTE = "methodToCallAttribute";
411    public static final String METHOD_TO_CALL_PATH = "methodToCallPath";
412    public static final String METHOD_TO_CALL_BOPARM_LEFT_DEL = "(!!";
413    public static final String METHOD_TO_CALL_BOPARM_RIGHT_DEL = "!!)";
414    public static final String METHOD_TO_CALL_PARM1_LEFT_DEL = "(((";
415    public static final String METHOD_TO_CALL_PARM1_RIGHT_DEL = ")))";
416    public static final String METHOD_TO_CALL_PARM2_LEFT_DEL = "((#";
417    public static final String METHOD_TO_CALL_PARM2_RIGHT_DEL = "#))";
418    public static final String METHOD_TO_CALL_PARM3_LEFT_DEL = "((<";
419    public static final String METHOD_TO_CALL_PARM3_RIGHT_DEL = ">))";
420    public static final String METHOD_TO_CALL_PARM4_LEFT_DEL = "(([";
421    public static final String METHOD_TO_CALL_PARM4_RIGHT_DEL = "]))";
422    public static final String METHOD_TO_CALL_PARM5_LEFT_DEL = "((*";
423    public static final String METHOD_TO_CALL_PARM5_RIGHT_DEL = "*))";
424    public static final String METHOD_TO_CALL_PARM6_LEFT_DEL = "((%";
425    public static final String METHOD_TO_CALL_PARM6_RIGHT_DEL = "%))";
426    public static final String METHOD_TO_CALL_PARM7_LEFT_DEL = "((^";
427    public static final String METHOD_TO_CALL_PARM7_RIGHT_DEL = "^))";
428    public static final String METHOD_TO_CALL_PARM8_LEFT_DEL = "((&";
429    public static final String METHOD_TO_CALL_PARM8_RIGHT_DEL = "&))";
430    public static final String METHOD_TO_CALL_PARM9_LEFT_DEL = "((~";
431    public static final String METHOD_TO_CALL_PARM9_RIGHT_DEL = "~))";
432    public static final String METHOD_TO_CALL_PARM10_LEFT_DEL = "((/";
433    public static final String METHOD_TO_CALL_PARM10_RIGHT_DEL = "/))";
434    public static final String METHOD_TO_CALL_PARM11_LEFT_DEL = "(:;";
435    public static final String METHOD_TO_CALL_PARM11_RIGHT_DEL = ";:)";
436    public static final String METHOD_TO_CALL_PARM12_LEFT_DEL = "(::;";
437    public static final String METHOD_TO_CALL_PARM12_RIGHT_DEL = ";::)";
438    public static final String METHOD_TO_CALL_PARM13_LEFT_DEL = "(:::;";
439    public static final String METHOD_TO_CALL_PARM13_RIGHT_DEL = ";:::)";
440    // if more strings needed, then add more colons to the PARM11 strings above, e.g. (::; (:::;, etc.
441
442    public static final String ACTION_EXTENSION_DOT_DO = ".do";
443    public static final String ANCHOR = "anchor";
444    public static final String ANCHOR_TOP_OF_FORM = "topOfForm";
445    public static final String NOT_AVAILABLE_STRING = "N/A";
446    public static final int NEGATIVE_ONE = -1;
447    @Deprecated
448    public static final String OBJECT_TYPE_CODE_PROPERTY_NAME = OLEPropertyConstants.OBJECT_TYPE_CODE;
449    public static final String QUESTION_CLICKED_BUTTON = "buttonClicked";
450    public static final String QUESTION_INST_ATTRIBUTE_NAME = "questionIndex";
451    public static final String QUESTION_REFRESH = "QuestionRefresh";
452    public static final String QUESTION_CONTEXT = "context";
453    public static final String QUESTION_REASON_ATTRIBUTE_NAME = "reason";
454    public static final String RELOAD_METHOD_TO_CALL = "reload";
455    public static final String REFRESH_CALLER = "refreshCaller";
456    public static final String REQUIRED_FIELD_SYMBOL = "*";
457    public static final String RETURN_LOCATION_PARAMETER = "returnLocation";
458    public static final String RETURN_METHOD_TO_CALL = "refresh";
459    public static final String ROUTE_METHOD = "route";
460    public static final String SAVE_METHOD = "save";
461    public static final String START_METHOD = "start";
462    public static final String SEARCH_METHOD = "search";
463    public static final String COPY_METHOD = "copy";
464    public static final String ERRORCORRECT_METHOD = "correct";
465    public static final String SOURCE = "Source";
466    public static final String SQUARE_BRACKET_LEFT = "[";
467    public static final String SQUARE_BRACKET_RIGHT = "]";
468    @Deprecated
469    public static final String SUB_ACCOUNT_NUMBER_PROPERTY_NAME = OLEPropertyConstants.SUB_ACCOUNT_NUMBER;
470    public static final String TARGET = "Target";
471    public static final String TO = "To";
472    public static final String USER_SESSION_KEY = "UserSession";
473    public static final String VERSION_NUMBER = "versionNumber";
474
475    public static final String SEARCH_LIST_REQUEST_KEY = "searchResultKey";
476
477    public static final int CORRECTION_RECENT_GROUPS_DAY = 10;
478
479    public static final String GLOBAL_ERRORS = "GLOBAL_ERRORS";
480    public static final String GLOBAL_MESSAGES = "GlobalMessages";
481    public static final String DOCUMENT_DOCUMENT_ERRORS = "document.document*";
482    public static final String DOCUMENT_EXPLANATION_ERRORS = "document.explanation*";
483    public static final String DOCUMENT_REVERSAL_ERRORS = "document.reversal*";
484    public static final String DOCUMENT_SELECTED_ERRORS = "document.selected*";
485    public static final String DOCUMENT_HEADER_ERRORS = "document.header*";
486    public static final String DOCUMENT_ERRORS_LESS_DOCUMENT = DOCUMENT_EXPLANATION_ERRORS + "," + DOCUMENT_REVERSAL_ERRORS + "," + DOCUMENT_SELECTED_ERRORS + "," + DOCUMENT_HEADER_ERRORS;
487    public static final String DOCUMENT_ERRORS = DOCUMENT_DOCUMENT_ERRORS + "," + DOCUMENT_EXPLANATION_ERRORS + "," + DOCUMENT_REVERSAL_ERRORS + "," + DOCUMENT_SELECTED_ERRORS + "," + DOCUMENT_HEADER_ERRORS;
488    public static final String DOCUMENT_NOTES_ERRORS = "newDocumentNote*";
489
490    public enum NoteTypeEnum {
491        BUSINESS_OBJECT_NOTE_TYPE("BO", "documentBusinessObject"), DOCUMENT_HEADER_NOTE_TYPE("DH", "documentHeader");
492        private String noteTypeCode;
493        private String noteTypePath;
494
495        private NoteTypeEnum(String noteTypeCode, String noteTypePath) {
496            this.noteTypeCode = noteTypeCode;
497            this.noteTypePath = noteTypePath;
498        }
499
500        public String getCode() {
501            return this.noteTypeCode;
502        }
503
504        public String getPath() {
505            return this.noteTypePath;
506        }
507
508        public String getFullPath() {
509            return OLEConstants.DOCUMENT_PROPERTY_NAME + "." + getPath();
510        }
511    }
512
513    public static final String EDIT_JOURNAL_VOUCHER_ERRORS = "EditJournalVoucherErrors";
514    public static final String EDIT_AUXILIARY_VOUCHER_ERRORS = "EditAuxiliaryVoucherErrors";
515    public static final String EDIT_PRE_ENCUMBRANCE_ERRORS = "EditPreEncumbranceErrors";
516
517    public static final String ACCOUNTING_LINE_ERRORS = "document.accountingLines";
518    public static final String OHQ_REQUISITION_STATUS                    = "OLE_REQS";
519    //cannot use SOURCE_ACCOUNTING_LINE_ERROR_PATTERN due to doubled error displayed in checking already added source accounting line
520    public static final String NEW_SOURCE_LINE_ERRORS = "newSourceLine*";
521    public static final String SOURCE_ACCOUNTING_LINE_ERROR_PATTERN = "document.sourceAccounting*,sourceAccountingLines,newSourceLine*,journalLineHelper*,auxiliaryLineHelper*";
522    public static final String TARGET_ACCOUNTING_LINE_ERROR_PATTERN = "document.targetAccounting*,targetAccountingLines,newTargetLine*";
523    public static final String ACCOUNTING_LINE_GROUP_SUFFIX = "s";
524    public static final String SOURCE_ACCOUNTING_LINE_ERRORS = EXISTING_SOURCE_ACCT_LINE_PROPERTY_NAME + ACCOUNTING_LINE_GROUP_SUFFIX;
525    public static final String TARGET_ACCOUNTING_LINE_ERRORS = EXISTING_TARGET_ACCT_LINE_PROPERTY_NAME + ACCOUNTING_LINE_GROUP_SUFFIX;
526    public static final String ITEM_LINE_ERRORS = "newItem*,document.item*";
527
528    public static final String CREDIT_CARD_RECEIPTS_LINE_ERRORS = "newCreditCardReceipt*,document.creditCardReceipt*";
529    public static final String ADVANCE_DEPOSITS_LINE_ERRORS = "newAdvanceDeposit*,document.advanceDeposit*";
530    public static final String GENERAL_LEDGER_PENDING_ENTRIES_TAB_ERRORS = "document.generalLedgerPendingEntr*";
531
532    public static final String WILDCARD_CHARACTER = "*";
533    public static final String WILDCARD_NOT_ALLOWED_ON_FIELD = "error.fieldDoNotAllowWildcard";
534
535    // disbursement voucher error fields
536    public static final String DV_PAYEE_TAB_ERRORS = "DVPayeeErrors,document.dvPayeeDetail.disbVchrPayeeIdNumber,document.dvPayeeDetail.disbVchrPayeeCityName,document.dvPayeeDetail.disbVchrPayeePersonName," + "document.dvPayeeDetail.disbVchrPayeeStateCode,document.dvPayeeDetail.disbVchrPayeeLine1Addr,document.dvPayeeDetail.disbVchrPayeeZipCode,document.dvPayeeDetail.disbVchrPayeeLine2Addr,document.dvPayeeDetail.disbVchrPayeeCountryCode,document.dvPayeeDetail.disbursementVoucherPayeeTypeCode,";
537    public static final String DV_PAYEE_INIT_TAB_ERRORS = "DVPayeeErrors,payeeIdNumber,payeePersonName,payeeTypeCode";
538    public static final String DV_PAYMENT_TAB_ERRORS = "DVPaymentErrors,document.dvPayeeDetail.disbVchrPaymentReasonCode,document.disbVchrCheckTotalAmount,document.disbursementVoucherDueDate,document.dvPayeeDetail.disbVchrAlienPaymentCode," + "document.dvPayeeDetail.disbVchrPayeeEmployeeCode,document.disbVchrAttachmentCode,document.disbVchrSpecialHandlingCode,document.disbVchrPayeeW9CompleteCode" + "document.disbVchrPaymentMethodCode,document.disbursementVoucherDocumentationLocationCode,document.disbVchrCheckStubText";
539    public static final String DV_NRATAX_TAB_ERRORS = "DVNRATaxErrors,document.dvNonResidentAlienTax.incomeClassCode,document.dvNonResidentAlienTax.incomeTaxTreatyExemptCode,document.dvNonResidentAlienTax.federalIncomeTaxPercent," + "document.dvNonResidentAlienTax.foreignSourceIncomeCode,document.dvNonResidentAlienTax.stateIncomeTaxPercent,document.dvNonResidentAlienTax.incomeTaxGrossUpCode,document.dvNonResidentAlienTax.postalCountryCode," + "document.dvNonResidentAlienTax.referenceFinancialDocumentNumber";
540    public static final String DV_FOREIGNDRAFTS_TAB_ERRORS = "DVForeignDraftErrors,document.dvWireTransfer.disbursementVoucherForeignCurrencyTypeCode,document.dvWireTransfer.disbursementVoucherForeignCurrencyTypeName";
541    public static final String DV_CONTACT_TAB_ERRORS = "DVContactErrors,document.disbVchrContact*";
542    public static final String DV_SPECHAND_TAB_ERRORS = "DVSpecialHandlingErrors,document.dvPayeeDetail.disbVchrSpecialHandlingPersonName,document.dvPayeeDetail.disbVchrSpecialHandlingCityName,document.dvPayeeDetail.disbVchrSpecialHandlingLine1Addr,document.dvPayeeDetail.disbVchrSpecialHandlingStateCode," + "document.dvPayeeDetail.disbVchrSpecialHandlingLine2Addr,document.dvPayeeDetail.disbVchrSpecialHandlingZipCode,document.dvPayeeDetail.disbVchrSpecialHandlingCountryName";
543    public static final String DV_WIRETRANSFER_TAB_ERRORS = "DVWireTransfersErrors,document.dvWireTransfer.disbursementVoucherBankName,document.dvWireTransfer.disbVchrBankRoutingNumber,document.dvWireTransfer.disbVchrBankCityName,document.dvWireTransfer.disbVchrBankStateCode," + "document.dvWireTransfer.disbVchrBankCountryCode,document.dvWireTransfer.disbVchrAttentionLineText,document.dvWireTransfer.disbVchrAdditionalWireText,document.dvWireTransfer.disbVchrPayeeAccountNumber,document.dvWireTransfer.disbVchrCurrencyTypeName,document.dvWireTransfer.disbVchrCurrencyTypeCode," + "document.dvWireTransfer.disbursementVoucherWireTransferFeeWaiverIndicator,document.dvWireTransfer.disbursementVoucherPayeeAccountName,document.dvWireTransfer.disbursementVoucherPayeeAccountTypeCode,document.dvWireTransfer.disbursementVoucherAutomatedClearingHouseProfileNumber";
544    public static final String DV_NON_EMPL_TRAVEL_TAB_ERRORS = "DVNonEmployeeTravelErrors,newPrePaidNonEmployeeExpenseLine.*,newNonEmployeeExpenseLine.*,document.dvNonEmployeeTravel.*";
545    public static final String DV_PREPAID_TAB_ERRORS = "DVPrePaidTravelErrors,newPreConferenceRegistrantLine.*,document.dvPreConferenceDetail.*";
546    public static final String GENERAL_PAYMENT_TAB_ERRORS = "DVPaymentErrors";
547    public static final String GENERAL_NRATAX_TAB_ERRORS = "DVNRATaxErrors";
548    public static final String GENERAL_SPECHAND_TAB_ERRORS = "DVSpecialHandlingErrors";
549    public static final String GENERAL_PREPAID_TAB_ERRORS = "DVPrePaidTravelErrors";
550    public static final String GENERAL_NONEMPLOYEE_TAB_ERRORS = "DVNonEmployeeTravelErrors,document.dvNonEmployeeTravel.totalTravelAmount";
551    public static final String DV_CHECK_TRAVEL_TOTAL_ERROR = "document.dvNonEmployeeTravel.totalTravelAmount";
552
553    // country
554    public static final String COUNTRY_CODE_UNITED_STATES = "US";
555
556    // CashManagement tab errors
557    public static final String CASH_MANAGEMENT_DEPOSIT_ERRORS = "document.deposit*";
558
559    // Coin and Currency Amounts
560    public static class CoinTypeAmounts {
561        public static final KualiDecimal HUNDRED_CENT_AMOUNT = new KualiDecimal(1.0);
562        public static final KualiDecimal FIFTY_CENT_AMOUNT = new KualiDecimal(0.5);
563        public static final KualiDecimal TWENTY_FIVE_CENT_AMOUNT = new KualiDecimal(0.25);
564        public static final KualiDecimal TEN_CENT_AMOUNT = new KualiDecimal(0.1);
565        public static final KualiDecimal FIVE_CENT_AMOUNT = new KualiDecimal(0.05);
566        public static final KualiDecimal ONE_CENT_AMOUNT = new KualiDecimal(0.01);
567    }
568
569    public static class CurrencyTypeAmounts {
570        public static final KualiDecimal HUNDRED_DOLLAR_AMOUNT = new KualiDecimal(100.0);
571        public static final KualiDecimal FIFTY_DOLLAR_AMOUNT = new KualiDecimal(50.0);
572        public static final KualiDecimal TWENTY_DOLLAR_AMOUNT = new KualiDecimal(20.0);
573        public static final KualiDecimal TEN_DOLLAR_AMOUNT = new KualiDecimal(10.0);
574        public static final KualiDecimal FIVE_DOLLAR_AMOUNT = new KualiDecimal(5.0);
575        public static final KualiDecimal TWO_DOLLAR_AMOUNT = new KualiDecimal(2.0);
576        public static final KualiDecimal ONE_DOLLAR_AMOUNT = new KualiDecimal(1.0);
577    }
578
579    // Cashiering source constants
580    public static class CurrencyCoinSources {
581        public static final String CASH_MANAGEMENT_IN = "R"; // money coming in through cashiering activity
582        public static final String DEPOSITS = "D"; // money going out through deposits
583        public static final String CASH_RECEIPTS = "C"; // money coming in through cash receipts
584        public static final String CASH_MANAGEMENT_OUT = "O"; // money going out through cashiering activity
585        public static final String CASH_MANAGEMENT_MASTER = "M"; // an amalgamation of a cashiering transaction
586        public static final String CASH_CHANGE_REQUEST = "Q"; // requesting some change money back
587        public static final String CASH_CHANGE_GRANTED = "G"; // verified change request
588    }
589
590    // Constants for check sources
591    // Why are these constants different from the Currency/Coin constants?
592    // Why, I ask you in return, is the sky blue? That's right, because of
593    // the effect of Rayleigh scattering on atmospheric particles. That's why.
594    public static class CheckSources {
595        public static final String CASH_RECEIPTS = "C";
596        public static final String CASH_MANAGEMENT = "R";
597    }
598
599    public static final String CASHIERING_TRANSACTION_OPEN_ITEM_IN_PROCESS_PROPERTY = "document.currentTransaction.openItemInProcess";
600
601    // Tab error patterns must be at the top level; JSPs do not have access to the nested classes.
602    public static final String EDIT_CASH_RECEIPT_CASH_RECONCILIATION_ERRORS = "document.totalCashAmount,document.totalCheckAmount,document.totalCoinAmount,document.sumTotalAmount";
603    public static final String EDIT_CASH_RECEIPT_CHECK_DETAIL_ERRORS = "newCheck*,document.check*";
604    public static final String EDIT_CASH_RECEIPT_CURRENCY_COIN_ERRORS = "document.currencyDetail.*,document.coinDetail.*";
605    public static final String EDIT_CASH_MANAGEMENT_CASHIERING_TRANSACTION_ERRORS = "document.currentTransaction.*";
606    public static final String EDIT_CAPITAL_ASSET_INFORMATION_ERRORS = "document.capitalAssetInformation*";
607    public static final String EDIT_CAPITAL_ASSET_MODIFY_ERRORS = "document.capitalAssetModify*";
608    public static final String EDIT_ACCOUNTING_LINES_FOR_CAPITALIZATION_ERRORS = "document.capitalAccountingLines*";
609
610    public static final String MULTIPLE_VALUE = "multipleValues";
611
612    // special chars that I don't know how to put into string literals in JSP expression language
613    public static final String NEWLINE = "\n";
614
615    // Workflow constants
616
617    public static final String IS_FAILURE_RECORDS = "IsFailureRecords";
618
619    @Deprecated
620    public static final String WORKFLOW_FYI_REQUEST = KewApiConstants.ACTION_REQUEST_FYI_REQ;
621
622    public static class DocumentStatusCodes {
623        public static final String INITIATED = "?";
624        public static final String CANCELLED = "X";
625        public static final String ENROUTE = "R";
626        public static final String DISAPPROVED = "D";
627        public static final String APPROVED = "A";
628
629        public static class CashReceipt {
630            // once a CashReceipt gets approved, its financialDocumentStatus goes to "verified"
631            public static final String VERIFIED = "V";
632
633            // when a CashReceipt associated with a Deposit, its financialDocumentStatus changes to "interim" or "final"
634            public static final String INTERIM = "I";
635            public static final String FINAL = "F";
636
637            // when the CMDoc is finalized, the CRs of its Deposits change to status "approved"
638        }
639    }
640
641    public static class AuxiliaryVoucher {
642        public static final String ADJUSTMENT_DOC_TYPE = "OLE_AVAD";
643        public static final String ADJUSTMENT_DOC_TYPE_NAME = "Adjustment";
644        public static final String RECODE_DOC_TYPE = "OLE_AVRC";
645        public static final String RECODE_DOC_TYPE_NAME = "Recode";
646        public static final String ACCRUAL_DOC_TYPE = "OLE_AVAE";
647        public static final String ACCRUAL_DOC_TYPE_NAME = "Accrual";
648        public static final int ACCRUAL_DOC_DAY_OF_MONTH = 15;
649        public static final String ERROR_DOCUMENT_RECODE_DISTRIBUTION_OF_INCOME_AND_EXPENSE_UNSUCCESSFUL = "Unable to auto-generate Distribution of Income and Expense for document with number \"%s.\" Please contact your System Administrator for a Distribution of Income and Expense to be created manually.";
650        public static final String ERROR_DOCUMENT_HAS_TARGET_LINES = "AV document doesn't have target accounting lines. This method should have never been entered";
651        public static final String RECODE_DISTRIBUTION_OF_INCOME_AND_EXPENSE_DESCRIPTION = "Auto-generated for Auxiliary Voucher";
652        public static final String RECODE_DISTRIBUTION_OF_INCOME_AND_EXPENSE_EXPLANATION = "Auxiliary Voucher recode document type was chosen. A Distribution of Income And Expense needs to be routed to FINAL along with it. This Document is routed by Auxiliary Voucher \"%s\".";
653        public static final String CHANGE_VOUCHER_TYPE = "changeVoucherType";
654    }
655
656    public static class CashDrawerConstants {
657        public static final String STATUS_CLOSED = "C";
658        public static final String STATUS_OPEN = "O";
659        public static final String STATUS_LOCKED = "L";
660    }
661
662    public static class CashReceiptConstants {
663        public static final String DEFAULT_CASH_RECEIPT_CAMPUS_LOCATION_CODE = "??";
664
665        public static final String CASH_RECEIPT_CAMPUS_LOCATION_CODE_PROPERTY_NAME = "campusLocationCode";
666        public static final String CASH_RECEIPT_DOC_HEADER_STATUS_CODE_PROPERTY_NAME = OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + "." + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME;
667    }
668
669    public static class DepositConstants {
670        public static final String DEPOSIT_TYPE_VERIFIED = "V";
671        public static final String DEPOSIT_TYPE_INTERIM = "I";
672        public static final String DEPOSIT_TYPE_FINAL = "F";
673
674        public static final String DEPOSIT_WIZARD_CASHRECEIPT_ERROR = "cashReceiptErrors";
675        public static final String DEPOSIT_WIZARD_DEPOSITHEADER_ERROR = "depositHeaderErrors";
676    }
677
678    public static class BudgetAdjustmentDocumentConstants {
679        public static final String SOURCE_BA = "From/Decrease";
680        public static final String TARGET_BA = "To/Increase";
681        public static final String GENERATE_BENEFITS_QUESTION_ID = "GenerateBenefitsQuestion";
682        public static final String ADJUSTMENT_RESTRICTION_LEVEL_FUND = "F";
683        public static final String ADJUSTMENT_RESTRICTION_LEVEL_CHART = "C";
684        public static final String ADJUSTMENT_RESTRICTION_LEVEL_ORGANIZATION = "O";
685        public static final String ADJUSTMENT_RESTRICTION_LEVEL_ACCOUNT = "A";
686        public static final String ADJUSTMENT_RESTRICTION_LEVEL_SUBFUND = "S";
687        public static final String ADJUSTMENT_RESTRICTION_LEVEL_NONE = "N";
688        public static final String CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_FUND_GROUPS = "CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_FUND_GROUPS";
689        public static final String CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_SUB_FUND_GROUPS = "CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_SUB_FUND_GROUPS";
690    }
691
692    public static class DisbursementVoucherDocumentConstants {
693        public static final String CLEAR_NON_EMPLOYEE_TAB_QUESTION_ID = "ClearNonEmplTravTabQuestion";
694        public static final String CLEAR_WIRE_TRANSFER_TAB_QUESTION_ID = "ClearWireTransferTabQuestion";
695        public static final String CLEAR_FOREIGN_DRAFT_TAB_QUESTION_ID = "ClearForeignDraftTabQuestion";
696    }
697
698    public static final String ACCOUNTING_LINE_IMPORT_MAX_FILE_SIZE_PARM_NM = "MAX_FILE_SIZE_ACCOUNTING_LINE_IMPORT";
699    public static final String ORIGIN_ENTRY_IMPORT_MAX_FILE_SIZE_PARM_NM = "MAX_FILE_SIZE_ORIGIN_ENTRY_IMPORT";
700
701    public static class ChartApcParms {
702
703        public static final String FISCAL_YEAR_MAKER_REPLACE_MODE = "OVERRIDE_TARGET_YEAR_DATA_IND";
704        public static final String FISCAL_YEAR_MAKER_SOURCE_FISCAL_YEAR = "SOURCE_FISCAL_YEAR";
705
706        // added from parameter refactoring.
707        public static final String APC_HRMS_ACTIVE_KEY = "USE_HRMS_ORGANIZATION_ATTRIBUTES_IND";
708        public final static String OBJECT_CODE_ILLEGAL_VALUES = "OBJECT_CODES";
709        public static final String DOCTYPE_AND_OBJ_CODE_ACTIVE = "DOCUMENT_TYPES_REQUIRING_ACTIVE_OBJECT_CODES";
710        public static final String CG_ALLOWED_SUBACCOUNT_TYPE_CODES = "SUB_ACCOUNT_TYPES";
711
712        // Account parms
713        public static final String INCOME_STREAM_ACCOUNT_REQUIRING_FUND_GROUPS = "INCOME_STREAM_ACCOUNT_REQUIRING_FUND_GROUPS";
714        public static final String INCOME_STREAM_ACCOUNT_REQUIRING_SUB_FUND_GROUPS = "INCOME_STREAM_ACCOUNT_REQUIRING_SUB_FUND_GROUPS";
715
716        // Org parms
717        public static final String DEFAULT_ACCOUNT_NOT_REQUIRED_ORG_TYPES = "ORGANIZATION_TYPES_NOT_REQUIRING_DEFAULT_ACCOUNT";
718        public static final String ORG_MUST_REPORT_TO_SELF_ORG_TYPES = "ORGANIZATION_TYPES_THAT_MUST_REPORT_TO_SELF";
719
720        public static final String ACCOUNT_FUND_GROUP_DENOTES_CG = "FUND_GROUP_DENOTES_CG_IND";
721        public static final String ACCOUNT_CG_DENOTING_VALUE = "CG_DENOTING_VALUE";
722
723        // newly created prior year accounts to be added
724        public static final String PRIOR_YEAR_ACCOUNTS_TO_BE_ADDED = "PRIOR_YEAR_ACCOUNTS_TO_BE_ADDED";
725    }
726
727    public static class FinancialApcParms {
728        public static final String ACCOUNTING_LINE_IMPORT_HELP = "ACCOUNTING_LINE_IMPORT";
729    }
730
731    public static class SystemGroupParameterNames {
732
733        public static final String FLEXIBLE_OFFSET_ENABLED_FLAG = "USE_FLEXIBLE_OFFSET_IND";
734        public static final String PURGE_GL_ACCT_BALANCES_T_BEFORE_YEAR = "PRIOR_TO_YEAR";
735        public static final String PURGE_GL_ENCUMBRANCE_T_BEFORE_YEAR = "PRIOR_TO_YEAR";
736        public static final String PURGE_GL_SF_BALANCES_T_BEFORE_YEAR = "PRIOR_TO_YEAR";
737        public static final String PURGE_GL_BALANCE_T_BEFORE_YEAR = "PRIOR_TO_YEAR";
738        public static final String PURGE_GL_ENTRY_T_BEFORE_YEAR = "PRIOR_TO_YEAR";
739        public static final String PURGE_GL_ID_BILL_T_BEFORE_YEAR = "PRIOR_TO_YEAR";
740
741        public static final String GL_ANNUAL_CLOSING_DOC_TYPE = "ANNUAL_CLOSING_DOCUMENT_TYPE";
742        public static final String GL_INDIRECT_COST_RECOVERY = "INDIRECT_COST_RECOVERY_DOCUMENT_TYPE";
743        public static final String GL_ORIGINATION_CODE = "MANUAL_FEED_ORIGINATION";
744        public static final String GL_SCRUBBER_VALIDATION_DAYS_OFFSET = "CG_ACCOUNT_EXPIRATION_EXTENSION_DAYS";
745
746        public static final String MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE = "MULTIPLE_VALUE_RESULTS_PER_PAGE";
747        public static final String MULTIPLE_VALUE_LOOKUP_RESULTS_EXPIRATION_AGE = "MULTIPLE_VALUE_RESULTS_EXPIRATION_SECONDS";
748
749        public static final String ACTIVE_INPUT_TYPES_PARAMETER_NAME = "ACTIVE_FILE_TYPES";
750
751        public static final String COLLECTOR_VALIDATOR_EMAIL_SUBJECT_PARAMETER_NAME = "VALIDATION_EMAIL_SUBJECT_LINE";
752        public static final String COLLECTOR_VALIDATOR_ERROR_EMAIL_SUBJECT_PARAMETER_NAME = "VALIDATION_ERROR_EMAIL_SUBJECT_LINE";
753        public static final String COLLECTOR_DEMERGER_EMAIL_SUBJECT_PARAMETER_NAME = "ERROR_EMAIL_SUBJECT_LINE";
754        public static final String COLLECTOR_EQUAL_DC_TOTAL_DOCUMENT_TYPES = "EQUAL_DEBIT_CREDIT_TOTAL_DOCUMENT_TYPES";
755        public static final String COLLECTOR_PERFORM_DUPLICATE_HEADER_CHECK = "PERFORM_DUPLICATE_HEADER_CHECK_IND";
756
757        public static final String BATCH_SCHEDULE_CUTOFF_TIME = "CUTOFF_TIME";
758        public static final String BATCH_SCHEDULE_CUTOFF_TIME_IS_NEXT_DAY = "CUTOFF_TIME_NEXT_DAY_IND";
759        public static final String BATCH_SCHEDULE_STATUS_CHECK_INTERVAL = "STATUS_CHECK_INTERVAL";
760
761        /**
762         * Used by PurgePendingAttachmentsJob to compute the maximum amount of time a pending attachment is allowed to persist on
763         * the file system before being deleted.
764         */
765        public static final String PURGE_PENDING_ATTACHMENTS_STEP_MAX_AGE = "MAX_AGE";
766
767        public static final String NUMBER_OF_DAYS_SINCE_LAST_UPDATE  = "NUMBER_OF_DAYS_SINCE_LAST_UPDATE";
768
769        public static final String ACCOUNTS_CAN_CROSS_CHARTS_IND = "ACCOUNTS_CAN_CROSS_CHARTS_IND";
770
771        public static final String BATCH_CONTAINER_SEMAPHORE_PROCESSING_INTERVAL = "SEMAPHORE_PROCESSING_INTERVAL";
772    }
773
774    public static class GeneralLedgerApplicationParameterKeys {
775        public static final String INCOME_OBJECT_TYPE_CODES = "INCOME_OBJECT_TYPE_CODES";
776        public static final String INCOME_TRANSFER_OBJECT_TYPE_CODES = "INCOME_TRANSFER_OBJECT_TYPE_CODES";
777        public static final String EXPENSE_OBJECT_TYPE_CODES = "EXPENSE_OBJECT_TYPE_CODES";
778        public static final String EXPENSE_TRANSFER_OBJECT_TYPE_CODES = "EXPENSE_TRANSFER_OBJECT_TYPE_CODES";
779    }
780
781    public static class GeneralLedgerCorrectionProcessApplicationParameterKeys {
782        public static final String RECORD_COUNT_FUNCTIONALITY_LIMIT = "RECORD_COUNT_FUNCTIONALITY_LIMIT";
783        public static final String RECORDS_PER_PAGE = "RECORDS_PER_PAGE";
784    }
785
786    public static class EnterpriseFeederApplicationParameterKeys {
787        public static final String TO_ADDRESS = "INVALID_FILE_TO_EMAIL_ADDRESSES";
788    }
789
790    public static class ParameterValues {
791        public static final String YES = "Y";
792        public static final String NO = "N";
793    }
794
795    public static class Maintenance {
796        public static final String AFTER_CLASS_DELIM = "!!";
797        public static final String AFTER_FIELDNAME_DELIM = "^^";
798        public static final String AFTER_VALUE_DELIM = "::";
799    }
800
801    public static class ObjectCodeConstants {
802        public static final String INACTIVE_OBJECT_LEVEL_QUESTION_ID = "InactiveObjectLevelQuestion";
803        public static final String SECTION_ID_RESEARCH_ADMIN_ATTRIBUTES = "researchAdminAttributes";
804    }
805
806    public static final String MONTH1 = "01";
807    public static final String MONTH2 = "02";
808    public static final String MONTH3 = "03";
809    public static final String MONTH4 = "04";
810    public static final String MONTH5 = "05";
811    public static final String MONTH6 = "06";
812    public static final String MONTH7 = "07";
813    public static final String MONTH8 = "08";
814    public static final String MONTH9 = "09";
815    public static final String MONTH10 = "10";
816    public static final String MONTH11 = "11";
817    public static final String MONTH12 = "12";
818    public static final String MONTH13 = "13";
819    public static final String PERIOD_CODE_ANNUAL_BALANCE = "AB";
820    public static final String PERIOD_CODE_BEGINNING_BALANCE = "BB";
821    public static final String PERIOD_CODE_CG_BEGINNING_BALANCE = "CB";
822
823    public static final String REQUEST_SEARCH_RESULTS = "reqSearchResults";
824    public static final String REQUEST_SEARCH_RESULTS_SIZE = "reqSearchResultsSize";
825    public static final String GL_COLLECTOR_STAGING_DIRECTORY = "collector.staging.directory";
826
827    public static final String DISBURSEMENT_VOUCHER_DOCUMENTATION_LOCATION_CODE_PROPERTY_NAME = "disbursementVoucherDocumentationLocationCode";
828    public static final String FUND_GROUP_CODE_PROPERTY_NAME = "code";
829    public static final String SUB_FUND_GROUP_CODE_PROPERTY_NAME = "subFundGroupCode";
830
831    public static final String RULE_CODE_R1 = "R1";
832    public static final String RULE_CODE_R2 = "R2";
833    public static final String RULE_CODE_N1 = "N1";
834    public static final String RULE_CODE_N2 = "N2";
835    public static final String RULE_CODE_C1 = "C1";
836    public static final String RULE_CODE_C2 = "C2";
837    public static final String RULE_CODE_A = "A";
838    public static final String TRANSACTION_DT = "TRANSACTION_DT";
839    public static final String UNALLOC_OBJECT_CD = "UNALLOC_OBJECT_CD";
840    public static final String BEG_BUD_CASH_OBJECT_CD = "BEG_BUD_CASH_OBJECT_CD";
841    public static final String FUND_BAL_OBJECT_CD = "FUND_BAL_OBJECT_CD";
842    public static final String UNIV_FISCAL_YR = "UNIV_FISCAL_YR";
843
844    public static final String EMPLOYEE_LOOKUP_ERRORS = "document.employeeLookups,document.emplid,universityFiscalYear";
845
846    public static class BudgetConstructionConstants {
847
848        /* OLEConstants for the budget construction flag names */
849        public final static String BUDGET_ADMINSTRATION_ACTIVE = "BAACTV";
850        public final static String BASE_BUDGET_UPDATES_OK = "BASEAD";
851        public final static String BUDGET_BATCH_SYNCHRONIZATION_OK = "BSSYNC";
852        public final static String CSF_UPDATES_OK = "CSFUPD";
853        public final static String BUDGET_CONSTRUCTION_ACTIVE = "BCACTV";
854        public final static String BUDGET_CONSTRUCTION_GENESIS_RUNNING = "BCGENE";
855        public final static String BUDGET_CONSTRUCTION_UPDATES_OK = "BCUPDT";
856        public final static String BUDGET_ON_LINE_SYNCHRONIZATION_OK = "PSSYNC";
857
858        /*
859         * object code which stores amounts by which pending general ledger rows in budget construction are out of balance
860         */
861        @Deprecated
862        public final static String OBJECT_CODE_2PLG = "2PLG";
863
864    }
865
866    public static class OperationType {
867        public static final String READ = "read";
868        public static final String REPORT_ERROR = "with error";
869        public static final String INSERT = "insert";
870        public static final String UPDATE = "update";
871        public static final String DELETE = "delete";
872        public static final String SELECT = "select";
873        public static final String BYPASS = "bypassed";
874    }
875
876    public static class PENDING_ENTRY_APPROVED_STATUS_CODE {
877        public static final String APPROVED = "A";
878        public static final String PROCESSED = "X";
879    }
880
881    public static class TableRenderConstants {
882        public static final String SWITCH_TO_PAGE_METHOD = "switchToPage";
883        public static final String SORT_METHOD = "sort";
884
885        public static final String PREVIOUSLY_SORTED_COLUMN_INDEX_PARAM = "previouslySortedColumnIndex";
886        public static final String VIEWED_PAGE_NUMBER = "viewedPageNumber";
887    }
888
889    public static final String PCDO_FILE_TYPE_INDENTIFIER = "procurementCardInputFileType";
890    public static final String COLLECTOR_XML_FILE_TYPE_INDENTIFIER = "collectorXmlInputFileType";
891    public static final String COLLECTOR_FLAT_FILE_TYPE_INDENTIFIER = "collectorFlatFileInputFileType";
892    public static final String ENTERPRISE_FEEDER_FILE_SET_TYPE_INDENTIFIER = "enterpriseFeederFileSetType";
893
894    //variables for upload of vendor information relating to OLE Select batch upload
895    public static final String REQUISITION_FILE_TYPE_INDENTIFIER = "requisitionInputFileType";
896    public static final String MARC_FILE_TYPE_INDENTIFIER = "marcInputFileType";
897    public static final String ORD_FILE_TYPE_INDENTIFIER = "ordInputFileType";
898    // next 2 variables for the enterprise feeder batch upload
899    public static final String DATA_FILE_TYPE = "DATA";
900    public static final String RECON_FILE_TYPE = "RECON";
901
902    // next variable used by the batch upload framework
903    public static final String DONE_FILE_TYPE = "DONE_FILE";
904
905    // variables for batch upload inquiry
906    public static final String BATCH_UPLOAD_ACTION_PATH = "acqBatchUpload.do";
907
908    /**
909     * The base implementation of {@link org.kuali.ole.gl.batch.service.impl.EnterpriseFeederStatusBase} uses strings contained within
910     * ApplicationResources.properties to store the human-readable descriptions of each status object. The fully qualified class
911     * name is appended to the end of this key to generate the true key. For example,
912     * gl.EnterpriseFeeder.StatusDescriptionPrefix.org.kuali.ole.gl.batch.service.impl.FileReconBadLoadAbortedStatus
913     */
914    public static final String ENTERPRISE_FEEDER_STATUS_DESCRIPTION_PREFIX = "gl.EnterpriseFeeder.StatusDescription.";
915
916    public static final String BATCH_STEP_RUNNER_JOB_NAME = "stepRunByBatchStepRunner";
917
918    // Some static method calls below that could be done in static variables instead but isn't safe to do during class loading
919    // w/SpringContext.
920    private static String DASH_FINANCIAL_OBJECT_CODE = null;
921
922    public static String getDashFinancialObjectCode() {
923        if (DASH_FINANCIAL_OBJECT_CODE == null) {
924            DASH_FINANCIAL_OBJECT_CODE = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.FINANCIAL_OBJECT_CODE), '-');
925        }
926        return DASH_FINANCIAL_OBJECT_CODE;
927    }
928
929    private static String DASH_FINANCIAL_SUB_OBJECT_CODE = null;
930
931    public static String getDashFinancialSubObjectCode() {
932        if (DASH_FINANCIAL_SUB_OBJECT_CODE == null) {
933            DASH_FINANCIAL_SUB_OBJECT_CODE = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.FINANCIAL_SUB_OBJECT_CODE), '-');
934        }
935        return DASH_FINANCIAL_SUB_OBJECT_CODE;
936    }
937
938    private static String DASH_SUB_ACCOUNT_NUMBER = null;
939
940    public static String getDashSubAccountNumber() {
941        if (DASH_SUB_ACCOUNT_NUMBER == null) {
942            DASH_SUB_ACCOUNT_NUMBER = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.SUB_ACCOUNT_NUMBER), '-');
943        }
944        return DASH_SUB_ACCOUNT_NUMBER;
945    }
946
947    private static String SPACE_SUB_ACCOUNT_NUMBER = null;
948
949    public static String getSpaceSubAccountNumber() {
950        if (SPACE_SUB_ACCOUNT_NUMBER == null) {
951            SPACE_SUB_ACCOUNT_NUMBER = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.SUB_ACCOUNT_NUMBER), ' ');
952        }
953        return SPACE_SUB_ACCOUNT_NUMBER;
954    }
955
956    private static String DASH_PROJECT_CODE = null;
957
958    public static String getDashProjectCode() {
959        if (DASH_PROJECT_CODE == null) {
960            DASH_PROJECT_CODE = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.PROJECT_CODE), '-');
961        }
962        return DASH_PROJECT_CODE;
963    }
964
965    public static final class ReportGeneration{
966        public final static String PARAMETER_NAME_SUBREPORT_DIR = "SUBREPORT_DIR";
967        public final static String PARAMETER_NAME_SUBREPORT_TEMPLATE_NAME = "SUBREPORT_TEMPLATE_NAMES";
968        public final static String DESIGN_FILE_EXTENSION = ".jrxml";
969        public final static String JASPER_REPORT_EXTENSION = ".jasper";
970        public final static String PDF_FILE_EXTENSION = ".pdf";
971        public final static String PDF_MIME_TYPE = "application/pdf";
972        public final static String TEXT_MIME_TYPE = "text/plain";
973        public final static String ACCOUNT_EXPORT_FILE_NAME = "account_export.txt";
974        public final static String MONTHLY_EXPORT_FILE_NAME = "monthly_export.txt";
975        public final static String FUNDING_EXPORT_FILE_NAME = "funding_export.txt";
976    }
977
978    public final static KualiInteger ONE_HUNDRED = new KualiInteger(100);
979    public final static KualiInteger ONE = new KualiInteger(1);
980
981    // effort certification period status codes
982    public static final class PeriodStatusCodes {
983        public static final String CLOSED = "C";
984        public static final String NOT_OPEN = "N";
985        public static final String OPEN = "O";
986    }
987
988    public static final class CustomerParameter {
989        public static final String TAX_NUMBER_REQUIRED_IND = "TAX_NUMBER_REQUIRED_IND";
990    }
991
992    // financial document type codes
993    public static final class FinancialDocumentTypeCodes {
994        public static final String ALL = "ALL";
995
996        // financial processing
997        public static final String GENERAL_ERROR_CORRECTION = "OLE_GEC";
998        public static final String YEAR_END_GENERAL_ERROR_CORRECTION = "OLE_YEGE";
999        public static final String DISTRIBUTION_OF_INCOME_AND_EXPENSE = "OLE_DI";
1000        public static final String YEAR_END_DISTRIBUTION_OF_INCOME_AND_EXPENSE = "OLE_YEDI";
1001        public static final String SERVICE_BILLING = "OLE_SB";
1002        public static final String INTERNAL_BILLING = "OLE_IB";
1003        public static final String CASH_RECEIPT = "OLE_CR";
1004        public static final String PROCUREMENT_CARD = "OLE_PCDO";
1005        public static final String ADVANCE_DEPOSIT = "OLE_AD";
1006        public static final String CASH_MANAGEMENT = "OLE_CMD";
1007        public static final String CREDIT_CARD_RECEIPT = "OLE_CCR";
1008        public static final String NON_CHECK_DISBURSEMENT = "OLE_ND";
1009
1010        // purap
1011        public static final String REQUISITION = "OLE_REQS";
1012        public static final String REQUESTOR = "OLE_REQSTR";
1013        public static final String PAYMENT_REQUEST = "OLE_PREQ";
1014        public static final String INVOICE = "OLE_PRQS";
1015        public static final String PURCHASE_ORDER = "OLE_PO";
1016        public static final String PURCHASE_ORDER_AMENDMENT = "OLE_POA";
1017        public static final String PURCHASE_ORDER_CLOSE = "OLE_POC";
1018        public static final String PURCHASE_ORDER_SPLIT = "OLE_POSP";
1019        public static final String PURCHASE_ORDER_REOPEN = "OLE_POR";
1020        public static final String PURCHASE_ORDER_PAYMENT_HOLD = "OLE_POPH";
1021        public static final String PURCHASE_ORDER_REMOVE_HOLD = "OLE_PORH";
1022        public static final String PURCHASE_ORDER_RETRANSMIT = "OLE_PORT";
1023        public static final String PURCHASE_ORDER_VOID = "OLE_POV";
1024        public static final String LINE_ITEM_RECEIVING = "OLE_RCVL";
1025        public static final String CORRECTION_RECEIVING = "OLE_RCVC";
1026        public static final String VENDOR_CREDIT_MEMO = "OLE_CM";
1027        public static final String BULK_RECEIVING = "OLE_RCVB";
1028        public static final String ELECTRONIC_INVOICE_REJECT = "OLE_EIRT";
1029        public static final String ACQ_BATCH_UPLOAD = "OLE_ACQBTHUPLOAD";
1030    }
1031
1032    // financial document type names
1033    @Deprecated
1034    public static final class FinancialDocumentTypeNames {
1035        public static final String GENERAL_ERROR_CORRECTION = "General Error Correction";
1036        public static final String YEAR_END_GENERAL_ERROR_CORRECTION = "Year End General Error Correction";
1037        public static final String DISTRIBUTION_OF_INCOME_AND_EXPENSE = "Distribution of Income and Expense";
1038        public static final String YEAR_END_DISTRIBUTION_OF_INCOME_AND_EXPENSE = "Year End Distribution of Income and Expense";
1039        public static final String SERVICE_BILLING = "Service Billing";
1040        public static final String INTERNAL_BILLING = "Internal Billing";
1041        public static final String CASH_RECEIPT = "Cash Receipt";
1042        public static final String PROCUREMENT_CARD = "Procurement Card";
1043    }
1044
1045    public static final class AccountingLineViewStandardBlockNames {
1046        public static final String ACTION_BLOCK = "actions";
1047        public static final String SEQUENCE_NUMBER_BLOCK = "sequenceNumber";
1048        public static final String SALES_TAX_BLOCK = "salesTaxInformation";
1049    }
1050
1051    public static final class TaxRegionConstants {
1052        public static final String TAX_REGION_RATES = "taxRegionRates";
1053        public static final String TAX_REGION_COUNTIES = "taxRegionCounties";
1054        public static final String TAX_REGION_STATES = "taxRegionStates";
1055        public static final String TAX_REGION_POSTAL_CODES = "taxRegionPostalCodes";
1056        public static final String TAX_REGION_STATE_CODE = "stateCode";
1057        public static final String TAX_REGION_COUNTY_CODE = "countyCode";
1058        public static final String TAX_REGION_POSTAL_CODE = "postalCode";
1059        public static final String TAX_REGION_TAX_RATE = "taxRate";
1060        public static final String TAX_REGION_EFFECTIVE_DATE = "effectiveDate";
1061        public static final String TAX_REGION_TYPE_CODE = "taxRegionTypeCode";
1062        public static final String TAX_REGION_COUNTIES_SECTION_ID = "TaxRegionCounties";
1063        public static final String TAX_REGION_STATES_SECTION_ID = "TaxRegionStates";
1064        public static final String TAX_REGION_POSTAL_CODES_SECTION_ID = "TaxRegionPostalCodes";
1065        public static final String TAX_REGION_RATES_SECTION_ID = "TaxRegionRates";
1066        public static final String TAX_REGION_CREATE_SECTION_ID = "CreateTaxRegion";
1067
1068        public static final String TAX_REGION_TYPE_CODE_COUNTY = "CNTY";
1069        public static final String TAX_REGION_TYPE_CODE_POSTAL_CODE = "POST";
1070        public static final String TAX_REGION_TYPE_CODE_STATE = "ST";
1071    }
1072
1073    public static final class SubAccountType {
1074        public static final String COST_SHARE = "CS";
1075        public static final String EXPENSE = "EX";
1076
1077        public static final List<String> ELIGIBLE_SUB_ACCOUNT_TYPE_CODES = getEligibleSubAccountTypeCodes();
1078
1079        private static final List<String> getEligibleSubAccountTypeCodes(){
1080            List<String> subAccountTypeCodesList = new ArrayList<String>();
1081            subAccountTypeCodesList.add(OLEConstants.SubAccountType.COST_SHARE);
1082            subAccountTypeCodesList.add(OLEConstants.SubAccountType.EXPENSE);
1083            return subAccountTypeCodesList;
1084        }
1085    }
1086
1087    @Deprecated // move to PDP
1088    public static final class PdpConstants {
1089        public static final String PAYMENT_OPEN_STATUS_CODE = "OPEN";
1090    }
1091
1092    // define a set of indicators related to payments, including payee types, tax review requirements and others
1093    public static class AdHocPaymentIndicator{
1094        public static final String EMPLOYEE_VENDOR = "E";
1095        public static final String ALIEN_VENDOR = "A";
1096        public static final String EMPLOYEE_PAYEE = "E";
1097        public static final String ALIEN_PAYEE = "A";
1098        public static final String TAX_CONTROL_REQUIRING_TAX_REVIEW = "T";
1099        public static final String PAYMENT_REASON_REQUIRING_TAX_REVIEW = "P";
1100        public static final String OTHER = "N";
1101    }
1102
1103    public static class SysKimApiConstants{
1104        public static final String ACCOUNT_SUPERVISOR_KIM_ROLE_NAME = "Account Supervisor";
1105        public static final String CONTRACTS_AND_GRANTS_PROJECT_DIRECTOR = "Contracts & Grants Project Director";
1106        public static final String FISCAL_OFFICER_KIM_ROLE_NAME = "Fiscal Officer";
1107        public static final String FISCAL_OFFICER_PRIMARY_DELEGATE_KIM_ROLE_NAME = "Fiscal Officer Primary Delegate";
1108        public static final String FISCAL_OFFICER_SECONDARY_DELEGATE_KIM_ROLE_NAME = "Fiscal Officer Secondary Delegate";
1109        public static final String AWARD_SECONDARY_DIRECTOR_KIM_ROLE_NAME = "Award Project Director";
1110        public static final String ACTIVE_FACULTY_OR_STAFF_KIM_ROLE_NAME = "Active Faculty or Staff";
1111        public static final String ACTIVE_PROFESSIONAL_EMPLOYEE_KIM_ROLE_NAME = "Active Professional Employee";
1112        public static final String ACTIVE_EMPLOYEE_AND_KFS_USER_KIM_ROLE_NAME = "Active Employee & Financial System User";
1113        public static final String ACTIVE_PROFESSIONAL_EMPLOYEE_AND_KFS_USER_KIM_ROLE_NAME = "Active Professional Employee & Financial System User";
1114        public static final String CHART_MANAGER_KIM_ROLE_NAME = "Chart Manager";
1115        public static final String ORGANIZATION_REVIEWER_ROLE_NAMESPACECODE = CoreModuleNamespaces.OLE;
1116        public static final String ACCOUNTING_REVIEWER_ROLE_NAMESPACECODE = CoreModuleNamespaces.OLE;
1117        public static final String ACCOUNTING_REVIEWER_ROLE_NAME = "Accounting Reviewer";
1118        public static final String ORGANIZATION_REVIEWER_ROLE_NAME = "Organization Reviewer";
1119        public static final String KFS_USER_ROLE_NAME = "User";
1120    }
1121
1122    public enum PermissionAttributeValue {
1123        SOURCE_ACCOUNTING_LINES("sourceAccountingLines"), TARGET_ACCOUNTING_LINES("targetAccountingLines");
1124
1125        public final String value;
1126
1127        private PermissionAttributeValue(String value) {
1128            this.value = value;
1129        }
1130    }
1131
1132    public enum PermissionTemplate {
1133        DEFAULT( KRADConstants.DEFAULT_NAMESPACE, "Default"),
1134        ERROR_CORRECT_DOCUMENT( OLEConstants.CoreModuleNamespaces.OLE, "Error Correct Document"),
1135        MODIFY_ACCOUNTING_LINES(OLEConstants.CoreModuleNamespaces.OLE, "Modify Accounting Lines"),
1136        CLAIM_ELECTRONIC_PAYMENT(OLEConstants.CoreModuleNamespaces.OLE, "Claim Electronic Payment"),
1137        MODIFY_BATCH_JOB(OLEConstants.CoreModuleNamespaces.OLE, "Modify Batch Job"),
1138        EDIT_BANK_CODE(OLEConstants.CoreModuleNamespaces.OLE, "Edit Bank Code"),
1139        ADMINISTER_ROUTING_FOR_DOCUMENT(KRADConstants.KUALI_RICE_WORKFLOW_NAMESPACE, "Administer Routing for Document"),
1140        VIEW_BATCH_FILES(OLEConstants.CoreModuleNamespaces.OLE, "Administer Batch File"),
1141        UPLOAD_BATCH_INPUT_FILES(OLEConstants.CoreModuleNamespaces.OLE, "Upload Batch Input File(s)");
1142
1143        public final String name;
1144        public final String namespace;
1145        private PermissionTemplate(String namespace, String name) {
1146            this.namespace = namespace;
1147            this.name = name;
1148        }
1149    }
1150
1151    public enum PermissionNames {
1152        EDIT_INACTIVE_ACCOUNT( OLEConstants.CoreModuleNamespaces.CHART, "Edit Inactive Account" ),
1153        SERVE_AS_ACCOUNT_MANAGER( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Account Manager" ),
1154        SERVE_AS_ACCOUNT_SUPERVISOR( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Account Supervisor" ),
1155        SERVE_AS_FISCAL_OFFICER( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Fiscal Officer" ),
1156        SERVE_AS_FISCAL_OFFICER_DELEGATE( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Fiscal Officer Delegate" );
1157
1158        public final String name;
1159        public final String namespace;
1160        private PermissionNames(String namespace, String name) {
1161            this.namespace = namespace;
1162            this.name = name;
1163        }
1164    }
1165
1166    public static final String KFS_ACTION_CAN_ERROR_CORRECT = "canErrorCorrect";
1167    public static final String KFS_ACTION_CAN_EDIT_BANK = "canEditBank";
1168
1169
1170    public static final String AMOUNT_TOTALING_EDITING_MODE = "amountTotaling";
1171    public static final String BANK_ENTRY_VIEWABLE_EDITING_MODE = "bankEntryViewable";
1172    public static final String BANK_ENTRY_EDITABLE_EDITING_MODE = "bankEntry";
1173
1174    public class RouteLevelNames {
1175        public static final String ACCOUNT = "Account";
1176        public static final String ACCOUNTING_ORGANIZATION_HIERARCHY = "AccountingOrganizationHierarchy";
1177        public static final String ACCOUNT_REVIEW_FULL_EDIT = "AccountFullEdit";
1178        public static final String PROJECT_MANAGEMENT = "ProjectManagement";
1179        public static final String ORGANIZATION_HIERARCHY = "OrganizationHierarchy";
1180    }
1181
1182    public static final String ROOT_DOCUMENT_TYPE = "OLE";
1183    public static final String FINANCIAL_SYSTEM_LEDGER_ONLY_ROOT_DOCUMENT_TYPE = "OpenLibraryEnvironmentLedgerOnlyDocument";
1184
1185    public static class COAConstants{
1186        public static final String FINANCIAL_SYSTEM_DOCUMENT = ROOT_DOCUMENT_TYPE;
1187        public static final String FINANCIAL_SYSTEM_TRANSACTIONAL_DOCUMENT = "OpenLibraryEnvironmentTransactionalDocument";
1188        public static final String FINANCIAL_SYSTEM_COMPLEX_MAINTENANCE_DOCUMENT = "OpenLibraryEnvironmentComplexMaintenanceDocument";
1189        public static final String FINANCIAL_SYSTEM_SIMPLE_MAINTENANCE_DOCUMENT = "OpenLibraryEnvironmentSimpleMaintenanceDocument";
1190
1191        public static final String NODE_NAME_ORGANIZATION_HIERARCHY = "OrganizationHierarchy";
1192        public static final String NODE_NAME_ACCOUNTING_ORGANIZATION_HIERARCHY = "AccountingOrganizationHierarchy";
1193
1194        public static final String ORG_REVIEW_ROLE_ORG_ACC_ONLY_CODE = "A";
1195        public static final String ORG_REVIEW_ROLE_ORG_ACC_ONLY_TEXT = "Organization Accounting Only";
1196        public static final String ORG_REVIEW_ROLE_ORG_ONLY_CODE = "O";
1197        public static final String ORG_REVIEW_ROLE_ORG_ONLY_TEXT = "Organization Only";
1198        public static final String ORG_REVIEW_ROLE_ORG_ACC_BOTH_CODE = "B";
1199        public static final String ORG_REVIEW_ROLE_ORG_ACC_BOTH_TEXT = "Both";
1200        public static final String ORG_REVIEW_ROLE_DOCUMENT_TYPE_NAME = "OLE_ORR";
1201        public static final String ORG_REVIEW_ROLE_CREATE_DELEGATION_DISPLAY_TEXT = "create delegation";
1202
1203    }
1204
1205    public static class ReportConstants{
1206        public static final String EMPTY_CELL_ENTRY_KEY_PREFIX = "EMPTY_CELL";
1207
1208        public static final String TABLE_HEADER_LINE_KEY = "tableHeaderLine";
1209        public static final String SEPARATOR_LINE_KEY = "separatorLine";
1210        public static final String TABLE_CELL_FORMAT_KEY = "tableCellFormat";
1211        public static final String[] FORMAT_ESCAPE_CHARACTERS = new String[]{"%", "\\"};
1212    }
1213
1214    public static final String DOCUMENT_LOCKOUT_PARM_NM = "LOCKOUT_IND";
1215    public static final String DOCUMENT_LOCKOUT_PARM_DESC = "This parameter is to lock document during the lockout time.";
1216    public static final String DOCUMENT_LOCKOUT_DEFAULT_MESSAGE = "DOCUMENT_LOCKOUT_DEFAULT_MESSAGE";
1217    public static final String FROM_EMAIL_ADDRESS_PARM_NM = "FROM_EMAIL_ADDRESS";
1218
1219
1220    // System Parameters
1221    public static final String RESULT_SUMMARY_TO_EMAIL_ADDRESSES = "RESULT_SUMMARY_TO_EMAIL_ADDRESSES";
1222    public static final String SOURCE_URL_PARAMETER = "SOURCE_URL";
1223
1224    public static final String REPORT_WRITER_SERVICE_PAGE_NUMBER_PLACEHOLDER = "${pageNumber}";
1225
1226    public static class SchemaBuilder {
1227        public static final String SCHEMA_FILE_DD_VALIDATION_PLACEHOLDER_BEGIN = "${";
1228        public static final String SCHEMA_FILE_DD_VALIDATION_PLACEHOLDER_END = "}";
1229        public static final String XSD_VALIDATION_PREFIX = "xsd:";
1230        public static final String DD_VALIDATION_PREFIX = "dd:";
1231    }
1232
1233    public static class CapitalAssets {
1234        //C ==> create asset action, M ==> modify asset action
1235        public static final String CAPITAL_ASSET_CREATE_ACTION_INDICATOR = "C";
1236        public static final String CAPITAL_ASSET_MODIFY_ACTION_INDICATOR = "M";
1237        public static final String CAPITAL_ASSET_TAB_STATE_OPEN = "OPEN";
1238        public static final String CAPITAL_ASSET_TAB_STATE_CLOSE = "CLOSE";
1239        public static final String CAPITAL_ASSET_PROCESSED_IND = "N";
1240
1241        public static final String ACCOUNTING_LINES_FOR_CAPITALIZATION_TAB_TITLE = "Accounting Lines for Capitalization";
1242        public static final String CREATE_CAPITAL_ASSETS_TAB_TITLE = "Create Capital Assets";
1243        public static final String MODIFY_CAPITAL_ASSETS_TAB_TITLE = "Modify Capital Assets";
1244
1245        public static final String DISTRIBUTE_COST_EQUALLY_CODE = "2";
1246        public static final String DISTRIBUTE_COST_EQUALLY_DESCRIPTION = "Distribute cost evenly";
1247        public static final String DISTRIBUTE_COST_BY_INDIVIDUAL_ASSET_AMOUNT_CODE = "1";
1248        public static final String DISTRIBUTE_COST_BY_INDIVIDUAL_ASSET_AMOUNT_DESCRIPTION = "Distribute cost by amount";
1249
1250        public static final Integer PERCENT_SCALE = new Integer(2);
1251        public static final Integer CAPITAL_ACCOUNT_LINE_PERCENT_SCALE = new Integer(20);
1252    }
1253
1254    public static final String CREATE_TAX_REGION_FROM_LOOKUP_PARM = "createTaxRegionFromLookup";
1255
1256    public static class OleRequisitionItem{
1257        public static final String ORDER_HOLD_QUEUE_ROLE = "OLE_ORDQU-User";
1258        public static final String ORDER_HOLD_QUEUE_ROLE_NAMESPACE          = CoreModuleNamespaces.SELECT;
1259        public static final String ORDER_HOLD_QUEUE_ASSIGN_PERMISSION = "Assign To Others";
1260        public static final String ORDER_HOLD_QUEUE_FROM_DATE_LAST_MODIFIED = "fromDateLastModified";
1261        public static final String ORDER_HOLD_QUEUE_TO_DATE_LAST_MODIFIED = "toDateLastModified";
1262        public static final String ORDER_HOLD_QUEUE_SELECTOR = "selector";
1263        public static final String ORDER_HOLD_QUEUE_EXTERNAL_REQUESTOR = "externalRequestorName";
1264        public static final String ORDER_HOLD_QUEUE_INTERNAL_REQUESTOR = "internalRequestorName";
1265        public static final String ORDER_HOLD_QUEUE_EXTERNAL_REQUESTORID = "requestorId";
1266        public static final String ORDER_HOLD_QUEUE_INTERNAL_REQUESTORID = "internalRequestorId";
1267        public static final String ORDER_HOLD_QUEUE_REQUESTOR_FNAME = "requestorFirstName";
1268        public static final String ORDER_HOLD_QUEUE_ASSIGN_OWN_REQ = "Assign own Requisition";
1269        public static final String ORDER_HOLD_QUEUE_APPROVE_REQ = "Approve REQ";
1270    }
1271
1272    public static class OleLineItemReceiving{
1273        public static final String ADD_NEW_LINE_ITEM = "Add New Line Item";
1274        public static final String LINE_ITEM_RECEIVING_NAMESPACE = CoreModuleNamespaces.SELECT;
1275        public static final String RECEIVED_STATUS = "Received";
1276        public static final String SEE_COPIES_SECTION = "See Copies Section";
1277        public static final String NOT_APPLICABLE = "N/A";
1278        public static final String NOT_RECEIVED_STATUS="Not Received";
1279
1280    }
1281
1282    public static class OlePaymentRequest{
1283        public static final String CAN_CLOSE_PO = "Close Purchase Order";
1284        public static final String PAYMENT_REQUEST_NAMESPACE = CoreModuleNamespaces.SELECT;
1285        public static final String HAS_INVOICE_TYPE = "HasInvoiceType";
1286        public static final String HAS_PREPAID_INVOICE_TYPE = "HasPrepaidInvoiceType";
1287        public static final String HAS_PAYMENT_METHOD = "HasPaymentMethod";
1288    }
1289
1290    public static class OleInvoice{
1291        public static final String INVOICE_SAVED = "Saved";
1292        public static final String CAN_CLOSE_PO = "Close Purchase Order";
1293        public static final String PAYMENT_REQUEST_NAMESPACE = CoreModuleNamespaces.SELECT;
1294        public static final String HAS_INVOICE_TYPE = "HasInvoiceType";
1295        public static final String HAS_PREPAID_INVOICE_TYPE = "HasPrepaidInvoiceType";
1296        public static final String HAS_PAYMENT_METHOD = "HasPaymentMethod";
1297    }
1298
1299    public static class OleRequisition{
1300        public static final String FIRM_TYPE_ORDERS = "Firm Type Requisition Edit";
1301        public static final String OTHER_TYPE_ORDERS = "Other Type Requisition Edit";
1302        public static final String REQUISITION_NAMESPACE      = CoreModuleNamespaces.SELECT;
1303        public static final String REQUISITION = "OLE_REQS";
1304        public static final String EDIT_OWN_DOCUMENT = "Edit Own Requisition Document";
1305        public static final String EDIT_OWN_ASSIGNED_DOCUMENT = "Edit Own Assigned Requisition Document";
1306        public static final String CREATE_BIBEDITOR = "Create BibEditor";
1307        public static final String EDIT_BIBEDITOR = "Edit BibEditor";
1308
1309    }
1310
1311    public static class OleLoadSummary{
1312        public static final String CAN_VIEW_LOAD_SUMMARY = "View Load Summary";
1313        public static final String CAN_SEARCH_LOAD_SUMMARY = "Search Load Summary";
1314        public static final String LOAD_SUMMARY_NAMESPACE  = CoreModuleNamespaces.SELECT;
1315        public static final String LOAD_SUMMARY = "OLE_LOADSUM";
1316
1317
1318    }
1319
1320    public static class Vendor{
1321        public static final String DOCUMENT_TYPE = "OLE_PVEN";
1322        public static final String VENDOR_NAMESPACE        = CoreModuleNamespaces.SELECT;
1323        public static final String BLANKET_APPROVE         = "Blanket Approve Document";
1324        public static final String VENDOR_REVIEW = "Review";
1325        public static final String VENDOR_MANAGEMENT="Management";
1326        public static final String BLANKET_APPROVE_VENDOR_DOCUMENT = "Blanket Approve Vendor Document";
1327        public static final String VENDOR_REVIEW_DOCUMENT= "Review PVEN Management";
1328        public static final String DEACTIVATE_VENDOR = "Deactivate Vendor";
1329        public static final String CREATE_VENDOR_DIVISION = "Create Vendor Division";
1330        public static final String EDIT_VENDOR_LINKING_NUM = "Edit Vendor Linking Number";
1331    }
1332
1333    public static class OlePurchaseOrder{
1334        public static final String PRINT_PURCHASE_ORDER = "Print Purchase Order";
1335        public static final String PO_NAMESPACE         = CoreModuleNamespaces.SELECT;
1336        public static final String PO_DOCUMENT_TYPE = "OLE_PO";
1337        public static final String POR_DOCUMENT_TYPE = "OLE_POR";
1338        public static final String POSP_DOCUMENT_TYPE = "OLE_POSP";
1339        public static final String POV_DOCUMENT_TYPE = "OLE_POV";
1340        public static final String EDIT_OWN_DOCUMENT = "Edit Own Requisition Document";
1341        public static final String EDIT_VOID_DOCUMENT = "Edit Void Document";
1342        public static final String EDIT_SPLIT_DOCUMENT = "Edit Split Document";
1343        public static final String EDIT_REOPEN_DOCUMENT = "Edit Reopen Document";
1344        public static final String CREATE_APO = "Create APO";
1345
1346    }
1347
1348
1349
1350
1351    public static class BibInfoBean{
1352        public static final String ITEM_AUTHOR = "author";
1353        public static final String ITEM_TITLE = "title";
1354    }
1355    public static class OrderQueue{
1356        public static final String PRINCIPAL_NAME = "document.principalName";
1357        public static final String TOTAL_PRICE = "TOTAL_PRICE";
1358        public static final String DOCUMENT_TYPE = "OLE_ORDQU";
1359        public static final String SUBMIT_ANNOTATION = "Completed from Order Hold Queue";
1360        public static final String CANCEL_ANNOTATION = "Cancelled from Order Hold Queue";
1361        public static final String APPROVE_ANNOTATION = " approved for ";
1362        public static final String CONSTANTS = "OrderQueueConstants";
1363        public static final String OBJECT_ID = "objectId";
1364        public static final String REQUISITIONS = "requisitions";
1365        public static final String CHART_CODE = "Chart Code";
1366        public static final String OBJECT_CODE = "Object Code";
1367
1368
1369        // Added for OLE-1976 Order Queue Search Enhancements Starts
1370        public static final String ORDQ_REQ_DOC_NUMBER = "requisitionDocNumber";
1371        public static final String REQ_ITM_REQ_DOC_NUMBER = "requisition.documentNumber";
1372        public static final String ORDQ_REQ_STATUS = "requisitionStatusCode";
1373        public static final String REQ_ITM_REQ_STATUS     = "requisition.documentHeader.workflowDocument.applicationDocumentStatus";
1374        public static final String ORDQ_VND_NAME = "vendorName";
1375        public static final String REQ_ITM_VND_NAME = "requisition.vendorName";
1376        public static final String ORDQ_INT_REQID = "internalRequestorId";
1377        public static final String REQ_ITM_INT_REQID = "internalRequestorId";
1378        public static final String ORDQ_EXT_REQID = "externalRequestorId";
1379        public static final String REQ_ITM_EXT_REQID = "requestorId";
1380        public static final String ORDQ_FMT_TYP_ID = "formatTypeId";
1381        public static final String REQ_ITM_FMT_TYP_ID = "formatTypeId";
1382        public static final String ORDQ_TITLE = "title";
1383        public static final String REQ_ITM_TITLE = "docData.title";
1384        public static final String ORDQ_AUTHOR = "author";
1385        public static final String REQ_ITM_AUTHOR = "docData.author";
1386        public static final String ORDQ_PUBLISHER = "publisher";
1387        public static final String REQ_ITM_PUBLISHER = "docData.publisher";
1388        public static final String ORDQ_ISBN = "isbn";
1389        public static final String REQ_ITM_ISBN = "docData.isbn";
1390        public static final String OLE_SUPER_SELECTOR = "OLE_Super-Selectors";
1391        public static final String REQ_ACCT_NUM = "sourceAccountingLines.accountNumber";
1392        public static final String ORDQ_ACCT_NUM = "accountNumber";
1393        public static final String REQ_CHART_CODE = "sourceAccountingLines.chartOfAccountsCode";
1394        public static final String ORDQ_CHART_CODE = "chartOfAccountsCode";
1395        public static final String REQ_OBJ_CODE = "sourceAccountingLines.financialObjectCode";
1396        public static final String ORDQ_OBJ_CODE = "objectCode";
1397
1398        public static final Map<String, String> getRequisitionFieldNames() {
1399            Map<String, String> requisitionFields = new HashMap<String, String>();
1400            requisitionFields.put(ORDQ_REQ_DOC_NUMBER, REQ_ITM_REQ_DOC_NUMBER);
1401            // requisitionFields.put(ORDQ_REQ_STATUS, REQ_ITM_REQ_STATUS);
1402            requisitionFields.put(ORDQ_VND_NAME, REQ_ITM_VND_NAME);
1403            requisitionFields.put(ORDQ_INT_REQID, REQ_ITM_INT_REQID);
1404            requisitionFields.put(ORDQ_EXT_REQID, REQ_ITM_EXT_REQID);
1405            requisitionFields.put(ORDQ_FMT_TYP_ID, REQ_ITM_FMT_TYP_ID);
1406            requisitionFields.put(ORDQ_TITLE, REQ_ITM_TITLE);
1407            requisitionFields.put(ORDQ_AUTHOR, REQ_ITM_AUTHOR);
1408            requisitionFields.put(ORDQ_ACCT_NUM, REQ_ACCT_NUM);
1409            requisitionFields.put(ORDQ_CHART_CODE, REQ_CHART_CODE);
1410            requisitionFields.put(ORDQ_OBJ_CODE, REQ_OBJ_CODE);
1411            requisitionFields.put(ORDQ_PUBLISHER, REQ_ITM_PUBLISHER);
1412            requisitionFields.put(ORDQ_ISBN, REQ_ITM_ISBN);
1413            return Collections.unmodifiableMap(requisitionFields);
1414        }
1415
1416        public static final Map<String, String> REQUISITION_FIELDS = getRequisitionFieldNames();
1417        public static final String selectorField = "selectorUserId";
1418        public static final String workflowStatusChangeDateFrom = "workflowStatusChangeDateFrom";
1419        public static final String workflowStatusChangeDateTo = "workflowStatusChangeDateTo";
1420        // Added for OLE-1976 Order Queue Search Enhancements Ends
1421    }
1422
1423    public static final String DOCSTORE_URL_KEY = "ole.docstore.url";
1424    public static final String DOCSTORE_URL_KEY_FOR_POS = "docstore.url";
1425    public static final String DOCSTORE_APP_URL_KEY = "ole.docstoreapp.url";
1426    public static final String DOCSTORE_VIEW_URL_KEY = "ole.docstoreviewapp.url";
1427    public static final String BIBEDITOR_URL_KEY = "ole.bibeditor.url";
1428    public static final String DUBLINEDITOR_URL_KEY = "ole.dublineditor.url";
1429    public static final String INSTANCEEDITOR_URL_KEY                          = "ole.instanceEditor.url";
1430    public static final String BIBEDITOR_CREATE_URL_KEY = "ole.bibeditor.create.url";
1431    public static final String BIBEDITOR_SEARCH_URL_KEY = "ole.bibsearch.url";
1432    public static final String DOCSEARCH_URL_KEY = "ole.docsearch.url";
1433    public static final String DOCSEARCH_APP_URL_KEY = "ole.docsearch.app.url";
1434    public static final String DOCSTORE_APP_CONTENT_TYPE_KEY = "ole.docstoreapp.contenttype";
1435    public static final String DOCSTORE_APP_CHARSET_CONTENT_TYPE_KEY = "ole.docstoreapp.charset.contenttyp";
1436    public static final String DOCSTORE_APP_POST_DATA_KEY = "ole.docstoreapp.postdata";
1437    public static final String DOCSTORE_APP_POST_DATA_EDIT_KEY = "ole.docstoreapp.edit.postdata";
1438    public static final String DOCSTORE_APP_POST_DATA_DELETE_KEY = "ole.docstoreapp.delete.postdata";
1439    public static final String DOCSTORE_FILE_KEY = "ole.docstore.file";
1440    public static final String DOCSEARCH_ORDERQUEUE_LIMIT_KEY = "orderqueue.docsearch.maxLimit";
1441    public static final String SPECIAL_CONDITIONS_NOTE = "Special Conditions Note";
1442    public static final String SPECIAL_PROCESSING_INSTRUCTION_NOTE = "Special Processing Instruction Note";
1443    public static final String PR_LOOKUP_ACTION = "prlookup.do";
1444    public static final String BIB_LOOKUP_ACTION = "bibLookUp.do";
1445    public static final String MANUAL_INGEST_DOCUMENT_DESCRIPTION = "YBP_Firm_Ingest";
1446    public static final String DOCUMENT_DESCRIPTION = "YBP";
1447    public static final String ORDER_TYPE="Firm";
1448
1449    public static final String DOCSEARCH_LIMIT_KEY = "docsearch.noOfRows";
1450
1451    public static final String INSTANCE_MARC_XML_STRING= "<instanceCollection>\n" +
1452            "  <instance>\n" +
1453            "   <instanceIdentifier></instanceIdentifier>\n" +
1454            "    <oleHoldings primary=\"true\">\n" +
1455            "       <holdingsIdentifier></holdingsIdentifier>\n" +
1456            "       <receiptStatus></receiptStatus>\n" +
1457            "       <uri></uri>\n" +
1458            "       <note type=\"public\"></note>\n" +
1459            "       <location primary=\"true\" status=\"permanent\">\n" +
1460            "        <locationLevel>\n" +
1461            "          <name></name>\n" +
1462            "          <level></level>\n" +
1463            "          <locationLevel>\n" +
1464            "              <name></name>\n" +
1465            "              <level></level>\n" +
1466            "              <locationLevel>\n" +
1467            "                 <name></name>\n" +
1468            "                 <level></level>\n" +
1469            "                 <locationLevel>\n" +
1470            "                     <name></name>\n" +
1471            "                     <level></level>\n" +
1472            "                 </locationLevel>\n" +
1473            "              </locationLevel>\n" +
1474            "           </locationLevel>\n" +
1475            "        </locationLevel>\n" +
1476            "      </location>\n" +
1477            "      <extension>\n" +
1478            "        <additionalAttributes>\n" +
1479            "          <createdBy></createdBy>\n" +
1480            "          <dateEntered></dateEntered>\n" +
1481            "        </additionalAttributes>\n" +
1482            "      </extension>\n" +
1483            "      <callNumber>\n" +
1484            "        <type></type>\n" +
1485            "        <prefix></prefix>\n" +
1486            "        <number></number>\n" +
1487            "        <shelvingScheme>\n" +
1488            "          <codeValue></codeValue>\n" +
1489            "        </shelvingScheme>\n" +
1490            "        <shelvingOrder>\n" +
1491            "          <codeValue></codeValue>\n" +
1492            "        </shelvingOrder>\n" +
1493            "      </callNumber>\n" +
1494            "    </oleHoldings>\n" +
1495            "    <items>\n" +
1496            "      <item>\n" +
1497            "        <staffOnlyFlag>false</staffOnlyFlag>\n" +
1498            "        <fastAddFlag>false</fastAddFlag>\n" +
1499            "        <extension reference=\"../../../oleHoldings/extension\"/>\n" +
1500            "      </item>\n" +
1501            "    </items>\n" +
1502            "  </instance>\n" +
1503            "</instanceCollection>"  ;
1504
1505
1506    public static final String BIB_CATEGORY_WORK = "work";
1507    public static final String BIB_TYPE_BIBLIOGRAPHY = "bibliographic";
1508    public static final String BIB_TYPE_INSTANCE = "instance";
1509    public static final String BIB_FORMAT_MARC = "marc";
1510    public static final String BIB_FORMAT_OLEML = "oleml";
1511    public static final String ITEM_DOC_TYPE                                   = "item";
1512    public static final String HOLDING_DOC_TYPE                                = "holdings";
1513    public static final String NEW_ITEM_ID                                     = "NEW_ITEM";
1514    public static final String INGEST_OPERATION                                = "ingest";
1515
1516    public static final String PRORATE_BY_QTY = "QTY";
1517    public static final String PRORATE_BY_DOLLAR = "DOLLAR";
1518    public static final String MANUAL_PRORATE = "MANUAL";
1519    public static final String NO_PRORATE = "NO_PRORATE";
1520    public static final String DEFAULT_PRORATE_BY_INVOICE = "DOLLAR";
1521    public static final String RCV_LN_ITM_IDN = "receivingLineItemIdentifier";
1522    public static final String LN_ITM_IDN= "itemIdentifier";
1523
1524    public static final String YEAR_END_ACCOUNTING_PERIOD_EDIT_PERMISSION = "Edit Accounting Period";
1525    public static final String YEAR_END_ACCOUNTING_PERIOD_VIEW_PERMISSION = "View Accounting Period";
1526    public static final String YEAR_END_ACCOUNTING_PERIOD_EDIT_DOCUMENT_ACTION = "AccountingPeriodEditAction";
1527    public static final String YEAR_END_ACCOUNTING_PERIOD_VIEW_DOCUMENT_ACTION = "AccountingPeriodViewAction";
1528
1529    public static class LicenseRequest{
1530        public static final String CANCEL_ANNOTATION = "Cancelled from License Request";
1531        public static final String APPROVE_ANNOTATION = " approved for ";
1532        public static final String REQUISITIONS = "requisitions";
1533        public static final String REQUISITIONS_DOC_NUMBER = "documentNumber";
1534
1535    }
1536
1537    public static final String REQ_SRC_CD = "STAN";
1538    public static final String OLE_FS_KEYSTORE_FILE_PROPERTY = "keystore.file";
1539    public static final String OLE_FS_DEFAULT_KEYSTORE_FILE_LOCATION_PROPERTY = "keystore.file.default";
1540    public static final String ORD_TYPE_FIRM_FIX = "Firm, Fixed";
1541    public static final String ITEM = "ITEM";
1542    public static final String APPROVAL = "Approval";
1543    public static final String FIRM_MUL_PART = "Firm (multi part)";
1544
1545    public static final String OVER = "Over";
1546    public static final String UNDER = "Under";
1547    public static final String NONE = "None";
1548    public static final String PERCENTAGE = "%";
1549    public static final String HASH = "#";
1550
1551    public static final String NOTES_TAB_ERROR= "document.oleFinancialNotes";
1552
1553    public static final String HAS_VENDOR_DEPOSIT_ACCOUNT = "HasVendorDepositAccount";
1554    public static final String CLEARING_ACCOUNT_CODE = "CLRREV";
1555    public static final String OLE_PREPAYMENT = "OLE_Prepayment";
1556    public static final String REQUIRES_SEPARATION_OF_DUTIES= "RequiresSeparationOfDutiesReview";
1557    public static final String OLE_FUND_LOOKUP = "oleFundLookup.do";
1558    public static final int START_INDEX = 24;
1559    public static final int END_INDEX = 28;
1560    public static final String BAL_TYP_CD = "CB";
1561    public static final String FIN_DOC_STS_CD="R";
1562    public static final String FIN_DOC_STS_APP_CD                             = "A";
1563    public static final String ERROR_MSG_FOR_INSUFF_FUND                      = "insuff.fund.preq";
1564    public static final String INSUFF_FUND                                    = "Insufficient fund to continue PREQ for this account number ";
1565
1566    public static class Account {
1567        public static final String ACCOUNT_NAMESPACE            = CoreModuleNamespaces.SELECT;
1568        public static final String ACCOUNT_RESTRICTIONS= "Edit Restriction";
1569        public static final String ACCOUNT_SUFFICIENT_FUND = "Edit Sufficient fund check";
1570        public static final String ACCOUNT_RESTRICTED_STATUS_CD = "accountRestrictedStatusCode";
1571        public static final String ACCOUNT_SUFFICIENT_FUND_CODE = "accountSufficientFundsCode";
1572        public static final String UPLOAD_BUDGET = "Upload Budget";
1573        public static final String LABOR_BENEFIT_RATE_CATEGORY_CODE = "--";
1574
1575    }
1576
1577    public static final String ERROR_AMOUNT          = "error.amount";
1578    public static final String ACCOUNT_NEW_SRC_LINE  = "newSourceLine";
1579    public static final String ACCOUNT_NEW_TRGT_LINE = "newTargetLine";
1580
1581
1582    // Added for Jira OLE-1900 Starts
1583
1584    public static final String ITEM_LOCATION_REQUIRED = "error.itemLocation.required";
1585
1586    public static final String ITEM_COPIESANDPARTS_SHOULDNOT_BE_GREATERTHAN_ONE_EINSTANCE = "item.Copiesandparts.shouldnot.be.greatethanone.einstance";
1587
1588    public static final String PART_ENUMERATION_COPY   = "ole.partEnumeration.copy";
1589
1590    public static final String PART_ENUMERATION_VOLUME = "ole.partEnumeration.volume";
1591
1592    public static final String ITEM_COPIES_ITEMCOPIES_GREATERTHAN_ITEMCOPIESORDERED = "item.copies.itemCopies.greatethan.itemCopiesOrdered";
1593
1594    public static final String TOTAL_OF_ITEM_COPIES_ITEMCOPIES_GREATERTHAN_ITEMCOPIESORDERED = "total.of.item.copies.itemCopies.greatethan.itemCopiesOrdered";
1595
1596    public static final String ITEM_STARTINGCOPYNUMBER_SHOULDNOT_BE_GREATERTHAN_ITEMCOPIESORDERED                            = "item.copies.startingCopyNumber.shouldnot.be.greatethan.itemCopiesOrdered";
1597
1598    public static final String ADDITION_OF_ITEM_STARTINGCOPYNUMBER_AND_ITEMCOPIES_SHOULDNOT_BE_GREATERTHAN_ITEMCOPIESORDERED = "addition.of.item.startingCopyNumber.and.item.itemcopies.shouldnot.be.greatethan.itemCopiesOrdered";
1599
1600    public static final String ITEM_ITEMCOPIES_OR_LOCATIONCOPIES_SHOULDNOT_BE_NULL                                           = "item.itemCopies.or.locationCopies.shouldnot.be.null";
1601
1602    public static final String ADD_COPIES_AT_LINE_ITEM_WHEN_COPIESORDERED_AND_PARTSORDERED_GREATERTHAN_1                     = "add.copies.at.lineItem.when.copiesOrdered.and.partsOrdered.greaterThan.1";
1603
1604    public static final String TOTAL_OF_ITEMCOPIES_SHOULDNOT_BE_LESSTHAN_ITEMQUANTITY                                        = "total.of.itemcopies.shouldnot.be.lessthan.itemQuantity";
1605
1606    public static final String LOCATION_LEVEL_CODE_INSTITUTION                                                               = "Institution";
1607
1608    public static final String LOCATION_LEVEL_CODE_LIBRARY                                                                   = "Library";
1609
1610    public static final String LOCATION_LEVEL_CODE_CAMPUS                                                                    = "Campus";
1611
1612    public static final String LOCATION_PRIMARY                                                                              = "true";
1613
1614    public static final String LOCATION_STATUS                                                                               = "temporary";
1615
1616    public static final String OLE_DOCSTORE_RESTFUL_URL                                                                      = "ole.docstore.restful.url";
1617
1618    public static final String IDENTIFIER_TYPE                                                                               = "identifierType";
1619
1620    public static final String UUID                                                                                          = "UUID";
1621
1622    public static final String OPERATION                                                                                     = "operation";
1623
1624    public static final String DELETE                                                                                        = "delete";
1625
1626    public static final String DOC_CATEGORY                                                                                  = "docCategory";
1627
1628    public static final String DOC_TYPE                                                                                      = "docType";
1629
1630    public static final String DOC_FORMAT                                                                                    = "docFormat";
1631
1632    public static final String PO_RECEIPT_STATUS_PARTIALLY_RECEIVED                                                          = "PR";
1633
1634    public static final String PO_RECEIPT_STATUS_FULLY_RECEIVED                                                              = "FR";
1635
1636    public static final String PO_RECEIPT_STATUS_NOT_RECEIVED                                                                = "NR";
1637
1638    public static final String DOC_NUMBER                                                                                    = "documentNumber";
1639
1640    public static final String RCPT_STATUS_CD                                                                                = "receiptStatusCd";
1641
1642    public static final String PO_IDNTFR                                                                                     = "purchaseOrderIdentifier";
1643
1644    public static final String RCPT_STS_DOC_TYP                                                                              = "receiptStatusDocType";
1645
1646    public static final String RCV_RCPT_STS_DOC_TYP                                                                          = "RCV";
1647
1648    public static final String RCV_RECEIPT_STATUS_RCVD                                                                       = "RCVD";
1649
1650    public static final String RCV_RECEIPT_STATUS_EXPTD                                                                      = "EXP";
1651
1652    public static final String RCV_RECEIPT_STATUS_NONE                                                                       = "NON";
1653
1654    public static final String COMMA_TO_SEPARATE_ENUMERATION                                                                 = ", ";
1655
1656    public static final String DOT_TO_SEPARATE_COPIES_PARTS                                                                  = ".";
1657
1658    // Added for Jira OLE-1900 Ends
1659
1660    public static final String VOLUME_NUMBER_VALIDATIONS                                                                     = "error.volumeNumber.validations";
1661
1662    public static final String VOLUME_NUMBER_REGEX_VALIDATIONS                                                               = "error.volumeNumber.regex.validations";
1663
1664    public static final String VOLUME_NUMBER_PATTERN                                                                         = "^([0-9]+,?)+$";
1665
1666    public static final String USER_ID                                                                                       = "userId";
1667
1668    public static class OlePersonRequestorLookupable {
1669        public static final String FIRST_NAME = "firstName";
1670        public static final String LAST_NAME  = "lastName";
1671        public static final String EMAIL      = "email";
1672        public static final String EMAIL_ADDRESS     = "emailAddress";
1673        public static final String PHONE_NUMBER      = "phoneNumber";
1674        public static final String ID           = "id";
1675        public static final String REQUESTOR_TYPE_ID = "requestorTypeId";
1676        public static final String REF_KRIM_ID       = "refKrimId";
1677        public static final String PRINCIPAL_ID      = "principalId";
1678        public static final String REQUESTOR_FIRST_NAME = "requestorFirstName";
1679        public static final String REQUESTOR_LAST_NAME  = "requestorLastName";
1680        public static final String REQUESTOR_EMAIL      = "requestorEmail";
1681        public static final String REQUESTOR_PHONE_NUMBER = "requestorPhoneNumber";
1682        public static final String REQUESTOR_ID           = "requestorId";
1683        public static final String NULLSTRING = "null";
1684        public static final String EMPTY = "";
1685    }
1686
1687    public static final String ACCOUNT_FUND_CODE = "A";
1688
1689    public static final String OBJECT_FUND_CODE  = "O";
1690
1691    public static final int    DATE_START_INDEX  = 6;
1692
1693    public static final int    DATE_END_INDEX    = 10;
1694
1695    public static final String BLOCK_USR_KEY     = "block_user";
1696    public static final String BLOCK_USR_VAL     = "Block User";
1697    public static final String WAR_USR_KEY       = "warning";
1698    public static final String WAR_USR_VAL       = "Warning";
1699    public static final String NOT_USR_KEY       = "notification";
1700    public static final String NOT_USR_VAL       = "Notification";
1701    public static final String ROU_USR_KEY       = "routing";
1702    public static final String ROU_USR_VAL       = "Routing";
1703    public static final String ACC_NUM           = "Account number ";
1704    public static final String EXC_BUD_AMT       = " exceeds budget amount";
1705    public static final String ITM_TYP_CD        = "ITEM";
1706    public static final String ITM_TYP_CD_KEY    = "itemTypeCode";
1707    public static final String PUR_AP_IDEN       = "purapDocumentIdentifier";
1708
1709    public static class SufficientFundCheck {
1710        public static String       REQUISITION_SFC_CHECKING        = "message.requisition.sfc.checking";
1711        public static String       INVOICE_SFC_CHECKING             = "message.invoice.sfc.checking";
1712        public static String       REQUISITION_SFC_CHECKING_STRING = "Sufficient Fund Check";
1713        public static final String ERROR_MSG_FOR_INSUFF_FUND       = "insuff.fund.req";
1714        public static final String INSUFF_FUND_REQ                 = "Insufficient fund to continue Requisition for this account number ";
1715        public static final String INSUFF_FUND_INV                 = "Insufficient fund to continue Invoice for this account number ";
1716        public static final String DATE_FORMAT                     = "MM/dd/yyyy";
1717        public static final String REQ_NOTE                        = "Routed this document to budget approval due to insufficient fund";
1718        public static final String PO_NOTE                         = "Routed this document to budget approval due to insufficient fund";
1719        public static final String POA_NOTE                        = "Routed this document to budget approval due to insufficient fund";
1720        public static final String PREQ_NOTE                       = "Routed this document to budget approval due to insufficient fund";
1721        public static final String INV_NOTE                        = "Routed this document to budget approval due to insufficient fund";
1722        public static final String INSUFF_FUND_POA                 = "Insufficient fund to continue POA for this account number ";
1723        public static final String FYI_NOTE                        = "Sent FYI to budget reviewer due to insufficient fund";
1724
1725    }
1726
1727    public static class OleCopy {
1728        public static final String BIB_ID = "bibId";
1729        public static final String LOC = "location";
1730        public static final String INSTANCE_ID = "instanceId";
1731        public static final String REQ_ITM_ID = "reqItemId";
1732        public static final String PO_DOC_NUM = "poDocNum";
1733        public static final String PO_ITM_ID = "poItemId";
1734        public static final String COPY_NUM = "copyNumber";
1735        public static final String COPY_ID = "copyId";
1736
1737
1738    }
1739    public static class InvoiceDocument {
1740        public static final String VENDOR_HEADER_IDENTIFIER="vendorHeaderGeneratedIdentifier";
1741        public static final String VENDOR_DETAIL_IDENTIFIER="vendorDetailAssignedIdentifier";
1742        public static final String VENDOR_NUMBER="vendorNumber";
1743        public static final String TITLE="title";
1744        public static final String AUTHOR="author";
1745        public static final String ISBN="isbn";
1746        public static final String VENDOR_NAME="vendorName";
1747        public static final String INVOICE_DOCUMENT_NUMBER = "documentNumber";
1748        public static final String INVOICE_PURAP_DOCUMENT_IDENTIFIER = "purapDocumentIdentifier";
1749        public static final String FDOC_NBR = "FDOC_NBR";
1750        public static final String PO_ID = "PO_ID";
1751        public static final String CMPNT_CD = "Invoice";
1752        public static final String VENDOR_NOT_FOUND = "Vendor not selected";
1753        public static final String ERROR_SELECT_INVOICE_ITEM = "error.select.invoiceItem";
1754        public static final String ERROR_DUPLICATE_INVOICE_DATE_NUMBER_VND = "error.duplicate.invoice.date.number";
1755        public static final String INVOICE_NUMBER = "invoiceNumber";
1756        public static final String INVOICE_DATE = "invoiceDate";
1757        public static final String VENDOR_GENERATED_IDENTIFIER = "vendorHeaderGeneratedIdentifier";
1758        public static final String VENDOR_DETAIL_ASSIGNED_GENERATED_IDENTIFIER = "vendorDetailAssignedIdentifier";
1759        public static final String INVOICE_DOCUMENT_INITIATED="Initiated";
1760        public static final String INVOICE_DOCUMENT_STATUS_IND="purchaseOrderCurrentIndicator";
1761        public static final String INVOICE_IDENTIFIER = "invoiceIdentifier";
1762        public static final List<String> getItemtypeCodes() {
1763            List<String> itemTypeCodes = new ArrayList<String>();
1764            itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_FREIGHT_CODE);
1765            itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_SHIP_AND_HAND_CODE);
1766            itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_MIN_ORDER_CODE);
1767            itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_MISC_CODE);
1768            return Collections.unmodifiableList(itemTypeCodes);
1769        }
1770    }
1771
1772    public static final String VENDOR_NOT_FOUND = "error.vendor.notFound";
1773    public static final String NO_VENDOR = "error.no.vendor";
1774    public static final String NO_ACC_LINE = "error.no.acc.line";
1775    public static final String NO_ADD_ACC_LINE = "error.no.add.acc.line";
1776    public static final String NO_RECEIVING_ADDR = "error.no.recv.addr";
1777    public static final String NO_DELIVERY_ADDR = "error.no.delv.addr";
1778    public static final String VENDOR_NOT_SAME = "error.vendor.notSame";
1779    public static final String VENDOR_SELECT ="error.vendor.select";
1780    public static final String REFRESH_VENDOR_CALLER = "vendorLookupable";
1781    public static final String VENDOR_HEADER_IDENTIFIER="vendorHeaderGeneratedIdentifier";
1782    public static final String VENDOR_DETAIL_IDENTIFIER="vendorDetailAssignedIdentifier";
1783    public static final String VENDOR_ALIAS_NAME="vendorAliasName";
1784    public static final String VENDOR_DETAILS="vendorDetail";
1785    public static final String VENDOR_CONTRACT="vendorContract";
1786    public static final String REFRESH_DV_VENDOR_CALLER="disbursementPayeeLookupable";
1787    public static final String SFC_INSUFF_WARN = "Insufficient Fund to continue invoice for this account number ";
1788    public static final String ERROR_RECEIVING_EXIST="error.receiving.exist";
1789    public static final String ERROR_SELECT_PO_ITM="error.select.purchaseOrderItem";
1790    public static final String ERROR_SELECT_PO_ITM_FORMAT="error.select.purchaseOrderItem.format";
1791    public static final String SUFF_FUND_CHECK = "oleSufficientFundCheck";
1792    public static final String ERROR_SELECT_EMCUM_METHOD = "error.document.encum.required";
1793    public static final String ERROR_SELECT_EMCUM_CON_TYP = "error.document.con.typ.required";
1794    public static final String ERROR_SELECT_EMCUM_AMT = "error.document.enc.amt.required";
1795    public static final String ERROR_SELECT_EXP_AMT = "error.document.exp.amt.required";
1796    public static final String ERROR_SELECT_NOT_TYP = "error.document.not.typ.required";
1797    public static final String ERROR_SELECT_INVALID_DATE = "error.document.invalid.date";
1798
1799    public static final String PATRON_ID = "olePatronId";
1800    public static final String PO_ITEM_ID = "itemIdentifier";
1801    public static final String PO_LINE_ITEM_URL = "/" + "DocHandler.do?command=displayDocSearchView&amp;docId=";
1802    public static final String INV_INSUFF_FUND = "Insufficient fund to continue invoice for this account number ";
1803
1804    public static final String TITLE_SORT = "Title_sort";
1805    public static final String TITLE_DISPLAY = "Title_display";
1806    public static final String UUID_FOR_TITLE_SORT = "uuid";
1807    public static final String ERR_MSG_FOR_ACC_LINE =" is Restricted Account";
1808    public static final String DOC_TYP_CD = "OLE_BA";
1809    public static final String FDOC_APPR_CD = "A";
1810    public static final String DOCFORMAT                                                                                    = "DocFormat";
1811
1812    public static final String INVOICE_COLLAPSE_SECTIONS_ON_PO_ADD = "COLLAPSE_SECTIONS_ON_PO_ADD";
1813    public static final String INITIAL_COLLAPSE_SECTIONS = "INITIAL_COLLAPSE_SECTIONS";
1814    public static final String OVERVIEW_SECTION= "Document Overview";
1815    public static final String VENDOR_INFO_SECTION = "Vendor Info";
1816    public static final String INVOICE_INFO_SECTION = "Invoice Info";
1817    public static final String PROCESS_TITLES_SECTION = "Process Titles";
1818    public static final String CURRENT_ITEM_SECTION= "Current Items";
1819    public static final String ADDITIONAL_CHARGES_SECTION = "Additional Charges";
1820    public static final String ACCOUNT_SUMMARY_SECTION = "Account Summary";
1821    public static final String NOTES_AND_ATTACH_SECTION = "Notes and Attachments";
1822    public static final String ADHOC_RECIPIENT_SECTION = "Ad Hoc Recipients";
1823    public static final String ROUTE_LOG_SECTION = "Route Log";
1824    public static final String DELIVERY_SECTION= "Delivery";
1825    public static final String VENDOR_SECTION= "Vendor";
1826    public static final String TITLES_SECTION= "Titles";
1827    public static final String PAYMENT_INFO_SECTION= "Payment Info";
1828    public static final String ADDITIONAL_INSTUT_SECTION= "Additional Institutional Info";
1829    public static final String RELATED_DOCUMENT_SECTION= "View Related Documents";
1830    public static final String PAYMENT_HISTORY_SECTION= "View Payment History";
1831    public static final String INVOICE_SECTION= "Invoice Info";
1832    public static final String PROCESS_ITEM_SECTION= "Process Items";
1833    public static final String GENERAL_ENTRY_SECTION= "General Ledger Pending Entries";
1834    public static final String CREDIT_MEMO_INFO_SECTION= "Credit Memo Info";
1835    public static final String ITEMS_SECTION= "Items";
1836
1837
1838    public static final String DONOR_CODE = "donorCode";
1839    public static final String OLEInvoiceView_ProcessItems_AccountingLines = "OLEInvoiceView-processItems-accountingLines_line0_line0";
1840    public static final String ERROR_CHART_CODE_REQ = "error.required.field";
1841    public static final String ERROR_ACC_NUMB_REQ = "error.required.field";
1842    public static final String ERROR_OBJECT_CODE_REQ = "error.required.field";
1843    public static final String ERROR_DONOR_CODE = "error.donor.code.doesnt.exist";
1844    public static final String DONOR_CODE_EXISTS = "error.donor.code.exist";
1845    public static final String DEPOSIT = "Deposit";
1846
1847    public static final String ERROR_REASON = "error.reason";
1848    public static final String ERROR_CANCELLATION_REASON_REQUIRED = "error.cancellation.reason.required";
1849    public static final String QUESTION_ACTION = "/oleReqPOAskQuestion.do";
1850    public static final String TRUE = "true";
1851    public static final String FALSE = "false";
1852    public static final String NON_PUBLIC = "nonPublic";
1853    public static final String NULL = "null";
1854    public static final String REQUISITION_CANCEL_NOTE_PREFIX = "Note entered while cancelling a Requisition :";
1855    public static final String CANCEL_TEXT = "document.question.cancel.text";
1856    public static final String DEFAULT_ORDER_TYPE_VALUE = "1";
1857    public static final String ASK_LOCATION_CHANGE = "document.ask.location.change";
1858    public static final String ITEM_LOCATION_CHANGE = "Item Location Change";
1859
1860    public static final String ITEM_CATEGORY = "work";
1861    public static final String ITEM_TYPE = "item";
1862    public static final String ITEM_FORMAT = "oleml";
1863    public static final String INVALID_ACQUISITION_NUMBER = "error.invalid.acquisition.number";
1864    public static final String ITEM_WITHOUT_PO = "error.invalid.item.without.po";
1865    public static final String VENDOR_CUSTOMER_NUMBER = "vendorCustomerNumber";
1866    public static final String DOCSTORE_NODE= "-";
1867
1868    public static final int ZERO = 0;
1869    public static final String PRINT = "print";
1870    public static final String ELECTRONIC = "electronic";
1871    public static final String NB_PRINT = "NB_PRINT";
1872    public static final String NB_ELECTRONIC = "NB_ELECTRONIC";
1873    public static final String EB_PRINT = "EB_PRINT";
1874    public static final String EB_ELECTRONIC = "EB_ELECTRONIC";
1875
1876    public static final String OLE_MAILER = "oleMailer";
1877    public static final String OLE_VENDOR_EMAIL_OPTION = "Email";
1878    public static final String OLE_VENDOR_PDF_OPTION = "Pdf";
1879    public static final String MAIL_SUBJECT = " Purchase Order Document";
1880    public static final String MAIL_MESSAGE_BODY = "Hi,"+"\n\n"+" Kindly find the attached Purchase Order Document.";
1881    public static final String VENDOR_TRANS_FORMAT_ID = "vendorTransmissionFormatId";
1882    public static final String VENDOR_TRANS_TYPE_ID = "vendorTransmissionTypeId";
1883    public static final String OLE_VENDOR_EDI_OPTION = "Edi";
1884    public static final String PO_ID = "poItemId";
1885    public static final String VENDOR_HDR_GEN_ID = "vendorHeaderGeneratedIdentifier";
1886    public static final String ALIAS_TYP_ID = "aliasTypeId";
1887    public static final String EXTERNAL_VNDR_CD = "External Vendor Code";
1888    public static final String PRINCIPAL_ID="principalId";
1889    public static final String   FINAL_STATUS="F";
1890    public static final String ACCOUNT_NUMBER = "accountNumber";
1891    public static final String CHART_CODE = "chartOfAccountsCode";
1892    public static final String FISCAL_YEAR = "universityFiscalYear";
1893    public static final String OBJECT_CODE = "objectCode";
1894    public static final String CHART_CODE_NOT_FOUND = "The requested Chart Code does not exist";
1895    public static final String ACC_NO_NOT_FOUND = "The requested Account Number does not exist";
1896    public static final String OBJ_CODE_NOT_FOUND = "The requested Object Code does not exist";
1897    public static final String UNIV_FIS_YR_FOUND = "No result found for requested fiscal year";
1898
1899    public static final String REQ_DESC="REQ_DESC";
1900    public static final String OPERATOR_INITIALS="{OPERATOR_INITIALS}";
1901    public static final String CURRENT_DATE_TIME="{CURRENT_DATE_TIME}";
1902    public static final String INV_DESC = "INV_DESC";
1903    public static final String LINE_ITEM_RCV_DESC = "LINE_ITEM_RCV_DESC";
1904    public static final String PREQ_DESC = "PREQ_DESC";
1905    public static final String PO_DOC_ID = "{PO_DOC_ID}";
1906    public static final String VENDOR_NAME = "{VENDOR_NAME}";
1907    public static final String ORDER_TYP = "{ORDER_TYPE}";
1908    public static final String VND_ITM_ID = "{VND_ITM_ID}";
1909    public static final String ORDER_IMPORT_REQ_DESC = "ORDER_IMPORT_REQ_DESC";
1910
1911    public static final String ANGLE_BRACKET_LESS_THAN = "<";
1912    public static final String ANGLE_BRACKET_GREATER_THAN = ">";
1913    public static final String ALL_OBJ_CD = "*ALL*";
1914    public static final String ALL = "*";
1915    public static class OleFundLookupDocument {
1916        public static final String ACC_NAME = "accountName";
1917        public static final String ORG_CODE = "organizationCode";
1918        public static final String CHART_CODE = "chartOfAccountsCode";
1919        public static final String ACC_NO = "accountNumber";
1920    }
1921
1922    public static final String VENDOR_LINK = "/kr/inquiry.do?methodToCall=start&amp;businessObjectClassName=org.kuali.ole.vnd.businessobject.VendorDetail&amp;vendorHeaderGeneratedIdentifier=";
1923    public static final String VENDOR_TYPE = "Vendor Instructions Note";
1924    public static final String NOTE_ID = "noteTypeId";
1925    public static final String DEFAULT_CONTROL_FIELDS = "######s########xxu###########000#0#eng#d";
1926    public static final String DEFAULT_LEADER = "#####nam#a22######a#4500";
1927    public static final String CURRENCY_OVERRIDE = "error.currency.override";
1928
1929
1930    public static final String CHART_PRINCIPAL_ID = "finCoaManagerPrincipalId";
1931    public static final String CHART_CONTROLLER_MAPPING = "chartMaintenanceDocument";
1932    public static Map<String, Map<String,String>> chartTransientFields = new HashMap<String, Map<String,String>>();
1933}