001/** 002 * Copyright 2012 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 * 015 */ 016package org.kuali.student.enrollment.class2.acal.util; 017 018import org.kuali.rice.krad.util.KRADConstants; 019 020/** 021 * This class provides constants related to Academic and Holiday Calendars 022 * 023 * @author Kuali Student Team 024 */ 025public class CalendarConstants { 026 027 // Enrollment home page 028 public static final String ENROLLMENT_HOME_VIEW = "enrollmentHomeView"; 029 030 //HolidayCalendar pages 031 public static final String HOLIDAYCALENDAR_COPYPAGE = "holidayCalendarCopyPage"; 032 public static final String HOLIDAYCALENDAR_EDITPAGE = "holidayCalendarEditPage"; 033 public static final String HOLIDAYCALENDAR_FLOWVIEW = "holidayCalendarFlowView"; 034 035 //Dialogs 036 public static final String SEARCH_DELETE_CONFIRMATION_DIALOG = "KS-CalendarSearch-ConfirmDelete-Dialog"; 037 public static final String ACADEMIC_DELETE_CONFIRMATION_DIALOG = "KS-AcademicCalendar-ConfirmDelete-Dialog"; 038 public static final String HOLIDAY_DELETE_CONFIRMATION_DIALOG = "KS-HolidayCalendar-ConfirmDelete-Dialog"; 039 public static final String TERM_DELETE_CONFIRMATION_DIALOG = "KS-AcademicTerm-ConfirmDelete-Dialog"; 040 public static final String ACADEMIC_CALENDAR_OFFICIAL_CONFIRMATION_DIALOG = "KS-AcademicCalendar-ConfirmCalendarOfficial-Dialog"; 041 public static final String ACADEMIC_TERM_OFFICIAL_CONFIRMATION_DIALOG = "KS-AcademicCalendar-ConfirmTermOfficial-Dialog"; 042 public static final String ACADEMIC_TERM_AND_CALENDAR_OFFICIAL_CONFIRMATION_DIALOG = "KS-AcademicCalendar-ConfirmCalendarTermOfficial-Dialog"; 043 044 //Acal 045 public static final String ACAL_CONTROLLER_PATH = "academicCalendar"; 046 public static final String ACAL_VIEW = "academicCalendarFlowView"; 047 public static final String ACADEMIC_CALENDAR_COPY_PAGE = "academicCalendarCopyPage"; 048 public static final String ACADEMIC_CALENDAR_EDIT_PAGE = "academicCalendarEditPage"; 049 050 //HolidayCalendar 051 public static final String HCAL_CONTROLLER_PATH = "holidayCalendar"; 052 public static final String HCAL_EDIT_VIEW = "holidayCalendarFlowView"; 053 054 //calendar types for search 055 public static final String CALENDAR_SEARCH_CONTROLLER_PATH="calendarSearch"; 056 public static final String ACADEMICCALENDER = "AcademicCalendar"; 057 public static final String HOLIDAYCALENDER = "HolidayCalendar"; 058 public static final String TERM = "AcademicTerm"; 059 public static final String SUBTERM = "SubTerm"; 060 public static final String CALENDAR_SEARCH_VIEW= "calendarSearchView"; 061 public static final String CALENDAR_SEARCH_TYPE = "calendarSearchType"; 062 063 //method names 064 public static final String AC_EDIT_METHOD = KRADConstants.START_METHOD; 065 public static final String AC_VIEW_METHOD = KRADConstants.START_METHOD; 066 public static final String AC_COPY_METHOD = "toCopy"; 067 public static final String HC_EDIT_METHOD = KRADConstants.START_METHOD; 068 public static final String HC_VIEW_METHOD = KRADConstants.START_METHOD; 069 public static final String HC_COPY_METHOD = "copyForNew"; 070 071 public static final String CALENDAR_ID = "id"; 072 public static final String PAGE_ID = "pageId"; 073 public static final String READ_ONLY_VIEW = "readOnlyView"; 074 public static final String SELECT_TAB = "selectTab"; 075 public static final String ACAL_INFO_TAB = "info"; 076 public static final String ACAL_TERM_TAB = "term"; 077 078 public static final String DEFAULT_END_TIME = "11:59"; 079 public static final String DEFAULT_DATE_FORMAT = "MM/dd/yyyy"; 080 public static final String DATE_FORMAT = "MM/dd/yyyy HH:mm:ss"; 081 082 public static class MessageKeys{ 083 public static final String INFO_ACADEMIC_CALENDAR_OFFICIAL = "info.enroll.academiccalendar.official"; 084 public static final String INFO_ACADEMIC_CALENDAR_SAVED = "info.enroll.academiccalendar.saved"; 085 public static final String INFO_ACADEMIC_CALENDAR_UPDATED = "info.enroll.academiccalendar.updated"; 086 public static final String INFO_ACADEMIC_CALENDAR_DELETED = "info.enroll.academiccalendar.deleted"; 087 public static final String INFO_HOLIDAY_CALENDAR_DELETED = "info.enroll.holidaycalendar.deleted"; 088 public static final String INFO_HOLIDAY_CALENDAR_OFFICIAL = "info.enroll.holidaycalendar.official"; 089 public static final String INFO_HOLIDAY_CALENDAR_SAVED = "info.enroll.holidaycalendar.saved"; 090 public static final String INFO_SEARCH_DELETE_SUCCESS = "info.enroll.search.delete.success"; 091 public static final String ERROR_DELETING = "error.enroll.search.delete.failed"; 092 public static final String ERROR_DATE_END_REQUIRED = "error.enroll.date.end.required"; 093 public static final String ERROR_TIME_START_AMPM_REQUIRED = "error.enroll.time.start.ampm.required"; 094 public static final String ERROR_TIME_END_AMPM_REQUIRED = "error.enroll.time.end.ampm.required"; 095 public static final String ERROR_ACAL_SAVE_FAILED = "error.enroll.acal.save.failed"; 096 public static final String ERROR_ACAL_OFFICIAL_FAILED = "error.enroll.acal.official.failed"; 097 public static final String ERROR_ACAL_SAVE_TERM_SAVE_FAILED = "error.enroll.acal.term.save.failed"; 098 public static final String ERROR_ACAL_SAVE_TERM_OFFICIAL_FAILED = "error.enroll.acal.term.official.failed"; 099 public static final String ERROR_ACAL_SAVE_EVENT_FAILED = "error.enroll.acal.event.save.failed"; 100 public static final String ERROR_ACAL_SAVE_TERM_KEYDATE_FAILED = "error.enroll.acal.term.keydate.save.failed"; 101 public static final String ERROR_ACAL_SAVE_TERM_EXAMPERIOD_FAILED = "error.enroll.acal.term.examperiod.save.failed"; 102 public static final String ERROR_DUPLICATE_HCAL = "error.enroll.acal.duplicate.hcal"; 103 public static final String ERROR_KEY_DATE_TYPE_REQUIRED = "error.enroll.keydate.type.empty"; 104 public static final String ERROR_KEY_DATE_GROUP_TYPE_REQUIRED = "error.enroll.keydategroup.type.empty"; 105 public static final String ERROR_KEY_DATE_START_DATE_REQUIRED = "error.enroll.keydate.startDate.empty"; 106 public static final String ERROR_KEY_DATE_START_TIME_REQUIRED = "error.enroll.keydate.startTime.empty"; 107 public static final String ERROR_KEY_DATE_END_DATE_REQUIRED = "error.enroll.keydate.endDate.empty"; 108 public static final String ERROR_KEY_DATE_END_TIME_REQUIRED = "error.enroll.keydate.endTime.empty"; 109 public static final String ERROR_DUPLICATE_NAME = "error.enroll.calendar.duplicateName"; 110 public static final String ERROR_DATE_NOT_IN_ACAL_RANGE = "error.enroll.event.dateNotInAcal"; 111 public static final String ERROR_INVALID_DATE_RANGE = "error.enroll.daterange.invalid"; 112 public static final String ERROR_DUPLICATE_TERM_NAME = "error.enroll.term.duplicateName"; 113 public static final String ERROR_TERM_NOT_IN_ACAL_RANGE = "error.enroll.term.dateNotInAcal"; 114 public static final String ERROR_TERM_NOT_IN_TERM_RANGE = "error.enroll.term.dateNotInTerm"; 115 public static final String ERROR_INVALID_DATERANGE_KEYDATE = "error.enroll.keydate.dateNotInTerm"; 116 public static final String ERROR_CALCULATING_INSTRUCTIONAL_DAYS = "error.enroll.acal.instructionaldays.calculation"; 117 public static final String ERROR_NO_PARENT_TERM_FOR_SUBTERM = "error.enroll.acal.term.noParentTermForSubterm"; 118 public static final String ERROR_INVALID_DATE_TIME = "error.enroll.date.time.invalid"; 119 public static final String ERROR_EMPTY_DATES = "error.enroll.examdate.empty"; 120 public static final String ERROR_EXAM_PERIOD_DAYS_VALIDATION = "error.enroll.acal.examperiod.days.validation"; 121 } 122 123 public static final String EMPTY_TERM_CODE = "No Code"; 124 125 //http session attribute keys 126 public static final String SESSION_CALENDAR_SEARCH_TYPE = "sessionCalendarSearchType"; 127 public static final String SESSION_CALENDAR_SEARCH_NAME = "sessionCalendarSearchName"; 128 public static final String SESSION_CALENDAR_SEARCH_YEAR = "sessionCalendarSearchYear"; 129 130 public static final String MESSAGE_CONFIRM_TO_DELETE_SUBTERM = "Are you sure you want to delete the Academic Subterm?"; 131 public static final String MESSAGE_CONFIRM_TO_DELETE_TERM_WITH_SUBTERM = "Are you sure you want to delete the Academic Term? The associated subterms will be deleted as well."; 132 public static final String MESSAGE_CONFIRM_TO_DELETE_TERM_ONLY = "Are you sure you want to delete the Academic Term?"; 133}