View Javadoc

1   package org.kuali.student.enrollment.class2.courseoffering.util;
2   
3   /**
4    * Created by IntelliJ IDEA.
5    * User: huangb
6    * Date: 5/10/12
7    * Time: 1:51 PM
8    * To change this template use File | Settings | File Templates.
9    */
10  public class CourseOfferingConstants {
11  
12      //  Keys for features which are institutionally configurable via config file params
13      public final static String CONFIG_PARAM_KEY_SELECTIVE_CROSSLISTING = "kuali.ks.enrollment.edit_co.options.selective_crosslisting_allowed";
14      public final static String CONFIG_PARAM_KEY_EDIT_ACTIVITY_CODE = "kuali.ks.enrollment.edit_ao.options.edit_activity_offering_code_allowed";
15      public final static String CONFIG_PARAM_KEY_SCHOC_AO_STATES = "kuali.ks.enrollment.schoc.options.ao_state_keys";
16      public final static String CONFIG_PARAM_KEY_SCHOC_REG_GROUP_STATES = "kuali.ks.enrollment.schoc.options.reggroup_state_keys";
17  
18      //Attributes defined in CourseOfferingInfo
19      public final static String COURSEOFFERING_ID = "id";
20      public final static String COURSEOFFERING_TERM_ID = "termId";
21      public final static String COURSEOFFERING_SUBJECT_AREA = "subjectArea";
22      public final static String COURSEOFFERING_SUBJECT_CODE = "subjectCode";
23      public final static String COURSEOFFERING_COURSE_OFFERING_CODE = "courseOfferingCode";
24      public final static String ATP_CODE = "atpCode";
25      public final static String ATP_ID = "atpId";
26  
27      // Attributes for Create CO
28      public final static String COURSE_ID = "courseId";
29      public final static String TARGET_TERM_ID = "targetTermId";
30      public final static String SOC_ID = "socId";
31      public final static String CREATE_COURSEOFFERING = "createCO";
32      public final static String COPY_COURSEOFFERING_PAGE = "courseOfferingCopyPage";
33  
34      // display name for 'Course' option in Grade Roster Level
35      public final static String FORMAT_OFFERING_GRADE_ROSTER_LEVEL_COURSE_DISPLAY = "Course";
36  
37      //Attributes defined in SocRolloverResultInfo
38      public final static String SOCROLLOVERRESULTINFO_ID = "id";
39      public final static String SOCROLLOVERRESULTINFO_SOURCE_TERM_ID = "sourceTermId";
40      public final static String SOCROLLOVERRESULTINFO_TARGET_TERM_ID = "targetTermId";
41  
42      //Attributes defined in SocRolloverResultItemInfo
43  
44      //Message keys
45      public static final String COURSEOFFERING_MSG_ERROR_TERMCODE_IS_REQUIRED = "error.courseOffering.manage.termcode.required";
46      public static final String COURSEOFFERING_MSG_ERROR_COURSECODE_IS_REQUIRED = "error.courseOffering.manage.coursecode.required";
47      public static final String COURSEOFFERING_MSG_ERROR_NO_TERM_IS_FOUND = "error.enroll.courseoffering.noTermIsFound";
48      public static final String COURSEOFFERING_MSG_ERROR_FOUND_MORE_THAN_ONE_TERM = "error.enroll.courseoffering.findMoreThanOneTerm";
49      public static final String COURSEOFFERING_MSG_ERROR_NO_COURSE_OFFERING_IS_FOUND = "error.enroll.courseoffering.noCourseOfferingIsFound";
50      public static final String COURSEOFFERING_MSG_ERROR_FOUND_MORE_THAN_ONE_COURSE_OFFERING = "error.enroll.courseoffering.findMoreThanOneCourseOffering";
51      public static final String COURSEOFFERING_MSG_ERROR_FOUND_NO_DRAFT_AO_SELECTED = "error.courseoffering.no.selected.AO";
52      public static final String AO_NOT_DRAFT_FOR_DELETION_ERROR = "error.courseoffering.selected.aos.notdraft";
53      public static final String COURSEOFFERING_MSG_ERROR_SELECTED_AO_TO_DELETE = "error.courseoffering.selected.AO.delete.confirmation";
54      public static final String COURSEOFFERING_MSG_ERROR_SELECTED_AO_TO_CANCEL = "error.courseoffering.selected.AO.cancel.confirmation";
55      public static final String COURSEOFFERING_MSG_ERROR_SELECTED_AO_TO_SUSPEND = "error.courseoffering.selected.AO.suspend.confirmation";
56      public static final String COURSEOFFERING_MSG_ERROR_SELECTED_AO_TO_REINSTATE = "error.courseoffering.selected.AO.reinstate.confirmation";
57      public static final String COURSEOFFERING_MSG_WARNING_FINALEXAMTYPE_DIFF_CM = "error.courseoffering.finalexam.type.warning";
58  
59      public static final String COURSEOFFERING_INVALID_STATE_FOR_DELETE = "error.enroll.courseoffering.delete.invalid.state";
60      public static final String COURSEOFFERING_INVALID_STATE_FOR_CANCEL = "error.enroll.courseoffering.cancel.invalid.state";
61      public static final String COURSEOFFERING_INVALID_AO_STATE_FOR_DELETE = "error.enroll.courseoffering.delete.invalid.ao.state";
62      public static final String COURSEOFFERING_WITH_AO_DRAFT_APPROVED_ONLY = "error.courseoffering.aodraftonlyapproved";
63      public static final String COURSEOFFERING_WITH_AO_ORG_APPROVED_ONLY = "error.courseoffering.aoorgonlyapproved";
64      public static final String COURSEOFFERING_NONE_APPROVED = "error.courseoffering.noCOsApproved";
65      public static final String COURSE_OFFERING_STATE_CHANGE_ERROR = "error.courseoffering.statechange";
66      public static final String NO_AOS_SELECTED = "error.courseoffering.selected.aos.none";
67      public static final String COURSEOFFERING_NONE_SELECTED = "error.courseoffering.selected.none";
68  
69      public static final String COURSEOFFERING_APPROVE_FOR_SCHEDULING_NO_AOS_UPDATED = "error.courseoffering.manage_aos.approve_for_scheduling.no_aos_updated";
70      public static final String COURSEOFFERING_APPROVE_FOR_SCHEDULING_SOME_AOS_UPDATED = "error.courseoffering.manage_aos.approve_for_scheduling.some_aos_updated";
71      public static final String COURSEOFFERING_SET_TO_DRAFT_NO_AOS_UPDATED = "error.courseoffering.manage_aos.set_to_draft.no_aos_updated";
72      public static final String COURSEOFFERING_SET_TO_DRAFT_SOME_AOS_UPATED = "error.courseoffering.manage_aos.set_to_draft.some_aos_updated";
73  
74      public static final String REGISTRATIONGROUP_MISSING_REGGROUPS = "error.enroll.registrationgroup.missingreggroups";
75      public static final String REGISTRATIONGROUP_INVALID_REGGROUPS = "error.enroll.registrationgroup.invalidreggroups";
76      public static final String REGISTRATIONGROUP_INCOMPLETE_AOSET = "error.enroll.registrationgroup.aosetnotcomplete";
77  
78      public static final String CLUSTER_RENAME_SUCCESS = "info.rg.enroll.cluster.renamed";
79      public static final String CLUSTER_CREATE_SUCCESS = "info.rg.enroll.cluster.created";
80  
81      public static final String ACTIVITY_OFFERING_SCHEDULING_ACTION = "Scheduling";
82      public static final String ACTIVITY_OFFERING_DRAFT_ACTION = "Draft";
83      public static final String ACTIVITY_OFFERING_DELETE_ACTION = "Delete";
84  
85      public static final String MANAGE_AO_PAGE = "manageActivityOfferingsPage";
86      public static final String MANAGE_CO_PAGE = "manageCourseOfferingsPage";
87      public static final String MANAGE_CO_LIST_SECTION = "KS-CourseOfferingManagement-CourseOfferingResultSection";
88      public static final String CO_DELETE_CONFIRM_PAGE = "coDeleteConfirmationPage";
89      public static final String CO_CANCEL_CONFIRM_PAGE = "coCancelConfirmationPage";
90      public static final String AO_DELETE_CONFIRM_PAGE = "selectedAoDeleteConfirmationPage";
91      public static final String AO_CSR_CONFIRM_PAGE = "selectedAOCSRConfirmationPage";
92      public static final String REG_GROUP_PAGE = "manageRegistrationGroupsPage";
93      public static final String COPY_CO_PAGE = "copyCourseOfferingPage";
94      public static final String SEARCH_PAGE = "searchInputPage";
95      public static final String SEARCH_PAGE_POC = "searchInputPagePOC";
96      public static final String SEARCH_PAGE_JSON_POC = "searchInputPageJSONPOC";
97      public static final String MANAGE_THE_CO_PAGE = "manageTheCourseOfferingPage";
98      public static final String MANAGE_ARG_CO_PAGE = "manageCourseOfferingsPage";
99      public static final String MANAGE_ARG_DELETE_CLUSTER_CONFIRM_PAGE = "ClusterDeleteConfirmationPage";
100     public static final String COURSE_OFFERING_COPY_PAGE = "courseOfferingCopyPage";
101 
102     // Create Course Offering errors
103     public static final String COURSEOFFERING_CREATE_ERROR_PARAMETER_IS_REQUIRED = "error.courseOffering.create.parameter.required";
104     public static final String COURSEOFFERING_CREATE_ERROR_MULTIPLE_COURSE_MATCHES = "error.courseOffering.create.multiple.course.matches";
105     public static final String COURSEOFFERING_CREATE_ERROR_TERM_INVALID = "error.courseOffering.create.term.invalid";
106     public static final String COURSEOFFERING_CREATE_ERROR_TERM_RESTRICTED = "error.courseOffering.create.term.restricted";
107     public static final String COURSEOFFERING_CREATE_ERROR_COURSE_RESTRICTED = "error.courseOffering.create.course.restricted";
108     public static final String COURSEOFFERING_FORMAT_REQUIRED = "error.enroll.courseoffering.formatId.required";
109     public static final String COURSEOFFERING_EXAMPERIOD_MISSING = "error.enroll.courseoffering.examperiod.missing";
110 
111 
112     // Display text
113     public static final String COURSEOFFERING_TEXT_STD_REG_OPTS_EMPTY = "None available";
114     public static final String COURSEOFFERING_TEXT_USE_FINAL_EXAM_MATRIX = "Yes";
115     public static final String COURSEOFFERING_TEXT_NOT_USE_FINAL_EXAM_MATRIX = "No";
116 
117     /**
118      * Course Offering create constants
119      */
120     public static final String COURSEOFFERING_ERROR_CREATE_DUPLICATECODE = "error.enroll.courseoffering.create.duplicatecode";
121     public static final String DELIVERY_FORMAT_SECTION_ID = "KS-Catalog-FormatOfferingSubSection";
122     public static final String DELIVERY_FORMAT_REQUIRED_ERROR = "error.courseoffering.create.deliveryformat.required";
123     public static final String JOINT_COURSE_FORMATS_DELETE_DIALOG = "jointCourseFormatsDeleteDialog";
124     public static final String COURSEOFFERING_ERROR_INVALID_PERSONNEL_ID = "error.info.enroll.courseoffering.edit.personnel.id";
125     public static final String COURSEOFFERING_ERROR_UNMATCHING_PERSONNEL_NAME = "error.info.enroll.courseoffering.edit.personnel.name";
126     public static final String COURSEOFFERING_ERROR_PERSONNEL_AFFILIATION = "error.info.enroll.courseoffering.edit.personnel.instructor_type";
127     public static final String COURSEOFFERING_ERROR_PERSONNEL_EFFORT = "error.info.enroll.courseoffering.edit.personnel.effort";
128     public static final String ERROR_INVALID_CLU_VERSION = "error.enroll.courseoffering.create.clu.version.invalid";
129     /**
130      * Course Offering Informational Constants
131      */
132     public static final String COURSEOFFERING_INFO_COPIED_SUCCESSFULLY = "info.enroll.courseoffering.copied.successful";
133     public static final String COURSEOFFERING_ROLLOVER_RELEASE_TO_DEPTS_SUCCESSFULLY = "info.enroll.courseoffering.rollover.releaseToDepts.successful";
134 
135     //JSON string root keys
136     public static final String BREADCRUMB_JSON_ROOT_KEY = "breadCrumb";
137     public static final String POPULATIONS_JSON_ROOT_KEY = "populations";
138 
139     public static final String MANAGE_CO_CONTROLLER_PATH = "courseOfferingManagement";
140     public static final String MANAGE_CO_VIEW_ID = "courseOfferingManagementView";
141 
142     //toolbar matrix -- result/warning messages
143     public static final String ACTIVITYOFFERING_TOOLBAR_DELETE="info.enroll.activityoffering.toolbar.delete";
144     public static final String ACTIVITYOFFERING_TOOLBAR_DRAFT="info.enroll.activityoffering.toolbar.draft" ;
145     public static final String ACTIVITYOFFERING_TOOLBAR_APPROVED="info.enroll.activityoffering.toolbar.approved" ;
146     public static final String ACTIVITYOFFERING_TOOLBAR_CANCEL="info.enroll.activityoffering.toolbar.cancel";
147     public static final String ACTIVITYOFFERING_TOOLBAR_SUSPEND="info.enroll.activityoffering.toolbar.suspend";
148     public static final String ACTIVITYOFFERING_TOOLBAR_REINSTATE="info.enroll.activityoffering.toolbar.reinstate";
149     public static final String COURSEOFFERING_TOOLBAR_DELETE="info.enroll.courseoffering.toolbar.delete" ;
150     public static final String COURSEOFFERING_TOOLBAR_APPROVED="info.enroll.courseoffering.toolbar.approved" ;
151     public static final String COURSEOFFERING_TOOLBAR_ADD="info.enroll.courseoffering.toolbar.add.success";
152 
153     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_N_SUCCESS="info.enroll.activityoffering.toolbar.add.success";
154     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_N_SUCCESS_WITH_EXAMOFFERING_GENERATED="info.enroll.activityoffering.toolbar.add.success.with.examoffering.generated";
155     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_N_SUCCESS_WITH_MISSING_EXAMPERIOD="info.enroll.activityoffering.toolbar.add.success.with.missing.examperiod";
156 
157     public static final String ACTIVITYOFFERING_TOOLBAR_DELETE_N_SUCCESS="info.enroll.activityoffering.toolbar.delete.n.success";
158     public static final String ACTIVITYOFFERING_TOOLBAR_DRAFT_N_SUCCESS="info.enroll.activityoffering.toolbar.draft.n.success";
159     public static final String ACTIVITYOFFERING_TOOLBAR_APPROVED_N_SUCCESS="info.enroll.activityoffering.toolbar.approved.n.success";
160     public static final String ACTIVITYOFFERING_TOOLBAR_CANCEL_N_SUCCESS="info.enroll.activityoffering.toolbar.cancel.n.success";
161     public static final String ACTIVITYOFFERING_TOOLBAR_SUSPEND_N_SUCCESS="info.enroll.activityoffering.toolbar.suspend.n.success";
162     public static final String ACTIVITYOFFERING_TOOLBAR_REINSTATE_N_SUCCESS="info.enroll.activityoffering.toolbar.reinstate.n.success";
163     public static final String COURSEOFFERING_TOOLBAR_DELETE_N_SUCCESS="info.enroll.courseoffering.toolbar.delete.n.success";
164     public static final String COURSEOFFERING_TOOLBAR_APPROVED_N_SUCCESS="info.enroll.courseoffering.toolbar.approved.n.success";
165     public static final String ACTIVITYOFFERING_CREATE_WITH_MISSING_EXAMPERIOD="info.enroll.activityoffering.create.with.missing.examperiod";
166 
167     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_1_SUCCESS="info.enroll.activityoffering.toolbar.add.1.success";
168     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_1_SUCCESS_WITH_EXAMOFFERING_GENERATED="info.enroll.activityoffering.toolbar.add.1.success.with.examoffering.generated";
169     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_1_SUCCESS_WITH_MISSING_EXAMPERIOD="info.enroll.activityoffering.toolbar.add.1.success.with.missing.examperiod";
170 
171     public static final String ACTIVITYOFFERING_TOOLBAR_DELETE_1_SUCCESS="info.enroll.activityoffering.toolbar.delete.1.success";
172     public static final String ACTIVITYOFFERING_TOOLBAR_DRAFT_1_SUCCESS="info.enroll.activityoffering.toolbar.draft.1.success";
173     public static final String ACTIVITYOFFERING_TOOLBAR_APPROVED_1_SUCCESS="info.enroll.activityoffering.toolbar.approved.1.success";
174     public static final String ACTIVITYOFFERING_TOOLBAR_CANCEL_1_SUCCESS="info.enroll.activityoffering.toolbar.cancel.1.success";
175     public static final String ACTIVITYOFFERING_TOOLBAR_SUSPEND_1_SUCCESS="info.enroll.activityoffering.toolbar.suspend.1.success";
176     public static final String ACTIVITYOFFERING_TOOLBAR_REINSTATE_1_SUCCESS="info.enroll.activityoffering.toolbar.reinstate.1.success";
177     public static final String COURSEOFFERING_TOOLBAR_DELETE_1_SUCCESS="info.enroll.courseoffering.toolbar.delete.1.success";
178     public static final String COURSEOFFERING_TOOLBAR_APPROVED_1_SUCCESS="info.enroll.courseoffering.toolbar.approved.1.success";
179 
180     public static final String ACTIVITYOFFERING_TOOLBAR_ADD_INVALID_ERROR="error.enroll.activityoffering.toolbar.add.invalid";
181     
182     //controller path
183     public static final String CONTROLLER_PATH_COURSEOFFERING_EDIT_MAINTENANCE = "courseOfferingEdit";
184     public static final String CONTROLLER_PATH_COURSEOFFERING_CREATE_MAINTENANCE = "courseOfferingCreate";
185 
186     // Final Exam Types
187     public final static String COURSEOFFERING_FINAL_EXAM_TYPE_KEY = "finalExamStatus";
188     public final static String COURSEOFFERING_FINAL_EXAM_TYPE_STANDARD = "STANDARD";
189     public final static String COURSEOFFERING_FINAL_EXAM_TYPE_ALTERNATE = "ALTERNATE";
190     public final static String COURSEOFFERING_FINAL_EXAM_TYPE_NONE = "NONE";
191 
192     // Final Exam Driver UI
193     public final static String COURSEOFFERING_FINAL_EXAM_DRIVER_CO_UI = "Course Offering";
194     public final static String COURSEOFFERING_FINAL_EXAM_DRIVER_AO_UI = "Activity Offering";
195 
196     //colocation
197     public static final String COLOCATION_MAX_ENR_SHARED="info.enroll.courseoffering.colocation.enr.shared";
198     public static final String COLOCATION_MAX_ENR_SEPARATED="info.enroll.courseoffering.colocation.enr.separated";
199 
200     public static final String COURSE_OFFERING_EDIT_SUCCESS = "info.enroll.courseoffering.edit.success";
201     public static final String COURSE_OFFERING_EDIT_SUCCESS_WITH_EXAMOFFERING_GENERATED = "info.enroll.courseoffering.edit.success.with.examoffering.generated";
202     public static final String COURSE_OFFERING_EDIT_SUCCESS_WITH_MISSING_EXAMPERIOD = "info.enroll.courseoffering.edit.success.with.missing.examperiod";
203     public static final String COURSE_OFFERING_CREATE_SUCCESS = "info.enroll.courseoffering.create.success";
204     public static final String COURSE_OFFERING_CREATE_SUCCESS_WITH_EXAMOFFERING_GENERATED = "info.enroll.courseoffering.create.success.with.examoffering.generated";
205     public static final String COURSE_OFFERING_CREATE_SUCCESS_WITH_MISSING_EXAMPERIOD = "info.enroll.courseoffering.create.success.with.missing.examperiod";
206 
207     /**
208          * These are the confirm dialog bean ids used in Manage CO/AO view.
209          */
210     public static class ConfirmDialogs{
211         public static final String DELETE_COLO_COS = "deletingColocationNotSupportedForMultipleCosDialog";
212         public static final String DELETE_ONE_COLO_CO = "deletingColocationNotSupportedForCoDialog";
213         public static final String DELETE_COLO_AOS = "deletingColocationNotSupportedForMultipleAosDialog";
214         public static final String DELETE_ONE_COLO_AO = "deletingColocationNotSupportedForAoDialog";
215     }
216 }