Package org.sakaiproject.signup.model
Class SignupTimeslot
- java.lang.Object
-
- org.sakaiproject.signup.model.SignupTimeslot
-
- All Implemented Interfaces:
Comparable
public class SignupTimeslot extends Object implements Comparable
This class holds the information for signup time slot. This object is mapped directly to the DB storage by Hibernate
-
-
Field Summary
Fields Modifier and Type Field Description static intUNLIMITEDa constants maximum number for attendees
-
Constructor Summary
Constructors Constructor Description SignupTimeslot()constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)SignupAttendeegetAttendee(String attendeeId)get the SignupAttendee object according to the attendee's IdSignupAttendeegetWaiter(String attendeeId)get the SignupAttendee object according to the attendee's Id, who is on the waiting list at the time slotbooleanisAvailable()check if current time slot is available for adding more peoplebooleanisUnlimitedAttendee()check if the time slot allows unlimited attendee to join
-
-
-
Field Detail
-
UNLIMITED
public static final int UNLIMITED
a constants maximum number for attendees- See Also:
- Constant Field Values
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
check if current time slot is available for adding more people- Returns:
- true if current time slot is available for adding more people
-
getAttendee
public SignupAttendee getAttendee(String attendeeId)
get the SignupAttendee object according to the attendee's Id- Parameters:
attendeeId- an attendee's Id- Returns:
- a SignupAttendee object
-
getWaiter
public SignupAttendee getWaiter(String attendeeId)
get the SignupAttendee object according to the attendee's Id, who is on the waiting list at the time slot- Parameters:
attendeeId- an attendee's Id- Returns:
- a SignupAttendee object
-
isUnlimitedAttendee
public boolean isUnlimitedAttendee()
check if the time slot allows unlimited attendee to join- Returns:
- true if the time slot allows unlimited attendee to join
-
compareTo
public int compareTo(Object o) throws ClassCastException
- Specified by:
compareToin interfaceComparable- Throws:
ClassCastException
-
-