public class TimeslotWrapper extends Object implements Comparable
This class is a wrapper class for SignupTimeslot for UI purpose
| Constructor and Description |
|---|
TimeslotWrapper(org.sakaiproject.signup.model.SignupTimeslot slot)
Constructor
|
TimeslotWrapper(org.sakaiproject.signup.model.SignupTimeslot slot,
String currentUserId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttendee(org.sakaiproject.signup.model.SignupAttendee attendee,
String displayName)
This method performs adding attendee into current time slot.
|
int |
compareTo(Object o) |
List<AttendeeWrapper> |
getAttendeeWrappers()
This is a getter method for UI.
|
int |
getAvailability()
This is a getter method for UI.
|
boolean |
getAvailableForSignup()
This is a getter method for UI.
|
String |
getCurrentUserId() |
boolean |
getDeleted() |
AttendeeWrapper[] |
getDisplayAttendees()
This is a getter method for UI.
|
String |
getErrorStyle() |
String |
getGroupId()
Helper to get the groupId associated with a timeslot
|
String |
getLabel()
This is a getter method, which gives a formated timeslot period.
|
List<SelectItem> |
getMoveAvailableTimeSlots()
This is a getter method for UI.
|
org.sakaiproject.signup.model.SignupAttendee |
getNewAttendee()
This is a getter.
|
boolean |
getNewlyAddedTS() |
boolean |
getNewTimeslotBlock() |
int |
getNumberOnWaitingList()
This is a getter method for UI.
|
int |
getPositionInTSlist()
This is a getter method for UI (javaScript function needs it).
|
int |
getRankingOnWaiting()
This is a getter method for UI.
|
int |
getSizeOfWaitingList()
This is a getter method for UI.
|
List<SelectItem> |
getSwapDropDownList()
This is a getter method for UI.
|
org.sakaiproject.signup.model.SignupTimeslot |
getTimeSlot()
This is a getter for UI.
|
int |
getTsMarker() |
List<AttendeeWrapper> |
getWaitingList()
This is a getter method for UI.
|
boolean |
isCurrentUserOnWaitingList()
This is a getter method for UI.
|
boolean |
isCurrentUserSignedUp()
This is a getter method for UI.
|
void |
removeAttendee(String attendeeUserId)
This method performs removing attendee from current time slot.
|
void |
setAttendeeWrappers(List<AttendeeWrapper> attendeeWrappers)
This is a setter.
|
void |
setCurrentUserId(String currentUserId)
This is a setter.
|
void |
setDeleted(boolean deleted) |
void |
setErrorStyle(String errorStyle) |
void |
setMoveAvailableTimeSlots(List<SelectItem> moveAvailableTimeSlots)
This is a setter.
|
void |
setNewAttendee(org.sakaiproject.signup.model.SignupAttendee newAttendee)
This is a setter.
|
void |
setPositionInTSlist(int positionInTSlist)
This is a setter.
|
void |
setRankingOnWaiting(int rankingOnWaiting)
This is a setter.
|
void |
setSwapDropDownList(List<SelectItem> swapDropDownList)
This is a setter.
|
void |
setTsMarker(int tsMarker) |
void |
setWaitingList(List<AttendeeWrapper> waitingList)
This is a setter.
|
public TimeslotWrapper(org.sakaiproject.signup.model.SignupTimeslot slot)
slot - a SignupTimeslot object.public TimeslotWrapper(org.sakaiproject.signup.model.SignupTimeslot slot,
String currentUserId)
slot - a SignupTimeslot object.currentUserId - a sakai unique internal user id.public org.sakaiproject.signup.model.SignupTimeslot getTimeSlot()
public boolean isCurrentUserSignedUp()
public boolean isCurrentUserOnWaitingList()
public void setCurrentUserId(String currentUserId)
currentUserId - an unique sakai internal user Id.public String getCurrentUserId()
public AttendeeWrapper[] getDisplayAttendees()
public List<AttendeeWrapper> getAttendeeWrappers()
public void setAttendeeWrappers(List<AttendeeWrapper> attendeeWrappers)
attendeeWrappers - a list of AttendeeWrapper objects.public List<AttendeeWrapper> getWaitingList()
public int getSizeOfWaitingList()
public void setWaitingList(List<AttendeeWrapper> waitingList)
waitingList - a list of AttendeeWrapper objects.public boolean getAvailableForSignup()
public org.sakaiproject.signup.model.SignupAttendee getNewAttendee()
public void setNewAttendee(org.sakaiproject.signup.model.SignupAttendee newAttendee)
newAttendee - a SignupAttendee object.public int getAvailability()
public int getNumberOnWaitingList()
public int getRankingOnWaiting()
public void setRankingOnWaiting(int rankingOnWaiting)
rankingOnWaiting - an int value.public List<SelectItem> getSwapDropDownList()
public void setSwapDropDownList(List<SelectItem> swapDropDownList)
swapDropDownList - a list of SelectItem objects.public List<SelectItem> getMoveAvailableTimeSlots()
public void setMoveAvailableTimeSlots(List<SelectItem> moveAvailableTimeSlots)
moveAvailableTimeSlots - a list of SelectItem objects.public String getLabel()
public int getPositionInTSlist()
public void setPositionInTSlist(int positionInTSlist)
positionInTSlist - an int value.public void addAttendee(org.sakaiproject.signup.model.SignupAttendee attendee,
String displayName)
attendee - a SignupAttendee object.displayName - a string of user display name.public void removeAttendee(String attendeeUserId)
attendeeUserId - a unique sakai internal user id.public int compareTo(Object o) throws ClassCastException
compareTo in interface ComparableClassCastExceptionpublic int getTsMarker()
public void setTsMarker(int tsMarker)
public boolean getNewlyAddedTS()
public boolean getDeleted()
public void setDeleted(boolean deleted)
public boolean getNewTimeslotBlock()
public String getErrorStyle()
public void setErrorStyle(String errorStyle)
public String getGroupId()
Copyright © 2007-2014 Sakai Project. All Rights Reserved.