001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali.module.kra;
017:
018: import java.util.Calendar;
019:
020: import org.kuali.core.JstlConstants;
021: import org.kuali.core.util.KualiInteger;
022:
023: public class KraConstants extends JstlConstants {
024: private static final long serialVersionUID = 5725060921632498564L;
025:
026: public static final String SHORT_TIMESTAMP_FORMAT = "MM/dd/yyyy";
027: public static final String LONG_TIMESTAMP_FORMAT = "MM/dd/yyyy HH:mm:ss";
028:
029: public static final int maximumPeriodLengthUnits = Calendar.YEAR;
030: public static final int maximumNumberOfPeriods = 20; // used on budgetPeriods.tag
031:
032: public static final int maximumNumberOfTasks = 20; // used on budgetTasks.tag
033:
034: public static final int projectDirectorRouteLevel = 1;
035:
036: public static final String SUBCONTRACTOR_CATEGORY_CODE = "SC"; // used on budgetCostShare*.tag and budgetNonpersonnel.tag
037:
038: public static final Integer TASK_SUMMATION = new Integer(0); // budgetDetailSelection.tag defines 0 as a task summation
039: public static final Integer PERIOD_SUMMATION = new Integer(0); // budgetDetailSelection.tag defines 0 as a period summation
040:
041: public static final KualiInteger PERSONNEL_MAX_PERCENTAGE = new KualiInteger(
042: 100);
043:
044: public static final String INSTITUTION_COST_SHARE_CODE = "I";
045: public static final String THIRD_PARTY_COST_SHARE_CODE = "T";
046:
047: public static final String PERMISSION_MOD_CODE = "M";
048: public static final String PERMISSION_READ_CODE = "R";
049:
050: public static final String DATABASE_TRUE_VALUE = "Y";
051:
052: public static final String QUESTION_ROUTE_DOCUMENT_TO_COMPLETE = "Completing this document will remove it from your Action List.<br/><br/> Are you sure you want to continue?";
053: public static final String PROJECT_DIRECTOR = "Project Director";
054:
055: public static final String PERIOD = "period";
056:
057: public static final String TASK = "task";
058:
059: public static final String DROPDOWN_LIST_SELECT = "select:";
060:
061: // System Parameters
062: public static final String BUDGET_PERIODS_HELP_PARAMETER_NAME = "PERIOD";
063: public static final String BUDGET_COSTSHARE_INDIRECT_HELP_PARAMETER_NAME = "INSTITUTION_COST_SHARE_INDIRECT";
064: public static final String BUDGET_OUTPUT_HELP_PARAMETER_NAME = "OUTPUT";
065: public static final String BUDGET_OVERVIEW_HELP_PARAMETER_NAME = "OVERVIEW";
066: public static final String BUDGET_NONPERSONNEL_COPY_OVER_HELP_PARAMETER_NAME = "NONPERSONNEL_COPY_OVER";
067: public static final String BUDGET_TEMPLATE_HELP_PARAMETER_NAME = "TEMPLATE";
068: public static final String BUDGET_BASE_CODE_DEFAULT_VALUE_PARAMETER_NAME = "BASE_CODE_DEFAULT_VALUE";
069: public static final String BUDGET_MANUAL_RATE_INDICATOR_DEFAULT_VALUE_PARAMETER_NAME = "MANUAL_RATE_INDICATOR_DEFAULT_VALUE";
070: public static final String BUDGET_PURPOSE_CODE_DEFAULT_VALUE_PARAMETER_NAME = "PURPOSE_CODE_DEFAULT_VALUE";
071: public static final String BUDGET_MAX_INFLATION_RATE_PARAMETER_NAME = "MAX_INFLATION_RATE";
072: public static final String PROJECT_DIRECTOR_BUDGET_PERMISSION = "PROJECT_DIRECTOR_PERMISSION";
073: public static final String PROJECT_DIRECTOR_ORG_BUDGET_PERMISSION = "PROJECT_DIRECTOR_ORG_PERMISSION";
074: public static final String COST_SHARE_ORGS_BUDGET_PERMISSION = "COST_SHARE_ORGS_BUDGET_PERMISSION";
075: public static final String BUDGET_COST_SHARE_PERMISSION_CODE = "COST_SHARE_PERMISSION_CODE";
076: public static final String DEFAULT_BUDGET_TASK_NAME = "DEFAULT_BUDGET_TASK_NAME";
077: public static final String INDIRECT_COST_MAX_MANUAL_RATE = "INDIRECT_COST_MAX_MANUAL_RATE";
078:
079: public static final String DEFAULT_APPOINTMENT_TYPE = "DEFAULT_APPOINTMENT_TYPE";
080: public static final String DEFAULT_PERSONNEL_INFLATION_RATE = "DEFAULT_PERSONNEL_INFLATION_RATE";
081: public static final String DEFAULT_NONPERSONNEL_INFLATION_RATE = "DEFAULT_NONPERSONNEL_INFLATION_RATE";
082:
083: public static final String FIRST25K_SUBCATEGORY_CODES = "FIRST25K_SUBCATEGORY_CODES";
084: public static final String NEW_PERIOD_IDENTIFIER = "NEW_PERIOD_IDENTIFIER";
085: public static final String ALLOWED_EMPLOYEE_STATUS_RULE = "EMPLOYEE_STATUSES";
086: public static final String PERIOD_IDENTIFIER = "PERIOD_IDENTIFIER";
087:
088: public static final String APPROVALS_DEFAULT_WORDING = "APPROVALS_DEFAULT_WORDING";
089: public static final String APPROVALS_INITIATOR_WORDING = "APPROVALS_INITIATOR_WORDING";
090: public static final String APPROVALS_PROJECT_DIRECTOR_WORDING = "APPROVALS_PROJECT_DIRECTOR_WORDING";
091:
092: public static final String GRADUATE_ASSISTANT_NONPERSONNEL_DESCRIPTION = "GRADUATE_ASSISTANT_NONPERSONNEL_DESCRIPTION";
093: public static final String GRADUATE_ASSISTANT_NONPERSONNEL_SUB_CATEGORY_CODE = "GRADUATE_ASSISTANT_NONPERSONNEL_SUB_CATEGORY_CODE";
094: public static final String GRADUATE_ASSISTANT_NONPERSONNEL_CATEGORY_CODE = "GRADUATE_ASSISTANT_NONPERSONNEL_CATEGORY_CODE";
095:
096: public static final String KRA_BUDGET_INDIRECT_COST_PROVIDED_SYSTEM = "INDIRECT_COST_PROVIDED_SYSTEM";
097: public static final String KRA_BUDGET_INDIRECT_COST_PROVIDED_MANUALLY = "INDIRECT_COST_PROVIDED_MANUALLY";
098: public static final String KRA_BUDGET_PERSONNEL_SUMMER_GRID_APPOINTMENT_TYPES = "PERSONNEL_SUMMER_GRID_APPOINTMENT_TYPES";
099: public static final String KRA_BUDGET_PERSONNEL_SUMMER_GRID_APPOINTMENT_TYPE = "PERSONNEL_SUMMER_GRID_APPOINTMENT_TYPE";
100: public static final String KRA_BUDGET_PERSONNEL_FULL_YEAR_APPOINTMENT_TYPES = "PERSONNEL_FULL_YEAR_APPOINTMENT_TYPES";
101: public static final String KRA_BUDGET_PERSONNEL_GRADUATE_RESEARCH_ASSISTANT_APPOINTMENT_TYPES = "PERSONNEL_GRADUATE_RESEARCH_ASSISTANT_APPOINTMENT_TYPES";
102: public static final String KRA_BUDGET_PERSONNEL_HOURLY_APPOINTMENT_TYPES = "PERSONNEL_HOURLY_APPOINTMENT_TYPES";
103: public static final String KRA_BUDGET_PERSONNEL_ACADEMIC_YEAR_APPOINTMENT_TYPE = "PERSONNEL_ACADEMIC_YEAR_APPOINTMENT_TYPE";
104: public static final String GRADUATE_ASSISTANT = "gradResAssistant";
105: public static final String HOURLY = "hourly";
106: public static final String ACADEMIC_YEAR_SUMMER = "academicYearSummer";
107: public static final String ACADEMIC_YEAR_SUMMER_ARRAY = "academicYearSummerArray";
108: public static final String FULL_YEAR = "fullYear";
109: public static final String ACADEMIC_SUMMER = "academicSummer";
110: public static final String ACADEMIC_YEAR = "academicYear";
111:
112: public static final String MAXIMUM_NUMBER_OF_PERIODS = "MAXIMUM_NUMBER_OF_PERIODS";
113: public static final String MAXIMUM_NUMBER_OF_TASKS = "MAXIMUM_NUMBER_OF_TASKS";
114: public static final String MAXIMUM_PERIOD_LENGTH = "MAXIMUM_PERIOD_LENGTH";
115: public static final String MINIMUM_NUMBER_OF_PERIODS = "MINIMUM_NUMBER_OF_PERIODS";
116: public static final String MINIMUM_NUMBER_OF_TASKS = "MINIMUM_NUMBER_OF_TASKS";
117:
118: public static final String MAXIMUM_NUMBER_MODULAR_PERIODS = "MAXIMUM_NUMBER_MODULAR_PERIODS";
119:
120: public static final String COST_SHARE_PERMISSION_CODE_OPTIONAL = "O";
121: public static final String COST_SHARE_PERMISSION_CODE_TRUE = "Y";
122:
123: public static final String TO_BE_NAMED_LABEL = "TO_BE_NAMED_LABEL";
124:
125: public static final String KRA_BUDGET_NUMBER_OF_ACADEMIC_YEAR_SUBDIVISIONS = "NUMBER_OF_ACADEMIC_YEAR_SUBDIVISIONS";
126: public static final String KRA_BUDGET_ACADEMIC_YEAR_SUBDIVISION_NAMES = "ACADEMIC_YEAR_SUBDIVISION_NAMES";
127:
128: public static final String PERSONNEL_STATUSES = "PERSONNEL_STATUSES";
129: public static final String CREATE_PROPOSAL_PROJECT_TYPES = "CREATE_PROPOSAL_PROJECT_TYPES";
130: public static final String PROJECT_TYPES = "PROJECT_TYPES";
131:
132: public static final String ROUTING_FORM_COST_SHARE_PERMISSION_CODE = "ROUTE_TO_COST_SHARE_ORGANIZATIONS_IND";
133:
134: public static final String PERSON_ROLE_CODE_CO_PROJECT_DIRECTOR = "PERSON_ROLE_CODE_CO_PROJECT_DIRECTOR";
135: public static final String PERSON_ROLE_CODE_CONTACT_PERSON = "PERSON_ROLE_CODE_CONTACT_PERSON";
136: public static final String PERSON_ROLE_CODE_OTHER = "PERSON_ROLE_CODE_OTHER";
137: public static final String PERSON_ROLE_CODE_PROJECT_DIRECTOR = "PERSON_ROLE_CODE_PROJECT_DIRECTOR";
138:
139: public static final String PROJECT_TYPE_BUDGET_REVISION_ACTIVE = "PROJECT_TYPE_BUDGET_REVISION_ACTIVE";
140: public static final String PROJECT_TYPE_BUDGET_REVISION_PENDING = "PROJECT_TYPE_BUDGET_REVISION_PENDING";
141: public static final String PROJECT_TYPE_NEW = "PROJECT_TYPE_NEW";
142:
143: // Research Risks codes (system param names)
144: public static final String RESEARCH_RISKS_HUMAN_SUBJECTS_ACTIVE_CODE = "RESEARCH_RISKS_HUMAN_SUBJECTS_ACTIVE_CODE";
145: public static final String RESEARCH_RISKS_ANIMALS_ACTIVE_CODE = "RESEARCH_RISKS_ANIMALS_ACTIVE_CODE";
146:
147: public static final String MANUAL_BASE = "MN";
148: public static final String MODIFIED_TOTAL_DIRECT_COST = "MT";
149:
150: public static final String PROJECT_DIRECTOR_REVIEW_NODE_NAME = "Project Director";
151: public static final String PROJECT_DIRECTOR_TEMPLATE_NAME = "KualiRoutingFormProjectDirectorTemplate";
152: public static final String ADHOC_REVIEW_NODE_NAME = "Adhoc Approvers";
153: public static final String ADHOC_REVIEW_TEMPLATE_NAME = "KualiResearchAdhocApproverTemplate";
154: public static final String ORG_REVIEW_NODE_NAME = "Org Review";
155: public static final String ORG_REVIEW_TEMPLATE_NAME = "KualiResearchOrgReviewTemplate";
156:
157: // UI Header Tab names
158: public static final String PARAMETERS_HEADER_TAB = "Parameters";
159: public static final String OVERVIEW_HEADER_TAB = "Overview";
160: public static final String PERSONNEL_HEADER_TAB = "Personnel";
161: public static final String NONPERSONNEL_HEADER_TAB = "Nonpersonnel";
162: public static final String COST_SHARE_HEADER_TAB = "Cost Share";
163: public static final String MODULAR_HEADER_TAB = "Modular";
164: public static final String INDIRECT_COST_HEADER_TAB = "Indirect Cost";
165: public static final String PERMISSIONS_HEADER_TAB = "Permissions";
166: public static final String OUTPUT_HEADER_TAB = "Output";
167: public static final String TEMPLATE_HEADER_TAB = "Template";
168: public static final String AUDIT_MODE_HEADER_TAB = "Audit Mode";
169: public static final String NOTES_HEADER_TAB = "Notes";
170:
171: public static final String DELETE_PERIOD_QUESTION_ID = "DeletePeriodQuestion";
172: public static final String DELETE_TASK_QUESTION_ID = "DeleteTaskQuestion";
173: public static final String DELETE_COST_SHARE_QUESTION_ID = "DeleteCostShareQuestion";
174:
175: // Research Risk Types
176: public static final String RESEARCH_RISK_TYPE_ALL_COLUMNS = "A";
177: public static final String RESEARCH_RISK_TYPE_SOME_COLUMNS = "S";
178: public static final String RESEARCH_RISK_TYPE_DESCRIPTION = "D";
179:
180: // Study Statuses
181: public static final String RESEARCH_RISK_STUDY_STATUS_APPROVED = "A";
182: public static final String RESEARCH_RISK_STUDY_STATUS_PENDING = "P";
183:
184: // Study Review Statuses
185: public static final String RESEARCH_RISK_STUDY_REVIEW_EXEMPT = "X";
186:
187: // Following are used in tags on Main Page.
188: public static final String SUBMISSION_TYPE_CHANGE = "SUBMISSION_TYPE_CHANGE";
189: public static final String PROJECT_TYPE_OTHER = "PROJECT_TYPE_OTHER";
190: public static final String PURPOSE_RESEARCH = "PURPOSE_RESEARCH";
191: public static final String PURPOSE_OTHER = "PURPOSE_OTHER";
192: public static final String PROJECT_TYPE_TIME_EXTENTION = "PROJECT_TYPE_TIME_EXTENTION";
193: public static final String CONTACT_PERSON_PARAM = "PERSON_ROLE_CODE_CONTACT_PERSON";
194: public static final String CO_PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_CO_PROJECT_DIRECTOR";
195: public static final String OTHER_PERSON_PARAM = "PERSON_ROLE_CODE_OTHER";
196: public static final String PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_PROJECT_DIRECTOR";
197:
198: // Role Codes
199: public static final String PROJECT_DIRECTOR_CODE = "P";
200: public static final String CO_PROJECT_DIRECTOR_CODE = "C";
201: public static final String CONTACT_PERSON_ADMINISTRATIVE_CODE = "M";
202: public static final String CONTACT_PERSON_PROPOSAL_CODE = "N";
203:
204: // Ad hoc types
205: public static final String AD_HOC_PERMISSION = "P";
206: public static final String AD_HOC_APPROVER = "A";
207:
208: // XSLT Stylesheet (Output)
209: public static final String OUTPUT_PATH_PREFIX = "OUTPUT_PATH_PREFIX";
210:
211: public static final String OUTPUT_XSL_FILENAME = "OUTPUT_XSL_FILENAME";
212:
213: public static final String OUTPUT_GENERIC_BY_PERIOD_XSL_FILENAME = "OUTPUT_GENERIC_BY_PERIOD_XSL_FILENAME";
214: public static final String OUTPUT_GENERIC_BY_TASK_XSL_FILENAME = "OUTPUT_GENERIC_BY_TASK_XSL_FILENAME";
215: public static final String OUTPUT_NIH_MODULAR_XSL_FILENAME = "OUTPUT_NIH_MODULAR_XSL_FILENAME";
216: public static final String OUTPUT_NIH2590_XSL_FILENAME = "OUTPUT_NIH2590_XSL_FILENAME";
217: public static final String OUTPUT_NIH398_XSL_FILENAME = "OUTPUT_NIH398_XSL_FILENAME";
218: public static final String OUTPUT_NSF_SUMMARY_XSL_FILENAME = "OUTPUT_NSF_SUMMARY_XSL_FILENAME";
219: public static final String OUTPUT_SF424_XSL_FILENAME = "OUTPUT_SF424_XSL_FILENAME";
220:
221: public static class AuthorizationConstants
222: extends
223: org.kuali.core.authorization.AuthorizationConstants.EditMode {
224: public static final String BUDGET_LINKED = "budgetLinked";
225: }
226: }
|