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.module.cg; 017 018import java.util.Calendar; 019 020 021/** 022 * Constants specific to the Contracts and Grants module. 023 */ 024public class CGConstants { 025 026 public static final String CG_NAMESPACE_CODE = "OLE-CG"; 027 028 /** 029 * The key for the document error map to grab errors for the close document. 030 */ 031 public static final String CLOSE_DOCUMENT_TAB_ERRORS = "document.userInitiatedCloseDate"; 032 033 public static final String SHORT_TIMESTAMP_FORMAT = "MM/dd/yyyy"; 034 public static final String LONG_TIMESTAMP_FORMAT = "MM/dd/yyyy HH:mm:ss"; 035 036 public static final int maximumPeriodLengthUnits = Calendar.YEAR; 037 038 public static final String DATABASE_TRUE_VALUE = "Y"; 039 040 public static final String DROPDOWN_LIST_SELECT = "select:"; 041 042 043 public static final String MANUAL_BASE = "MN"; 044 public static final String MODIFIED_TOTAL_DIRECT_COST = "MT"; 045 046 public static final String ORG_REVIEW_NODE_NAME = "Org Review"; 047 public static final String ORG_REVIEW_TEMPLATE_NAME = "KualiResearchOrgReviewTemplate"; 048 049 // Research Risk Types 050 public static final String RESEARCH_RISK_TYPE_ALL_COLUMNS = "A"; 051 public static final String RESEARCH_RISK_TYPE_SOME_COLUMNS = "S"; 052 public static final String RESEARCH_RISK_TYPE_DESCRIPTION = "D"; 053 054 // Study Statuses 055 public static final String RESEARCH_RISK_STUDY_STATUS_APPROVED = "A"; 056 public static final String RESEARCH_RISK_STUDY_STATUS_PENDING = "P"; 057 058 // Study Review Statuses 059 public static final String RESEARCH_RISK_STUDY_REVIEW_EXEMPT = "X"; 060 061 // Following are used in tags on Main Page. 062 public static final String SUBMISSION_TYPE_CHANGE = "SUBMISSION_TYPE_CHANGE"; 063 public static final String PROJECT_TYPE_OTHER = "PROJECT_TYPE_OTHER"; 064 public static final String PURPOSE_RESEARCH = "PURPOSE_RESEARCH"; 065 public static final String PURPOSE_OTHER = "PURPOSE_OTHER"; 066 public static final String CONTACT_PERSON_PARAM = "PERSON_ROLE_CODE_CONTACT_PERSON"; 067 public static final String CO_PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_CO_PROJECT_DIRECTOR"; 068 public static final String OTHER_PERSON_PARAM = "PERSON_ROLE_CODE_OTHER"; 069 public static final String PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_PROJECT_DIRECTOR"; 070 071 public static final String MAXIMUM_ACCOUNT_RESPONSIBILITY_ID = "MAXIMUM_ACCOUNT_RESPONSIBILITY_ID"; 072 073 public static class CGKimApiConstants{ 074 public static final String AWARD_ROUTING_NODE_NAME = "Award"; 075 public static final String MANAGEMENT_ROUTING_NODE_NAME = "Management"; 076 public static final String UNPROCESSED_ROUTING_NODE_NAME = "Unprocessed"; 077 078 } 079 080 public static class SectionId{ 081 public static final String PROPOSAL_RESEARCH_RISKS = "proposalResearchRisks"; 082 } 083 084}