View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.0 (the
5    * "License"); you may not use this file except in compliance with the
6    * License.  You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl1.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
13   * implied.  See the License for the specific language governing
14   * permissions and limitations under the License.
15   */
16  package org.kuali.student.r2.common.util.constants;
17  
18  import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingClusterInfo;
19  import org.kuali.student.enrollment.courseoffering.dto.ActivityOfferingInfo;
20  import org.kuali.student.enrollment.courseoffering.dto.CourseOfferingInfo;
21  import org.kuali.student.enrollment.courseoffering.dto.RegistrationGroupInfo;
22  import org.kuali.student.enrollment.courseoffering.dto.SeatPoolDefinitionInfo;
23  import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService;
24  import org.kuali.student.r2.common.constants.CommonServiceConstants;
25  import org.kuali.student.r2.lum.util.constants.LrcServiceConstants;
26  
27  /**
28   * Course Offering Service Constants
29   *
30   * @author nwright
31   * @see LuiServiceConstants
32   */
33  public class CourseOfferingServiceConstants {
34  
35      public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "courseOffering";
36      public static final String SERVICE_NAME_LOCAL_PART = CourseOfferingService.class.getSimpleName();
37      public static final String REF_OBJECT_URI_COURSE_OFFERING = NAMESPACE + "/" + CourseOfferingInfo.class.getSimpleName();
38      public static final String REF_OBJECT_URI_ACTIVITY_OFFERING = NAMESPACE + "/" + ActivityOfferingInfo.class.getSimpleName();
39      public static final String REF_OBJECT_URI_REGISTRATION_GROUP = NAMESPACE + "/" + RegistrationGroupInfo.class.getSimpleName();
40      public static final String REF_OBJECT_URI_SEAT_POOL_DEFINITION = NAMESPACE + "/" + SeatPoolDefinitionInfo.class.getSimpleName();
41      public static final String REF_OBJECT_URI_AO_CLUSTER_DEFINITION = NAMESPACE + "/" + ActivityOfferingClusterInfo.class.getSimpleName();
42  
43  
44      //dynamic attribute keys
45      public static final String WAIT_LIST_TYPE_KEY_ATTR = "kuali.attribute.wait.list.type.key"; // Value is in WaitlistLevel enum
46      public static final String WAIT_LIST_LEVEL_TYPE_KEY_ATTR = "kuali.attribute.wait.list.level.type.key";
47      public static final String GRADE_ROSTER_LEVEL_TYPE_KEY_ATTR = "kuali.attribute.grade.roster.level.type.key";
48      public static final String FINAL_EXAM_LEVEL_TYPE_KEY_ATTR = "kuali.attribute.final.exam.level.type";
49      public static final String COURSE_EVALUATION_INDICATOR_ATTR = "kuali.attribute.course.evaluation.indicator";
50      public static final String FINAL_EXAM_DRIVER_ATTR = "kuali.attribute.final.exam.driver";
51      public static final String FINAL_EXAM_USE_MATRIX = "kuali.attribute.final.exam.use.matrix";
52      public static final String FINAL_EXAM_INDICATOR_ATTR = "kuali.attribute.final.exam.indicator";
53      public static final String FUNDING_SOURCE_ATTR = "kuali.attribute.funding.source";
54      public static final String FEES_ATTACHED_FLAG_ATTR = "kuali.attribute.where.fees.attached.flag";
55      public static final String MAX_ENROLLMENT_IS_ESTIMATED_ATTR = "kuali.attribute.max.enrollment.is.estimate";
56      public static final String WHERE_FEES_ATTACHED_FLAG_ATTR = "kuali.attribute.where.fees.attached.flag";
57      public static final String IS_MAX_ENROLLMENT_ESTIMATE_ATTR = "kuali.attribute.max.enrollment.is.estimate";
58      public static final String WAIT_LIST_INDICATOR_ATTR = "kuali.attribute.wait.list.indicator";
59      public static final String COURSE_NUMBER_IN_SUFX_ATTR = "kuali.attribute.course.number.internal.suffix";
60      public static final String IS_REGISTRATION_GROUP_GENERATED_INDICATOR_ATTR = "kuali.attribute.registration.group.is.generated";
61      public static final String AOCLUSTER_ID_ATTR = "kuali.attribute.registration.group.aocluster.id";
62      public static final String COLOCATED_SET_MAXIMUM_ENROLLMENT_ATTR = "kuali.attribute.colocatedset.max.enrollment";
63      public static final String IS_MAX_ENROLLMENT_SHARED_ATTR = "kuali.attribute.colocatedset.is.max.enrollment.shared";
64      public static final String IS_AO_APPROVED_FOR_NON_STANDARD_TIME_SLOTS = "kuali.attribute.nonstd.ts.indicator";
65  
66      // The type/states are defined in LuiServiceConstants.java
67  
68      //The list of all Student registration-specific grading options
69      public static final String[] ALL_STUDENT_REGISTRATION_OPTION_TYPE_KEYS = {
70              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_AUDIT,
71              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PASSFAIL};
72      // The list of all grading options
73      public static final String[] ALL_GRADING_OPTION_TYPE_KEYS = {
74              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER,
75              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER_PASSING_TRANSLATION,
76              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER_GRADUATE,
77              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PNP_STANDARD,
78              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER_PLUS_MINUS_STANDARD,
79              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE,
80              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_0_59,
81              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_60_69,
82              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_70_79,
83              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_80_84,
84              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_85_89,
85              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_90_MINUS94,
86              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_95_100,
87              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_ADMIN_STANDARD,
88              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_ADMIN_IN_MINUSPROGRESS,
89              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_SATISFACTORY,
90              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_COMPLETEDNOTATION,
91              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_DESIGNREVIEW,
92              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_RECITALREVIEW};
93  
94      public static final String APPEND_COURSE_OFFERING_CODE_SUFFIX_OPTION_KEY = "kuali.course.offering.optionkey.append.course.offering.suffix";
95      public static final String APPEND_COURSE_OFFERING_IN_SUFFIX_OPTION_KEY = "kuali.course.offering.optionkey.append.course.offering.internal.suffix";
96  
97      public static final String COURSE_OFFERING_CODE_VALIDATION_ELEMENT = "courseOfferingCode";
98      public static final String COURSE_OFFERING_CODE_UNIQUENESS_VALIDATION_MESSAGE = "Course offering code is not unique within the term";
99  
100     // Activity Offering Cluster States
101     public static final String AOC_ACTIVE_STATE_KEY = "kuali.activity.offering.cluster.state.active";
102 
103     // Activity Offering Cluster Types - note: not a LUI type
104     public static final String AOC_ROOT_TYPE_KEY = "kuali.activity.offering.cluster.type.activity.offering.cluster";
105     
106     // Search Types
107     public static final String AUTOGEN_COUNTS_BY_CO = "kuali.search.type.course.offering.autogen.counts.by.course.offering";
108     public static final String AUTOGEN_COUNTS_BY_FO = "kuali.search.type.course.offering.autogen.counts.by.format.offering";
109     public static final String AUTOGEN_COUNTS_BY_AOC = "kuali.search.type.course.offering.autogen.counts.by.activity.offering.cluster";
110     
111     // Search Request Parameter Keys
112     public static final String AUTOGEN_COUNTS_BY_CO_ID_PARAM = "kuali.search.type.course.offering.autogen.counts.by.course.offering.param.id";
113     public static final String AUTOGEN_COUNTS_BY_FO_ID_PARAM = "kuali.search.type.course.offering.autogen.counts.by.format.offering.param.id";
114     public static final String AUTOGEN_COUNTS_BY_AOC_ID_PARAM = "kuali.search.type.course.offering.autogen.counts.by.activity.offering.cluster.param.id";
115     
116     
117     // Search Result Cell Keys (the kind of data that comes out of the Auto Gen Count Searches)
118     public static final String AUTOGEN_COUNTS_TOTAL_AOS = "kuali.search.type.course.offering.autogen.counts.total.aos";
119     public static final String AUTOGEN_COUNTS_TOTAL_AOCS = "kuali.search.type.course.offering.autogen.counts.total.aocs";
120     public static final String AUTOGEN_COUNTS_TOTAL_RGS = "kuali.search.type.course.offering.autogen.counts.total.rgs";
121     public static final String AUTOGEN_COUNTS_TOTAL_INVALID_RGS = "kuali.search.type.course.offering.autogen.counts.total.invalid.rgs";
122 }