public class SignupTimeslotItem extends Object
This class holds the information of sign-up time slot. It's a wrapper class for RESTful case.
| Modifier and Type | Field and Description |
|---|---|
static int |
UNLIMITED
a constants maximum number for attendees
|
| Constructor and Description |
|---|
SignupTimeslotItem()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<SignupParticipant> |
getAttendees()
get a list of SignupParticipant objects, who have signed up in the time
slot
|
Date |
getEndTime()
get the end time when the time slot ends
|
Long |
getId()
get the sequence Id, which is generated by DB
|
int |
getMaxNoOfAttendees()
get the maximum number of attendees, which is allowed in the time slot
|
Date |
getStartTime()
get the starting time of the time slot
|
List<SignupParticipant> |
getWaitingList()
get a list of SignupParticipant objects, who are on the waiting list in
the time slot
|
boolean |
isAvailable()
check if current time slot is available for adding more people
|
boolean |
isCanceled()
check if this time slot is cancelled
|
boolean |
isDisplayAttendees()
check if the name of Attendee should be display to public
|
boolean |
isLocked()
check if the time slot is locked
|
boolean |
isOnWaitList()
Check to see if current user is on the waiting list
|
boolean |
isSignedUp()
check to see if current user is signed up
|
boolean |
isUnlimitedAttendee()
check if the time slot allows unlimited attendee to join
|
void |
setAttendees(List<SignupParticipant> attendees)
this is a setter
|
void |
setCanceled(boolean cancel)
this is a setter
|
void |
setDisplayAttendees(boolean showAttendees)
this is a setter
|
void |
setEndTime(Date endTime)
this is a setter
|
void |
setId(Long id)
this is a setter
|
void |
setLocked(boolean locked)
this is a setter
|
void |
setMaxNoOfAttendees(int noOfAttendees)
this is a setter
|
void |
setOnWaitList(boolean onWaitList) |
void |
setSignedUp(boolean signedUp) |
void |
setStartTime(Date startTime)
this is a setter
|
void |
setWaitingList(List<SignupParticipant> waitingList)
this is a setter
|
public static final int UNLIMITED
public Long getId()
public void setId(Long id)
id - the sequence Idpublic Date getStartTime()
public void setStartTime(Date startTime)
startTime - the starting time of the time slotpublic Date getEndTime()
public void setEndTime(Date endTime)
endTime - a end timepublic boolean isCanceled()
public void setCanceled(boolean cancel)
cancel - a boolean valuepublic boolean isLocked()
public void setLocked(boolean locked)
locked - a boolean valuepublic List<SignupParticipant> getAttendees()
public void setAttendees(List<SignupParticipant> attendees)
attendees - a list of SignupParticipant objectspublic List<SignupParticipant> getWaitingList()
public void setWaitingList(List<SignupParticipant> waitingList)
waitingList - a list of SignupParticipant objects, who are on the waiting
list in the time slotpublic boolean isDisplayAttendees()
public void setDisplayAttendees(boolean showAttendees)
showAttendees - a boolean valuepublic boolean isAvailable()
public boolean isSignedUp()
public void setSignedUp(boolean signedUp)
public boolean isOnWaitList()
public void setOnWaitList(boolean onWaitList)
public int getMaxNoOfAttendees()
public void setMaxNoOfAttendees(int noOfAttendees)
noOfAttendees - the maximum allowed number of attendeespublic boolean isUnlimitedAttendee()
Copyright © 2003–2021 Sakai Project. All rights reserved.