View Javadoc

1   package org.kuali.student.krms.naturallanguage.util;
2   
3   /**
4    * Created with IntelliJ IDEA. User: SW Date: 2013/01/10 Time: 11:50 AM To
5    * change this template use File | Settings | File Templates.
6    */
7   public class KsKrmsConstants {
8   
9       // language codes
10      // these should match the codes returned from browsers following the internet standard 
11      // in the kuali student ContextInfo (not to be confused with the KRMS context)
12      public static final String LANGUAGE_CODE_ENGLISH = "en";
13      public static final String LANGUAGE_CODE_FRENCH = "fr";
14      public static final String LANGUAGE_CODE_SPANISH = "es";
15      public static final String LANGUAGE_CODE_AFRIKAANS = "af";
16      // dynamic attributes
17      public static final String ATTRIBUTE_COMPONENT_ID = "componentId";
18      public static final String ATTRIBUTE_COMPONENT_BUILDER_CLASS = "componentBuilderClass";
19      // context ??? 
20      // TODO: decide if we need/want these!
21      public static final String CONTEXT_COURSE_REQUIREMENTS = "Course Requirements";
22      public static final String CONTEXT_PROGRAM_REQUIREMENTS = "Program Requirements";
23      //Namespace
24      public static final String NAMESPACE_CODE = "KS-SYS";
25      // Context Types
26      public static final String CONTEXT_TYPE_COURSE = "kuali.krms.context.type.course";
27      public static final String CONTEXT_TYPE_PROGRAM = "kuali.krms.context.type.program";
28      public static final String CONTEXT_TYPE_COURSE_OFFERING = "kuali.krms.context.type.course.offering";
29      // Agenda Types
30      public static final String AGENDA_TYPE_COURSE_ENROLLMENTELIGIBILITY = "kuali.krms.agenda.type.course.enrollmentEligibility";
31      public static final String AGENDA_TYPE_COURSE_CREDITCONSTRAINTS = "kuali.krms.agenda.type.course.creditConstraints";
32      public static final String AGENDA_TYPE_SCHEDULE_ELIGIBILITY = "kuali.krms.agenda.type.schedule.eligibility";
33      // rule types
34      public static final String RULE_TYPE_COURSE_ACADEMICREADINESS_ANTIREQ = "kuali.krms.rule.type.course.academicReadiness.antireq";
35      public static final String RULE_TYPE_COURSE_ACADEMICREADINESS_COREQ = "kuali.krms.rule.type.course.academicReadiness.coreq";
36      public static final String RULE_TYPE_COURSE_RECOMMENDEDPREPARATION = "kuali.krms.rule.type.course.recommendedPreparation";
37      public static final String RULE_TYPE_COURSE_ACADEMICREADINESS_STUDENTELIGIBILITY = "kuali.krms.rule.type.course.academicReadiness.studentEligibility";
38      public static final String RULE_TYPE_COURSE_ACADEMICREADINESS_STUDENTELIGIBILITYPREREQ = "kuali.krms.rule.type.course.academicReadiness.studentEligibilityPrereq";
39      public static final String RULE_TYPE_COURSE_CREDIT_REPEATABLE = "kuali.krms.rule.type.course.credit.repeatable";
40      public static final String RULE_TYPE_COURSE_CREDIT_RESTRICTION = "kuali.krms.rule.type.course.credit.restriction";
41      public static final String RULE_TYPE_PROGRAM_COMPLETION = "kuali.krms.rule.type.program.completion";
42      public static final String RULE_TYPE_PROGRAM_ENTRANCE = "kuali.krms.rule.type.program.entrance";
43      public static final String RULE_TYPE_PROGRAM_SATISFACTORYPROGRESS = "kuali.krms.rule.type.program.satisfactoryProgress";
44      public static final String RULE_TYPE_SCHEDULE_ELIGIBILITY = "kuali.krms.rule.type.schedule.eligibility";
45      // proposition types
46      public static final String PROPOSITION_TYPE_SUCCESS_COMPL_COURSE = "kuali.krms.proposition.type.success.compl.course";
47      public static final String PROPOSITION_TYPE_SUCCESS_COURSE_COURSESET_COMPLETED_ALL = "kuali.krms.proposition.type.success.course.courseset.completed.all";
48      public static final String PROPOSITION_TYPE_SUCCESS_COURSE_COURSESET_COMPLETED_NOF = "kuali.krms.proposition.type.success.course.courseset.completed.nof";
49      public static final String PROPOSITION_TYPE_COURSE_COURSESET_COMPLETED_NONE = "kuali.krms.proposition.type.course.courseset.completed.none";
50      public static final String PROPOSITION_TYPE_COURSE_COURSESET_CREDITS_COMPLETED_NOF = "kuali.krms.proposition.type.course.courseset.credits.completed.nof";
51      public static final String PROPOSITION_TYPE_COURSE_COURSESET_CREDITS_COMPLETED_NONE = "kuali.krms.proposition.type.course.courseset.credits.completed.none";
52      public static final String PROPOSITION_TYPE_COURSE_COURSESET_ENROLLED_ALL = "kuali.krms.proposition.type.course.courseset.enrolled.all";
53      public static final String PROPOSITION_TYPE_COURSE_COURSESET_ENROLLED_NOF = "kuali.krms.proposition.type.course.courseset.enrolled.nof";
54      public static final String PROPOSITION_TYPE_COURSE_COURSESET_GPA_MIN = "kuali.krms.proposition.type.course.courseset.gpa.min";
55      public static final String PROPOSITION_TYPE_COURSE_COURSESET_GRADE_MAX = "kuali.krms.proposition.type.course.courseset.grade.max";
56      public static final String PROPOSITION_TYPE_COURSE_COURSESET_GRADE_MIN = "kuali.krms.proposition.type.course.courseset.grade.min";
57      public static final String PROPOSITION_TYPE_COURSE_COURSESET_NOF_GRADE_MIN = "kuali.krms.proposition.type.course.courseset.nof.grade.min";
58      public static final String PROPOSITION_TYPE_COURSE_CREDITS_REPEAT_MAX = "kuali.krms.proposition.type.course.credits.repeat.max";
59      public static final String PROPOSITION_TYPE_COURSE_ENROLLED = "kuali.krms.proposition.type.course.enrolled";
60      public static final String PROPOSITION_TYPE_FREEFORM_TEXT = "kuali.krms.proposition.type.freeform.text";
61      public static final String PROPOSITION_TYPE_COURSE_NOTCOMPLETED = "kuali.krms.proposition.type.course.notcompleted";
62      public static final String PROPOSITION_TYPE_ADMITTED_TO_PROGRAM_CAMPUS = "kuali.krms.proposition.type.admitted.to.program.campus";
63      public static final String PROPOSITION_TYPE_PERMISSION_INSTRUCTOR_REQUIRED = "kuali.krms.proposition.type.permission.instructor.required";
64      public static final String PROPOSITION_TYPE_PERMISSION_ADMIN_ORG = "kuali.krms.proposition.type.permission.admin.org";
65      public static final String PROPOSITION_TYPE_NOTADMITTED_TO_PROGRAM = "kuali.krms.proposition.type.notadmitted.to.program";
66      public static final String PROPOSITION_TYPE_COURSE_TEST_SCORE_MAX = "kuali.krms.proposition.type.course.test.score.max";
67      public static final String PROPOSITION_TYPE_COURSE_TEST_SCORE_MIN = "kuali.krms.proposition.type.course.test.score.min";
68      public static final String PROPOSITION_TYPE_CREDITS_EARNED_MIN = "kuali.krms.proposition.type.credits.earned.min";
69      public static final String PROPOSITION_TYPE_CUMULATIVE_GPA_MIN = "kuali.krms.proposition.type.cumulative.gpa.min";
70      public static final String PROPOSITION_TYPE_DURATION_CUMULATIVE_GPA_MIN = "kuali.krms.proposition.type.duration.cumulative.gpa.min";
71      public static final String PROPOSITION_TYPE_DROP_MIN_CREDIT_HOURS_DUE_TO_ATTRIBUTE = "kuali.krms.proposition.type.drop.min.credit.hours.due.to.attribute";
72      public static final String PROPOSITION_TYPE_DROP_MIN_CREDIT_HOURS = "kuali.krms.proposition.type.drop.min.credit.hours";
73      public static final String PROPOSITION_TYPE_EXCEEDS_MINUTES_OVERLAP_ALLOWED = "kuali.krms.proposition.type.exceeds.minutes.overlap.allowed";
74      public static final String PROPOSITION_TYPE_TIME_CONFLICT_START_END = "kuali.krms.proposition.type.time.conflict.start.end";
75      public static final String PROPOSITION_TYPE_MAX_LIMIT_COURSES_FOR_PROGRAM = "kuali.krms.proposition.type.max.limit.courses.for.program";
76      public static final String PROPOSITION_TYPE_MAX_LIMIT_CREDITS_FOR_PROGRAM = "kuali.krms.proposition.type.max.limit.credits.for.program";
77      public static final String PROPOSITION_TYPE_MAX_LIMIT_COURSES_FOR_CAMPUS_DURATION = "kuali.krms.proposition.type.max.limit.courses.for.campus.duration";
78      public static final String PROPOSITION_TYPE_MAX_LIMIT_CREDITS_FOR_CAMPUS_DURATION = "kuali.krms.proposition.type.max.limit.credits.for.campus.duration";
79      public static final String PROPOSITION_TYPE_ADMITTED_TO_PROGRAM = "kuali.krms.proposition.type.admitted.to.program";
80      public static final String PROPOSITION_TYPE_COURSE_COURSESET_COMPLETED_NOF = "kuali.krms.proposition.type.course.courseset.completed.nof";
81      public static final String PROPOSITION_TYPE_SUCCESS_CREDIT_COURSESET_COMPLETED_NOF = "kuali.krms.proposition.type.success.credit.courseset.completed.nof";
82      public static final String PROPOSITION_TYPE_SUCCESS_CREDITS_COURSESET_COMPLETED_NOF_ORG = "kuali.krms.proposition.type.success.credits.courseset.completed.nof.org";
83      public static final String PROPOSITION_TYPE_CANT_ADD_TO_ACTIVITY_OFFERING_DUE_TO_STATE = "kuali.krms.proposition.type.cant.add.to.activity.offering.due.to.state";
84      public static final String PROPOSITION_TYPE_NO_REPEAT_COURSE = "kuali.krms.proposition.type.no.repeat.course";
85      public static final String PROPOSITION_TYPE_NO_REPEAT_COURSES = "kuali.krms.proposition.type.no.repeat.courses";
86      public static final String PROPOSITION_TYPE_AVAIL_SEAT = "kuali.krms.proposition.type.avail.seat";
87      public static final String PROPOSITION_TYPE_SUCCESS_COMPL_COURSE_AS_OF_TERM = "kuali.krms.proposition.type.success.compl.course.as.of.term";
88      public static final String PROPOSITION_TYPE_SUCCESS_COMPL_PRIOR_TO_TERM = "kuali.krms.proposition.type.success.compl.prior.to.term";
89      public static final String PROPOSITION_TYPE_SUCCESS_COMPL_COURSE_BETWEEN_TERMS = "kuali.krms.proposition.type.success.compl.course.between.terms";
90      public static final String PROPOSITION_TYPE_NOTADMITTED_TO_PROGRAM_IN_CLASS_STANDING = "kuali.krms.proposition.type.notadmitted.to.program.in.class.standing";
91      public static final String PROPOSITION_TYPE_ADMITTED_TO_PROGRAM_ORG = "kuali.krms.proposition.type.admitted.to.program.org";
92      public static final String PROPOSITION_TYPE_IN_CLASS_STANDING = "kuali.krms.proposition.type.in.class.standing";
93      public static final String PROPOSITION_TYPE_GREATER_THAN_CLASS_STANDING = "kuali.krms.proposition.type.greater.than.class.standing";
94      public static final String PROPOSITION_TYPE_LESS_THAN_CLASS_STANDING = "kuali.krms.proposition.type.less.than.class.standing";
95      public static final String PROPOSITION_TYPE_NOTIN_CLASS_STANDING = "kuali.krms.proposition.type.notin.class.standing";
96      public static final String PROPOSITION_TYPE_COURSE_COURSESET_ENROLLED = "kuali.krms.proposition.type.course.courseset.enrolled";
97      public static final String PROPOSITION_TYPE_NO_REPEAT_COURSE_NOF = "kuali.krms.proposition.type.no.repeat.course.nof";
98      public static final String PROPOSITION_TYPE_TEST_SCORE_BETWEEN_VALUES = "kuali.krms.proposition.type.test.score.between.values";
99      public static final String PROPOSITION_TYPE_TEST_SCORE = "kuali.krms.proposition.type.test.score";
100     public static final String PROPOSITION_TYPE_COMPOUND_AND = "kuali.krms.proposition.type.compound.and";  
101     
102     // parameter types
103     public static final String PROPOSITION_PARAMETER_TYPE_TERM_NUMBER_OF_COMPLETED_COURSES = "kuali.krms.proposition.parameter.type.term.number.of.completed.courses";
104     public static final String PROPOSITION_PARAMETER_TYPE_OPERATOR_LESS_THAN_OR_EQUAL_TO = "kuali.krms.proposition.parameter.type.operator.less.than.or.equal.to";
105     public static final String PROPOSITION_PARAMETER_TYPE_CONSTANT_VALUE_N = "kuali.krms.proposition.parameter.type.constant.value.n";
106     // term parameter types
107     public static final String TERM_PARAMETER_TYPE_COURSE_CLU_ID = "kuali.term.parameter.type.course.clu.id";
108     public static final String TERM_PARAMETER_TYPE_COURSE_CLUSET_ID = "kuali.term.parameter.type.course.cluSet.id";
109     public static final String TERM_PARAMETER_TYPE_FREE_TEXT = "kuali.term.parameter.type.free.text";
110     public static final String TERM_PARAMETER_TYPE_GRADE_ID = "kuali.term.parameter.type.grade.id";
111     public static final String TERM_PARAMETER_TYPE_ORG_ID = "kuali.term.parameter.type.org.id";
112     public static final String TERM_PARAMETER_TYPE_PROGRAM_CLUSET_ID = "kuali.term.parameter.type.program.cluSet.id"; 
113     
114     // term specs
115     public static final String TERM_SPEC_COMPLETEDCOURSE = "CompletedCourse";
116     public static final String TERM_SPEC_COMPLETEDCOURSES = "CompletedCourses";
117     public static final String TERM_SPEC_NUMBEROFCOMPLETEDCOURSES = "NumberOfCompletedCourses";
118     public static final String TERM_SPEC_NUMBEROFCREDITSFROMCOMPLETEDCOURSES = "NumberOfCreditsFromCompletedCourses";
119     public static final String TERM_SPEC_ENROLLEDCOURSES = "EnrolledCourses";
120     public static final String TERM_SPEC_GPAFORCOURSES = "GPAForCourses";
121     public static final String TERM_SPEC_GRADETYPEFORCOURSES = "GradeTypeForCourses";
122     public static final String TERM_SPEC_NUMBEROFCREDITS = "NumberOfCredits";
123     public static final String TERM_SPEC_NUMBEROFCREDITSFROMORGANIZATION = "NumberOfCreditsFromOrganization";
124     public static final String TERM_SPEC_ADMINORGANIZATIONPERMISSIONREQUIRED = "AdminOrganizationPermissionRequired";
125     public static final String TERM_SPEC_SCOREONTEST = "ScoreOnTest";
126     public static final String TERM_SPEC_ADMITTEDTOPROGRAM = "AdmittedToProgram";
127     public static final String TERM_SPEC_ADMITTEDTOPROGRAMLIMITCOURSESINORGFORDURATION = "AdmittedToProgramLimitCoursesInOrgForDuration";
128     public static final String TERM_SPEC_FREEFORMTEXT = "FreeFormText";
129     // term resolvers
130     public static final String TERM_RESOLVER_COMPLETEDCOURSE = "CompletedCourse";
131     public static final String TERM_RESOLVER_COMPLETEDCOURSES = "CompletedCourses";
132     public static final String TERM_RESOLVER_NUMBEROFCOMPLETEDCOURSES = "NumberOfCompletedCourses";
133     public static final String TERM_RESOLVER_NUMBEROFCREDITSFROMCOMPLETEDCOURSES = "NumberOfCreditsFromCompletedCourses";
134     public static final String TERM_RESOLVER_ENROLLEDCOURSES = "EnrolledCourses";
135     public static final String TERM_RESOLVER_GPAFORCOURSES = "GPAForCourses";
136     public static final String TERM_RESOLVER_GRADETYPEFORCOURSES = "GradeTypeForCourses";
137     public static final String TERM_RESOLVER_NUMBEROFCREDITS = "NumberOfCredits";
138     public static final String TERM_RESOLVER_NUMBEROFCREDITSFROMORGANIZATION = "NumberOfCreditsFromOrganization";
139     public static final String TERM_RESOLVER_ADMINORGANIZATIONPERMISSIONREQUIRED = "AdminOrganizationPermissionRequired";
140     public static final String TERM_RESOLVER_SCOREONTEST = "ScoreOnTest";
141     public static final String TERM_RESOLVER_ADMITTEDTOPROGRAM = "AdmittedToProgram";
142     public static final String TERM_RESOLVER_ADMITTEDTOPROGRAMLIMITCOURSESINORGFORDURATION = "AdmittedToProgramLimitCoursesInOrgForDuration";
143     public static final String TERM_RESOLVER_FREEFORMTEXT = "FreeFormText";
144     // rules editing
145     public static final String KRMS_NL_RULE_EDIT = "kuali.krms.edit";
146     public static final String KRMS_NL_COMPOSITION = "kuali.krms.composition";
147     public static final String KRMS_NL_EXAMPLE = "kuali.krms.example";
148     public static final String KRMS_NL_PREVIEW = "kuali.krms.preview";
149     public static final String KRMS_NL_TYPE_DESCRIPTION = "kuali.krms.type.description";
150     public static final String KRMS_NL_TYPE_CATALOG = "kuali.krms.catalog";
151     public static final String KRMS_NL_TYPE_INSTRUCTION = "kuali.krms.type.instruction";
152 }