View Javadoc

1   /**
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.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.osedu.org/licenses/ECL-2.0
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.core.constants;
17  
18  import org.kuali.student.r2.common.constants.CommonServiceConstants;
19  import org.kuali.student.r2.core.process.dto.CheckInfo;
20  import org.kuali.student.r2.core.process.dto.InstructionInfo;
21  import org.kuali.student.r2.core.process.dto.ProcessCategoryInfo;
22  import org.kuali.student.r2.core.process.dto.ProcessInfo;
23  
24  /**
25   * This class holds the constants used by the Process service.
26   * 
27   * @author tom
28   */
29  public class ProcessServiceConstants {
30  
31      /**
32       * Reference Object URI's
33       */
34      public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "process";
35      public static final String SERVICE_NAME_LOCAL_PART = "ProcessService";
36      public static final String REF_OBJECT_URI_PROCESS_CATEGORY = NAMESPACE + "/" + ProcessCategoryInfo.class.getSimpleName();
37      public static final String REF_OBJECT_URI_PROCESS = NAMESPACE + "/" + ProcessInfo.class.getSimpleName();
38      public static final String REF_OBJECT_URI_CHECK = NAMESPACE + "/" + CheckInfo.class.getSimpleName();
39      public static final String REF_OBJECT_URI_INSTRUCTION = NAMESPACE + "/" + InstructionInfo.class.getSimpleName();
40  
41      ///////////////////////////////////
42      // TYPES AND STATES
43      ///////////////////////////////////
44  
45      /**
46       * ProcessCategory Types/States
47       */
48      public static final String PROCESS_CATEGORY_TYPE_KEY_CATEGORY = "kuali.process.category.type";
49  
50      public static final String PROCESS_CATEGORY_LIFECYCLE_KEY = "kuali.process.process.category.lifecycle";
51      public static final String PROCESS_CATEGORY_STATE_KEY_ACTIVE = "kuali.process.process.state.active";
52      public static final String PROCESS_CATEGORY_STATE_KEY_INACTIVE = "kuali.process.process.state.inactive";
53      public static final String PROCESS_CATEGORY_STUDENT_ELIGIBILITY = "IS_STUDENT_ELIGIBLE_FOR_REGISTRATION";
54  
55      /**
56       * Process Types/States
57       */
58      public static final String PROCESS_TYPE_KEY = "kuali.process.process.type";
59  
60      public static final String PROCESS_LIFECYCLE_KEY = "kuali.process.process.lifecycle";
61      public static final String PROCESS_ACTIVE_STATE_KEY = "kuali.process.process.state.active";
62      public static final String PROCESS_DISABLED_STATE_KEY = "kuali.process.process.state.disabled";
63      public static final String PROCESS_INACTIVE_STATE_KEY = "kuali.process.process.state.inactive";
64      public static final String[] PROCESS_LIFECYCLE_KEYS = {PROCESS_ACTIVE_STATE_KEY, PROCESS_DISABLED_STATE_KEY, PROCESS_INACTIVE_STATE_KEY};
65  
66      /**
67       * Instruction Types/States
68       */
69      public static final String INSTRUCTION_TYPE_KEY = "kuali.process.instruction.type ";
70  
71      public static final String INSTRUCTION_LIFECYCLE_KEY = "kuali.process.instruction.lifecycle";
72      public static final String INSTRUCTION_ACTIVE_STATE_KEY = "kuali.process.instruction.state.active";
73      public static final String INSTRUCTION_INACTIVE_STATE_KEY = "kuali.process.instruction.state.inactive";
74      public static final String INSTRUCTION_DISABLED_STATE_KEY = "kuali.process.instruction.state.disabled";
75      public static final String[] INSTRUCTION_LIFECYCLE_KEYS = {INSTRUCTION_ACTIVE_STATE_KEY, INSTRUCTION_DISABLED_STATE_KEY, INSTRUCTION_INACTIVE_STATE_KEY};
76  
77      /**
78       * Check Types/States
79       */
80      public static final String HOLD_CHECK_TYPE_KEY = "kuali.process.check.type.hold";
81      public static final String START_DATE_CHECK_TYPE_KEY = "kuali.process.check.type.milestone.startdate";
82      public static final String DEADLINE_CHECK_TYPE_KEY = "kuali.process.check.type.milestone.deadline";
83      public static final String TIME_PERIOD_CHECK_TYPE_KEY = "kuali.process.check.type.milestone.period";
84      public static final String PROCESS_CHECK_TYPE_KEY = "kuali.process.check.type.process";
85      public static final String DIRECT_RULE_CHECK_TYPE_KEY = "kuali.process.check.type.rule.direct";
86      public static final String INDIRECT_RULE_CHECK_TYPE_KEY = "kuali.process.check.type.rule.indirect";
87      public static final String EQUAL_VALUE_CHECK_TYPE_KEY = "kuali.process.check.type.value.equals";
88      public static final String MAXIMUM_VALUE_CHECK_TYPE_KEY = "kuali.process.check.type.value.max";
89      public static final String MINIMUM_VALUE_CHECK_TYPE_KEY = "kuali.process.check.type.value.min";
90      public static final String ACKNOWLEDGEMENT_CHECK_TYPE_KEY = "kuali.process.check.type.acknowledgement";
91      public static final String CHECK_LIFECYCLE_KEY = "kuali.process.check.lifecycle";
92  
93      public static final String PROCESS_CHECK_STATE_ACTIVE = "kuali.process.check.state.active";
94      public static final String PROCESS_CHECK_STATE_DISABLED = "kuali.process.check.state.disabled";
95      public static final String PROCESS_CHECK_STATE_INACTIVE = "kuali.process.check.state.inactive";
96      public static final String[] CHECK_LIFECYCLE_KEYS = {PROCESS_CHECK_STATE_ACTIVE, PROCESS_CHECK_STATE_DISABLED, PROCESS_CHECK_STATE_INACTIVE};
97  
98      /**
99       * Milestone Types
100      */
101     public static final String MILESTONE_TYPE_ATP_REGISTRATION_PERIOD = "kuali.atp.milestone.RegistrationPeriod";
102 
103     /**
104      * Population Types/States
105      */
106     public static final String POPULATION_TYPE_KEY_AUTOMATIC = "kuali.population.type.automatic";
107     public static final String POPULATION_TYPE_KEY_MANUAL = "kuali.population.type.manual";
108 
109     ///////////////////////////////////
110     // KEYS / IDS / NAMES
111     ///////////////////////////////////
112 
113     /**
114      * Dummy Process Owner Organization
115      */
116     public static final String PROCESS_OWNING_ORG_GRAD_SCHOOL = "GRAD_SCHOOL_ORG";
117 
118     /**
119      * known process keys
120      */
121     public static final String PROCESS_KEY_BASIC_ELIGIBILITY = "kuali.process.registration.basic.eligibility";
122     public static final String PROCESS_KEY_ELIGIBILITY_FOR_TERM = "kuali.process.registration.eligibility.for.term";
123     public static final String PROCESS_KEY_HOLDS_CLEARED = "kuali.process.registration.holds.cleared";
124     public static final String PROCESS_KEY_ACKNOWLEDGEMENTS_CONFIRMED = "kuali.process.registration.acknowledgements.confirmed";
125     public static final String PROCESS_KEY_ELIGIBLE_FOR_COURSE = "kuali.process.registration.eligible.for.course";
126     public static final String PROCESS_KEY_ELIGIBLE_FOR_COURSES = "kuali.process.registration.eligible.for.courses";
127     public static final String PROCESS_KEY_REGISTER_FOR_COURSES = "kuali.process.registration.register.for.courses";
128     public static final String PROCESS_KEY_VIEW_GRADES = "kuali.process.acad.record.view.grades";
129     public static final String PROCESS_KEY_VIEW_GRADES_FOR_TERM = "kuali.process.acad.record.view.grades.for.term";
130     public static final String PROCESS_KEY_VIEW_COURSE_GRADE = "kuali.process.acad.record.view.course.grade";
131 
132     /**
133      * known agenda ids / names
134      */
135     public static final String AGENDA_IS_ALIVE_ID = "kuali.agenda.is.alive";
136     public static final String AGENDA_IS_NOT_SUMMER_TERM_ID = "kuali.agenda.is.not.summer.term";
137 
138     /**
139      * known issue ids / names
140      */
141     public static final String ISSUE_HOLD_LIBRARY_BOOK_OVERDUE_ID = "kuali.hold.issue.library.book.overdue";
142     public static final String ISSUE_HOLD_UPAID_TUITION_FROM_LAST_TERM_ID = "kuali.hold.issue.financial.unpaid.tuition.prior.term";
143 
144 }