| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AppointmentSlot |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2012 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.appointment.infc; | |
| 17 | ||
| 18 | import org.kuali.student.r2.common.infc.IdNamelessEntity; | |
| 19 | ||
| 20 | import java.util.Date; | |
| 21 | ||
| 22 | /** | |
| 23 | * Appointment slot information belonging to a person | |
| 24 | * | |
| 25 | * @Version 1.0 | |
| 26 | * @Author Sri komandur@uw.edu | |
| 27 | */ | |
| 28 | public interface AppointmentSlot extends IdNamelessEntity { | |
| 29 | /** | |
| 30 | * Appointment start date and time ("Aug 05,2012 9:10am") | |
| 31 | * | |
| 32 | * @name Start Date Time | |
| 33 | * @required | |
| 34 | */ | |
| 35 | public Date getStartDate(); | |
| 36 | ||
| 37 | /** | |
| 38 | * Appointment end date and time ("Aug 05,2012 9:20am") | |
| 39 | * | |
| 40 | * If null then it means it has no end but in practice the | |
| 41 | * logic that checks to see if the student can register needs to also | |
| 42 | * check the milestone for the overall registration period to see | |
| 43 | * if the date is not past that date. | |
| 44 | * | |
| 45 | * @impl Duration can be used here instead. However, since duration is in | |
| 46 | * AppointmentWindow, it is more useful to have actual end date and time on | |
| 47 | * an individual appointment | |
| 48 | * @name End Date Time | |
| 49 | */ | |
| 50 | public Date getEndDate(); | |
| 51 | ||
| 52 | /** | |
| 53 | * Appointment window from which this appointment was generated | |
| 54 | * | |
| 55 | * @name Window Id | |
| 56 | * @readOnly | |
| 57 | * @required | |
| 58 | */ | |
| 59 | public String getAppointmentWindowId(); | |
| 60 | } |