View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.module.cg;
17  
18  import java.util.Calendar;
19  
20  
21  /**
22   * Constants specific to the Contracts and Grants module.
23   */
24  public class CGConstants {
25      
26      public static final String CG_NAMESPACE_CODE = "OLE-CG";
27  
28      /**
29       * The key for the document error map to grab errors for the close document.
30       */
31      public static final String CLOSE_DOCUMENT_TAB_ERRORS = "document.userInitiatedCloseDate";
32      
33      public static final String SHORT_TIMESTAMP_FORMAT = "MM/dd/yyyy";
34      public static final String LONG_TIMESTAMP_FORMAT = "MM/dd/yyyy HH:mm:ss";
35  
36      public static final int maximumPeriodLengthUnits = Calendar.YEAR;
37  
38      public static final String DATABASE_TRUE_VALUE = "Y";
39  
40      public static final String DROPDOWN_LIST_SELECT = "select:";
41  
42      
43      public static final String MANUAL_BASE = "MN";
44      public static final String MODIFIED_TOTAL_DIRECT_COST = "MT";
45  
46      public static final String ORG_REVIEW_NODE_NAME = "Org Review";
47      public static final String ORG_REVIEW_TEMPLATE_NAME = "KualiResearchOrgReviewTemplate";
48  
49      // Research Risk Types
50      public static final String RESEARCH_RISK_TYPE_ALL_COLUMNS = "A";
51      public static final String RESEARCH_RISK_TYPE_SOME_COLUMNS = "S";
52      public static final String RESEARCH_RISK_TYPE_DESCRIPTION = "D";
53  
54      // Study Statuses
55      public static final String RESEARCH_RISK_STUDY_STATUS_APPROVED = "A";
56      public static final String RESEARCH_RISK_STUDY_STATUS_PENDING = "P";
57  
58      // Study Review Statuses
59      public static final String RESEARCH_RISK_STUDY_REVIEW_EXEMPT = "X";
60  
61      // Following are used in tags on Main Page.
62      public static final String SUBMISSION_TYPE_CHANGE = "SUBMISSION_TYPE_CHANGE";
63      public static final String PROJECT_TYPE_OTHER = "PROJECT_TYPE_OTHER";
64      public static final String PURPOSE_RESEARCH = "PURPOSE_RESEARCH";
65      public static final String PURPOSE_OTHER = "PURPOSE_OTHER";
66      public static final String CONTACT_PERSON_PARAM = "PERSON_ROLE_CODE_CONTACT_PERSON";
67      public static final String CO_PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_CO_PROJECT_DIRECTOR";
68      public static final String OTHER_PERSON_PARAM = "PERSON_ROLE_CODE_OTHER";
69      public static final String PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_PROJECT_DIRECTOR";
70  
71      public static final String MAXIMUM_ACCOUNT_RESPONSIBILITY_ID = "MAXIMUM_ACCOUNT_RESPONSIBILITY_ID";
72  
73      public static class CGKimApiConstants{
74          public static final String AWARD_ROUTING_NODE_NAME = "Award";
75          public static final String MANAGEMENT_ROUTING_NODE_NAME = "Management";
76          public static final String UNPROCESSED_ROUTING_NODE_NAME = "Unprocessed";
77          
78      }
79      
80      public static class SectionId{
81          public static final String PROPOSAL_RESEARCH_RISKS = "proposalResearchRisks";
82      }
83  
84  }