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.ActivityOfferingInfo;
19  import org.kuali.student.enrollment.courseoffering.dto.CourseOfferingInfo;
20  import org.kuali.student.enrollment.courseoffering.dto.RegistrationGroupInfo;
21  import org.kuali.student.enrollment.courseoffering.dto.SeatPoolDefinitionInfo;
22  import org.kuali.student.enrollment.courseoffering.service.CourseOfferingService;
23  import org.kuali.student.r2.common.constants.CommonServiceConstants;
24  import org.kuali.student.r2.lum.util.constants.LrcServiceConstants;
25  
26  /**
27   * Course Offering Service Constants
28   *
29   * @author nwright
30   * @see LuiServiceConstants
31   */
32  public class CourseOfferingServiceConstants {
33  
34      public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "courseOffering";
35      public static final String SERVICE_NAME_LOCAL_PART = CourseOfferingService.class.getSimpleName();
36      public static final String REF_OBJECT_URI_COURSE_OFFERING = NAMESPACE + "/" + CourseOfferingInfo.class.getSimpleName();
37      public static final String REF_OBJECT_URI_ACTIVITY_OFFERING = NAMESPACE + "/" + ActivityOfferingInfo.class.getSimpleName();
38      public static final String REF_OBJECT_URI_REGISTRATION_GROUP = NAMESPACE + "/" + RegistrationGroupInfo.class.getSimpleName();
39      public static final String REF_OBJECT_URI_SEAT_POOL_DEFINITION = NAMESPACE + "/" + SeatPoolDefinitionInfo.class.getSimpleName();
40  
41  
42      //dynamic attribute keys
43      public static final String WAIT_LIST_TYPE_KEY_ATTR = "kuali.attribute.wait.list.type.key"; // Value is in WaitlistLevel enum
44      public static final String WAIT_LIST_LEVEL_TYPE_KEY_ATTR = "kuali.attribute.wait.list.level.type.key";
45      public static final String GRADE_ROSTER_LEVEL_TYPE_KEY_ATTR = "kuali.attribute.grade.roster.level.type.key";
46      public static final String FINAL_EXAM_LEVEL_TYPE_KEY_ATTR = "kuali.attribute.final.exam.level.type";
47      public static final String COURSE_EVALUATION_INDICATOR_ATTR = "kuali.attribute.course.evaluation.indicator";
48      public static final String FINAL_EXAM_INDICATOR_ATTR = "kuali.attribute.final.exam.indicator";
49      public static final String FUNDING_SOURCE_ATTR = "kuali.attribute.funding.source";
50      public static final String FEES_ATTACHED_FLAG_ATTR = "kuali.attribute.where.fees.attached.flag";
51      public static final String MAX_ENROLLMENT_IS_ESTIMATED_ATTR = "kuali.attribute.max.enrollment.is.estimate";
52      public static final String WHERE_FEES_ATTACHED_FLAG_ATTR = "kuali.attribute.where.fees.attached.flag";
53      public static final String IS_MAX_ENROLLMENT_ESTIMATE_ATTR = "kuali.attribute.max.enrollment.is.estimate";
54      public static final String WAIT_LIST_INDICATOR_ATTR = "kuali.attribute.wait.list.indicator";
55      public static final String COURSE_NUMBER_IN_SUFX_ATTR = "kuali.attribute.course.number.internal.suffix";
56      public static final String IS_REGISTRATION_GROUP_GENERATED_INDICATOR_ATTR = "kuali.attribute.registration.group.is.generated";
57      public static final String AOCLUSTER_ID_ATTR = "kuali.attribute.registration.group.aocluster.id";
58      // The type/states are defined in LuiServiceConstants.java
59  
60      //The list of all Student registration-specific grading options
61      public static final String[] ALL_STUDENT_REGISTRATION_OPTION_TYPE_KEYS = {
62              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_AUDIT,
63              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PASSFAIL};
64      // The list of all grading options
65      public static final String[] ALL_GRADING_OPTION_TYPE_KEYS = {
66              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER,
67              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER_PASSING_TRANSLATION,
68              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER_GRADUATE,
69              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PNP_STANDARD,
70              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_LETTER_PLUS_MINUS_STANDARD,
71              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE,
72              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_0_59,
73              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_60_69,
74              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_70_79,
75              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_80_84,
76              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_85_89,
77              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_90_MINUS94,
78              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_PERCENTAGE_95_100,
79              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_ADMIN_STANDARD,
80              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_ADMIN_IN_MINUSPROGRESS,
81              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_SATISFACTORY,
82              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_COMPLETEDNOTATION,
83              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_DESIGNREVIEW,
84              LrcServiceConstants.RESULT_GROUP_KEY_GRADE_RECITALREVIEW};
85  
86      public static final String APPEND_COURSE_OFFERING_CODE_SUFFIX_OPTION_KEY = "kuali.course.offering.optionkey.append.course.offering.suffix";
87      public static final String APPEND_COURSE_OFFERING_IN_SUFFIX_OPTION_KEY = "kuali.course.offering.optionkey.append.course.offering.internal.suffix";
88  
89      public static final String COURSE_OFFERING_CODE_VALIDATION_ELEMENT = "courseOfferingCode";
90      public static final String COURSE_OFFERING_CODE_UNIQUENESS_VALIDATION_MESSAGE = "Course offering code is not unique within the term";
91  
92      // Activity Offering Cluster States
93      public static final String AOC_ACTIVE_STATE_KEY = "kuali.activity.offering.cluster.state.active";
94  
95      // Activity Offering Cluster Types - note: not a LUI type
96      public static final String AOC_ROOT_TYPE_KEY = "kuali.activity.offering.cluster.type.activity.offering.cluster";
97  }