Package org.sakaiproject.signup.model
Class SignupAttendee
- java.lang.Object
-
- org.sakaiproject.signup.model.SignupAttendee
-
- All Implemented Interfaces:
Comparable<SignupAttendee>
public class SignupAttendee extends Object implements Comparable<SignupAttendee>
This class holds the information for signup attendee. It's mapped directly to the DB storage by Hibernate
-
-
Constructor Summary
Constructors Constructor Description SignupAttendee()ConstructorSignupAttendee(String attendeeUserId, String signupSiteId)This is a constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SignupAttendee signupAttendeeToCompare)for sorting purpose.StringgetAttendeeUserId()get the internal user id (not username)StringgetCalendarEventId()get the calendar event IdStringgetCalendarId()get Calendar IdStringgetComments()get the commentsStringgetDisplayName()InstantgetInscriptionTime()StringgetSignupSiteId()get the site Id, which the attendee is inbooleanisAttended()isAttendedvoidsetAttended(boolean attended)this is a setter.voidsetAttendeeUserId(String attendeeId)this is a setter method and it set the internal user id (not username)voidsetCalendarEventId(String calendarEventId)this is a settervoidsetCalendarId(String calendarId)this is a setter.voidsetComments(String comment)this is a setter.voidsetDisplayName(String displayName)voidsetInscriptionTime(Instant inscriptionTime)voidsetSignupSiteId(String signupSiteId)this is a setter.
-
-
-
Method Detail
-
getAttendeeUserId
public String getAttendeeUserId()
get the internal user id (not username)
-
setAttendeeUserId
public void setAttendeeUserId(String attendeeId)
this is a setter method and it set the internal user id (not username)- Parameters:
attendeeId- the internal user id (not username)
-
getCalendarEventId
public String getCalendarEventId()
get the calendar event Id- Returns:
- a calendar event Id string
-
setCalendarEventId
public void setCalendarEventId(String calendarEventId)
this is a setter- Parameters:
calendarEventId- a calendar event Id string
-
getCalendarId
public String getCalendarId()
get Calendar Id- Returns:
- a Calendar Id
-
setCalendarId
public void setCalendarId(String calendarId)
this is a setter.- Parameters:
calendarId- a Calendar Id
-
getComments
public String getComments()
get the comments- Returns:
- a comment string
-
setComments
public void setComments(String comment)
this is a setter.- Parameters:
comment- a comment by user
-
isAttended
public boolean isAttended()
isAttended- Returns:
- a boolean
-
setAttended
public void setAttended(boolean attended)
this is a setter.- Parameters:
attended- boolean of attendance
-
getSignupSiteId
public String getSignupSiteId()
get the site Id, which the attendee is in- Returns:
- a site Id
-
setSignupSiteId
public void setSignupSiteId(String signupSiteId)
this is a setter.- Parameters:
signupSiteId- a site Id
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getInscriptionTime
public Instant getInscriptionTime()
-
setInscriptionTime
public void setInscriptionTime(Instant inscriptionTime)
-
compareTo
public int compareTo(SignupAttendee signupAttendeeToCompare)
for sorting purpose. It's according to string alphabetic order. Last name comes first- Specified by:
compareToin interfaceComparable<SignupAttendee>
-
-