Coverage Report - org.kuali.student.r2.common.util.constants.LprServiceConstants
 
Classes in this File Line Coverage Branch Coverage Complexity
LprServiceConstants
0%
0/12
N/A
0
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.common.util.constants;
 12  
 
 13  
 import org.kuali.student.enrollment.lpr.dto.LprInfo;
 14  
 import org.kuali.student.r2.common.constants.CommonServiceConstants;
 15  
 
 16  
 /**
 17  
  * Constants used by for LprService
 18  
  * 
 19  
  * @author nwright
 20  
  */
 21  0
 public class LprServiceConstants {
 22  
 
 23  
     /**
 24  
      * Reference Object URI's
 25  
      */
 26  
     public static final String NAMESPACE = CommonServiceConstants.REF_OBJECT_URI_GLOBAL_PREFIX + "lpr";
 27  0
     public static final String REF_OBJECT_URI_LUI_PERSON_RELATION = NAMESPACE + "/"
 28  
             + LprInfo.class.getSimpleName();
 29  
     /**
 30  
      * Types and known groups of types
 31  
      */
 32  
     public static final String LPR_KEY_PREFIX = "kuali.lpr";
 33  
     public static final String INSTRUCTOR_MAIN_TYPE_KEY = "kuali.lpr.type.instructor.main";
 34  
     public static final String INSTRUCTOR_ASSISTANT_TYPE_KEY = "kuali.lpr.type.instructor.assistant";
 35  
     public static final String INSTRUCTOR_SUPPORT_TYPE_KEY = "kuali.lpr.type.instructor.support";
 36  
     public static final String REGISTRANT_TYPE_KEY = "kuali.lpr.type.registrant";
 37  
     public static final String ENROLLEE_TYPE_KEY = "kuali.lpr.type.enrollee";
 38  
     public static final String ADVISOR_TYPE_KEY = "kuali.lpr.type.advisor";
 39  
 
 40  
     // lpr transaction type
 41  
     public static final String LPRTRANS_REGISTER_TYPE_KEY = "kuali.lpr.trans.type.register";
 42  
 
 43  
     // lpr transaction item request options
 44  
     public static final String LPRTRANS_ITEM__WAITLIST_OPTION_KEY = "kuali.lpr.option.waitlist";
 45  
     public static final String LPRTRANS_ITEM_HOLD_UNTIL_LIST_OPTION_KEY = "kuali.lpr.option.hold.until.list";
 46  
 
 47  
     // lpr transaction item types (operations)
 48  
     public static final String LPRTRANS_ITEM_ADD_TYPE_KEY = "kuali.lpr.trans.item.type.add";
 49  
     public static final String LPRTRANS_ITEM_DROP_TYPE_KEY = "kuali.lpr.trans.item.type.drop";
 50  
     public static final String LPRTRANS_ITEM_SWAP_TYPE_KEY = "kuali.lpr.trans.item.type.swap";
 51  
     public static final String LPRTRANS_ITEM_UPDATE_TYPE_KEY = "kuali.lpr.trans.item.type.update";
 52  
     public static final String LPRTRANS_ITEM_ADD_TO_WAITLIST_TYPE_KEY = "kuali.lpr.trans.item.type.add.to.waitlist";
 53  
     public static final String LPRTRANS_ITEM_ADD_TO_HOLD_UNTIL_LIST_TYPE_KEY = "kuali.lpr.trans.item.type.add.to.hold.until.list";
 54  
 
 55  
     // transaction states
 56  
     public static final String LPRTRANS_NEW_STATE_KEY = "kuali.lpr.trans.item.state.new";
 57  
     public static final String LPRTRANS_SUCCEEDED_STATE_KEY = "kuali.lpr.trans.item.state.succeeded";
 58  
     public static final String LPRTRANS_FAILED_STATE_KEY = "kuali.lpr.trans.state.failed";
 59  
     public static final String LPRTRANS_DISCARDED_STATE_KEY = "kuali.lpr.trans.state.discarded";
 60  
 
 61  
     // transaction item states
 62  
     public static final String LPRTRANS_ITEM_NEW_STATE_KEY = "kuali.lpr.trans.item.state.new";
 63  
     public static final String LPRTRANS_ITEM_SUCCEEDED_STATE_KEY = "kuali.lpr.trans.item.state.succeeded";
 64  
     public static final String LPRTRANS_ITEM_FAILED_STATE_KEY = "kuali.lpr.trans.item.state.failed";
 65  0
     public static final String[] LPRTRANS_ITEM_TYPE_KEYS = {LPRTRANS_ITEM_UPDATE_TYPE_KEY, LPRTRANS_ITEM_ADD_TYPE_KEY,
 66  
         LPRTRANS_ITEM_DROP_TYPE_KEY};
 67  0
     public static final String[] COURSE_INSTRUCTOR_TYPE_KEYS = {INSTRUCTOR_MAIN_TYPE_KEY,
 68  
         INSTRUCTOR_ASSISTANT_TYPE_KEY, INSTRUCTOR_SUPPORT_TYPE_KEY};
 69  0
     public static final String[] COURSE_STUDENT_TYPE_KEYS = {REGISTRANT_TYPE_KEY};
 70  
 
 71  
     /**
 72  
      * LprRoster types
 73  
      */
 74  
     public static final String LPRROSTER_COURSE_FINAL_GRADEROSTER_TYPE_KEY = "kuali.lpr.roster.type.course.grade.final";
 75  
     // reverted public static final String LPRROSTER_COURSE_FINAL_GRADEROSTER_TYPE_KEY = "kuali.roster.type.course.assessment.final ";
 76  
     // roster type keys
 77  
     // TODO: rename the one above to the one below as they point to the same thing
 78  
     public static final String LPRROSTER_COURSE_FINAL_GRADE_TYPE_KEY = "kuali.lpr.roster.type.course.grade.final";
 79  
     public static final String LPRROSTER_COURSE_MIDTERM_GRADE_TYPE_KEY = "kuali.lpr.roster.type.course.assessment.interim.midterm";
 80  
     public static final String LPRROSTER_COURSE_WAITLIST_TYPE_KEY = "kuali.lpr.roster.type.course.waitlist";
 81  
     public static final String LPRROSTER_COURSE_HOLD_UNTIL_LIST_TYPE_KEY = "kuali.lpr.roster.type.course.hold.until.list";    
 82  
 
 83  
     /**
 84  
      * LprRoster states
 85  
      */
 86  
       // grading roster process and state key
 87  
     public static final String LPRROSTER_GRADING_POCESS_KEY = "kuali.lpr.roster.process.course.grading";
 88  
     public static final String LPRROSTER_READY_STATE_KEY = "kuali.lpr.roster.state.ready";    
 89  
     public static final String LPRROSTER_SAVED_STATE_KEY = "kuali.lpr.roster.state.saved";
 90  
     public static final String LPRROSTER_SUBMITTED_STATE_KEY = "kuali.lpr.roster.state.submitted";
 91  0
     public static final String[] LPRROSTER_GRADING_POCESS_KEYS = {LPRROSTER_READY_STATE_KEY, LPRROSTER_SAVED_STATE_KEY,
 92  
         LPRROSTER_SUBMITTED_STATE_KEY};
 93  
 
 94  
     // other roster process state keys
 95  
     public static final String LPRROSTER_LIST_POCESS_KEY = "kuali.lpr.roster.process.lists";   
 96  
     public static final String LPRROSTER_CREATED_STATE_KEY = "kuali.lpr.roster.state.created";    
 97  0
     public static final String[] LPRROSTER_LIST_POCESS_KEYS = {LPRROSTER_CREATED_STATE_KEY};
 98  
 
 99  
     // TODO: switch these constants to those above since they now point to the same thing
 100  
     public static final String LPRROSTER_COURSE_FINAL_GRADEROSTER_NEW_STATE_KEY = "kuali.lpr.roster.state.created"; // Is this needed/to-be-used?
 101  
     public static final String LPRROSTER_COURSE_FINAL_GRADEROSTER_READY_STATE_KEY = "kuali.lpr.roster.state.ready";
 102  
     public static final String LPRROSTER_COURSE_FINAL_GRADEROSTER_SAVED_STATE_KEY = "kuali.lpr.roster.state.saved";
 103  
     public static final String LPRROSTER_COURSE_FINAL_GRADEROSTER_SUBMITTED_STATE_KEY = "kuali.lpr.roster.state.submitted";
 104  
 
 105  
     /**
 106  
      * Student states to courses
 107  
      */
 108  
     public static final String PLANNED_STATE_KEY = "kuali.lpr.state.planned";
 109  
     public static final String REGISTERED_STATE_KEY = "kuali.lpr.state.registered";
 110  
     public static final String WAITLISTED_STATE_KEY = "kuali.lpr.state.waitlisted";
 111  
     public static final String DROPPED_STATE_KEY = "kuali.lpr.state.dropped.early";
 112  
     public static final String DROPPED_LATE_STATE_KEY = "kuali.lpr.state.dropped.late";
 113  
 
 114  
     /**
 115  
      * Instructor states
 116  
      */
 117  
     public static final String TENATIVE_STATE_KEY = "kuali.lpr.state.tentative";
 118  
     public static final String ASSIGNED_STATE_KEY = "kuali.lpr.state.assigned";
 119  
     public static final String UNASSIGNED_STATE_KEY = "kuali.lpr.state.unassigned";
 120  
 
 121  
     /**
 122  
      * Program states
 123  
      */
 124  
     public static final String INQUIRED_STATE_KEY = "kuali.lpr.state.inquired";
 125  
     public static final String APPLIED_STATE_KEY = "kuali.lpr.state.applied";
 126  
     public static final String ADMITTED_STATE_KEY = "kuali.lpr.state.admitted ";
 127  
     public static final String DENIED_STATE_KEY = "kuali.lpr.state.denied";
 128  
     public static final String CONFIRMED_STATE_KEY = "kuali.lpr.state.confirmed";
 129  
     public static final String CANCELED_STATE_KEY = "kuali.lpr.state.canceled";
 130  
     public static final String DEFERED_STATE_KEY = "kuali.lpr.state.defered";
 131  
     public static final String ENROLLED_STATE_KEY = "kuali.lpr.state.enrolled";
 132  
     public static final String TEMPORARY_ABSENCE_STATE_KEY = "kuali.lpr.state.temp.absence";
 133  
     public static final String WITHDRAWN_STATE_KEY = "kuali.lpr.state.withdrawn";
 134  
     public static final String PROBATION_STATE_KEY = "kuali.lpr.state.probation";
 135  
 
 136  
     // advisor states
 137  
     public static final String ACTIVE_STATE_KEY = "kuali.lpr.state.active";
 138  
     public static final String INACTIVE_STATE_KEY = "kuali.lpr.state.inactive";
 139  
 
 140  
     /**
 141  
      * States used for isntructors of courses
 142  
      */
 143  
     public static final String INSTRUCTOR_COURSE_ASSIGNMENT_PROCESS_KEY = "kuali.lpr.process.instructor.course.assignment";
 144  0
     public static final String[] INSTRUCTOR_COURSE_ASSIGNMENT_STATE_KEYS = {TENATIVE_STATE_KEY, ASSIGNED_STATE_KEY,
 145  
         UNASSIGNED_STATE_KEY};
 146  
 
 147  
     /**
 148  
      * States used for students in courses
 149  
      */
 150  
     public static final String STUDENT_COURSE_REGISTRATION_PROCESS_KEY = "kuali.lpr.process.student.course.registration";
 151  0
     public static final String[] STUDENT_COURSE_REGISTRATION_STATE_KEYS = {PLANNED_STATE_KEY, REGISTERED_STATE_KEY,
 152  
         WAITLISTED_STATE_KEY, DROPPED_STATE_KEY, DROPPED_LATE_STATE_KEY};
 153  
 
 154  
     /**
 155  
      * States used for instructors of PROGRAMS
 156  
      */
 157  
     public static final String PROGRAM_ADVISOR_ASSIGNMENT_PROCESS_KEY = "kuali.lpr.process.program.advisor.assignment";
 158  0
     public static final String[] PROGRAM_ADVISOR_ASSIGNMENT_STATE_KEYS = {ACTIVE_STATE_KEY, INACTIVE_STATE_KEY};
 159  
 
 160  
     /**
 161  
      * Types used for students in PROGRAMS
 162  
      */
 163  
     public static final String STUDENT_PROGRAM_ENROLLMENT_PROCESS_KEY = "kuali.lpr.process.student.program.enrollment";
 164  0
     public static final String[] STUDENT_PROGRAM_ENROLLMENT_STATE_KEYS = {PLANNED_STATE_KEY, INQUIRED_STATE_KEY,
 165  
         APPLIED_STATE_KEY, WAITLISTED_STATE_KEY, DENIED_STATE_KEY, CONFIRMED_STATE_KEY, CANCELED_STATE_KEY,
 166  
         DEFERED_STATE_KEY, ENROLLED_STATE_KEY, TEMPORARY_ABSENCE_STATE_KEY, WITHDRAWN_STATE_KEY,
 167  
         PROBATION_STATE_KEY};
 168  
 
 169  
     /**
 170  
      * All process keys
 171  
      */
 172  0
     public static final String[] LPR_PROCESS_KEYS = {STUDENT_COURSE_REGISTRATION_PROCESS_KEY,
 173  
         INSTRUCTOR_COURSE_ASSIGNMENT_PROCESS_KEY, STUDENT_PROGRAM_ENROLLMENT_PROCESS_KEY,
 174  
         PROGRAM_ADVISOR_ASSIGNMENT_PROCESS_KEY};
 175  
 }