View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.r2.core.constants;
17  
18  import org.kuali.student.r2.common.constants.CommonServiceConstants;
19  import org.kuali.student.r2.core.statement.dto.RefStatementRelationInfo;
20  import org.kuali.student.r2.core.statement.dto.ReqComponentInfo;
21  import org.kuali.student.r2.core.statement.dto.StatementInfo;
22  import org.kuali.student.r2.core.statement.dto.StatementTreeViewInfo;
23  
24  /**
25   * This class holds the constants used by the Statement service
26   *
27   * @Version 2.0
28   * @Author Sri komandur@uw.edu
29   */
30  public class StatementServiceConstants {
31      
32      /**
33       * Reference Object URI's
34       */
35      public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "statement";
36      public static final String REF_OBJECT_URI_STATEMENT = NAMESPACE + "/" + StatementInfo.class.getSimpleName();
37      public static final String REF_OBJECT_URI_REF_STATEMENT_RELATION = NAMESPACE + "/" + RefStatementRelationInfo.class.getSimpleName();
38      public static final String REF_OBJECT_URI_REQ_COMPONENT = NAMESPACE + "/" + ReqComponentInfo.class.getSimpleName();
39      public static final String REF_OBJECT_URI_STATEMENT_TREE_VIEW = NAMESPACE + "/" + StatementTreeViewInfo.class.getSimpleName();
40  
41      // Statement Types
42      public static final String PREREQUISITE_STATEMENT_TYPE = "kuali.statement.type.course.academicReadiness.studentEligibilityPrereq";
43      public static final String ANTIREQUISITE_STATEMENT_TYPE = "kuali.statement.type.course.academicReadiness.antireq";
44      public static final String COREQUISITE_STATEMENT_TYPE = "kuali.statement.type.course.academicReadiness.coreq";
45  
46      // Requirement Component Types
47      public static final String COMPLETED_COURSE_REQ_COM_TYPE = "kuali.reqComponent.type.course.completed";
48      public static final String ALL_OF_REQUIRED_COURSES_COMPLETED_REQ_COM_TYPE = "kuali.reqComponent.type.course.courseset.completed.all";
49      public static final String N_OF_REQUIRED_COURSES_COMPLETED_REQ_COM_TYPE = "kuali.reqComponent.type.course.courseset.completed.nof";
50      public static final String MAX_N_OF_COURSES_COMPLETED_REQ_COM_TYPE = "kuali.reqComponent.type.course.courseset.completed.max";
51      public static final String NONE_OF_COURSES_COMPLETED_REQ_COM_TYPE = "kuali.reqComponent.type.course.courseset.completed.none";
52      public static final String NOT_COMPLETED_COURSE_REQ_COM_TYPE = "kuali.reqComponent.type.course.notcompleted";
53      public static final String ENROLLED_COURSE_REQ_COM_TYPE = "kuali.reqComponent.type.course.enrolled";
54      public static final String ALL_OF_REQUIRED_COURSES_ENROLLED_REQ_COM_TYPE = "kuali.reqComponent.type.course.courseset.enrolled.all";
55      public static final String N_OF_REQUIRED_COURSES_ENROLLED_REQ_COM_TYPE = "kuali.reqComponent.type.course.courseset.enrolled.nof";
56  
57      // Requirement Component Field Types
58      public static final String COURSE_ID_REQ_COM_FIELD_TYPE = "kuali.reqComponent.field.type.course.clu.id";
59      public static final String COURSE_SET_ID_REQ_COM_FIELD_TYPE = "kuali.reqComponent.field.type.course.cluSet.id";
60      public static final String INTEGER_REQ_COM_FIELD_TYPE = "kuali.reqComponent.field.type.value.positive.integer";
61      
62      // states for ref statement relation
63      public static final String REF_STATEMENT_RELATION_ACTIVE_STATE = "kuali.ref.statement.relation.state.active";
64      public static final String REF_STATEMENT_RELATION_INACTIVE_STATE = "kuali.ref.statement.relation.state.inactive";
65      
66      // states for statement 
67      public static final String STATEMENT_ACTIVE_STATE = "kuali.statement.state.active";
68      public static final String STATEMENT_INACTIVE_STATE = "kuali.statement.state.inactive";
69      
70  }