Package org.sakaiproject.signup.restful
Class SignupEvent
- java.lang.Object
-
- org.sakaiproject.signup.restful.SignupEvent
-
- All Implemented Interfaces:
Entity,MeetingTypes
public class SignupEvent extends Object implements Entity, MeetingTypes
This class holds the information of sign-up meeting/event for RESTful and it's a wrapper class for SignupMeeting.
- Author:
- Peter Liu
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sakaiproject.entity.api.Entity
Entity.UrlType
-
-
Field Summary
Fields Modifier and Type Field Description static StringALLOCATE_TO_TS_ID_FIELD_NAMEstatic StringSITE_ID_FIELD_NAMEstatic StringUSER_ACTION_TYPE_FIELD_NAMEstatic StringUSER_ADD_TO_WAITLISTstatic String[]USER_ATION_Typesstatic StringUSER_CANCEL_SIGNUPstatic StringUSER_REMOVE_FROM_WAITLISTstatic StringUSER_SIGNUP-
Fields inherited from interface org.sakaiproject.signup.model.MeetingTypes
ANNOUNCEMENT, BIWEEKLY, CUSTOM_TIMESLOTS, DAILY, GROUP, INDIVIDUAL, ONCE_ONLY, WEEKDAYS, WEEKLY
-
-
Constructor Summary
Constructors Constructor Description SignupEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAllocToTSid()String[]getAllowedUserActionTypes()StringgetAvailableStatus()DategetDate()This is a extra field for JSON object to display the event date.StringgetDescription()get the description of the event/meetingDategetEndTime()get the end time of an event/meetingLonggetEventId()get the unique meeting/event Id, which is generated by DBStringgetId()StringgetLocation()get the location, where the event/meeting occursintgetMaxNumberOfAttendees()get the maximum nubmer of the attendees, which is allowed in one time slotIntegergetMaxNumOfSlots()StringgetMeetingType()get the event/meeting type (individual,group and announcement)DategetMyEndTime()DategetMyStartTime()intgetNoOfTimeSlots()This method obtains the number of time slots in the event/meetingStringgetOrganizerName()PermissiongetPermission()get the Permission object, which contains the user's operation permissions on this event/meetingResourcePropertiesgetProperties()LonggetRecurrenceId()get the recurrence Id of the event/meetingStringgetReference()StringgetReference(String arg0)StringgetRepeatType()StringgetServerUrl()DategetSignupBegins()get the signup starting time for the event/meetingDategetSignupDeadline()get the time when the signup process stopsList<SignupAttachment>getSignupMainEventAttachItems()This method provides the attachments for main Sign-up event page and is public to whole site.List<SignupSiteItem>getSignupSiteItems()get a list of SignupSiteItem objects, which indicate the scope of the event/meetingList<SignupTimeslotItem>getSignupTimeSlotItems()get a list of SignupTimeslot objects, which contains the event/meeting segments informationStringgetSiteId()DategetStartTime()get the starting time of the event/meetingStringgetTitle()get the name of the event/meetingStringgetUrl()StringgetUrl(String arg0)StringgetUserActionType()StringgetUserActionWarningMsg()inthashCode()booleanisallowAttendance()check if the meeting/event can take attendancebooleanisAllowComment()booleanisAllowWaitList()booleanisAutoReminder()booleanisCurrentUserSignedUp()booleanisEidInputMode()booleanisMeetingCrossDays()This will test if the event/meeting is cross daysbooleanisMeetingExpired()This method will check if the event/meeting is already expiredbooleanisMySignupEvents()booleanisPassedDeadline()This method will check if the current time has already passed the signup deadlinebooleanisStartToSignUp()This will test if the event/meeting is started to sign upvoidsetAllocToTSid(String allocToTSid)voidsetAllowAttendance(boolean allowAttendance)this is a setter.voidsetAllowComment(boolean allowComment)voidsetAllowedUserActionTypes(String[] types)voidsetAllowWaitList(boolean allowWaitList)voidsetAutoReminder(boolean autoReminder)voidsetAvailableStatus(String availableStatus)voidsetCurrentUserSignedUp(boolean currentUserSignedUp)voidsetDescription(String description)this is a setter.voidsetEidInputMode(boolean eidInputMode)voidsetEndTime(Date endTime)this is a setter.voidsetEventId(Long id)this is a setter.voidsetId(String s)voidsetLocation(String location)this is a setter.voidsetMaxNumOfSlots(Integer maxNumOfSlots)voidsetMeetingType(String meetingType)this is a settervoidsetMyEndTime(Date myEndTime)voidsetMyStartTime(Date myStartTime)voidsetOrganizerName(String organizerName)voidsetPermission(Permission permission)this is a settervoidsetRecurrenceId(Long recurrenceId)this is a setter.voidsetRepeatType(String repeatType)voidsetSignupBegins(Date signupBegins)this is a settervoidsetSignupDeadline(Date signupDeadLine)this is a settervoidsetSignupMainEventAttachItems(List<SignupAttachment> signupMainEventAttachItems)this is a setter. it only holds the attachments, which belongs to the entire event, not to individual time slot or participantvoidsetSignupSiteItems(List<SignupSiteItem> signupSites)this is a settervoidsetSignupTimeSlotItems(List<SignupTimeslotItem> signupTimeSlotItems)this is a setter.voidsetSiteId(String siteId)voidsetStartTime(Date startTime)this is a settervoidsetTitle(String title)this is a settervoidsetUserActionType(String userActionType)voidsetUserActionWarningMsg(String userActionWarningMsg)StringtoString()ElementtoXml(Document doc, Stack stack)
-
-
-
Field Detail
-
USER_SIGNUP
public static final String USER_SIGNUP
- See Also:
- Constant Field Values
-
USER_CANCEL_SIGNUP
public static final String USER_CANCEL_SIGNUP
- See Also:
- Constant Field Values
-
USER_ADD_TO_WAITLIST
public static final String USER_ADD_TO_WAITLIST
- See Also:
- Constant Field Values
-
USER_REMOVE_FROM_WAITLIST
public static final String USER_REMOVE_FROM_WAITLIST
- See Also:
- Constant Field Values
-
USER_ACTION_TYPE_FIELD_NAME
public static final String USER_ACTION_TYPE_FIELD_NAME
- See Also:
- Constant Field Values
-
ALLOCATE_TO_TS_ID_FIELD_NAME
public static final String ALLOCATE_TO_TS_ID_FIELD_NAME
- See Also:
- Constant Field Values
-
SITE_ID_FIELD_NAME
public static final String SITE_ID_FIELD_NAME
- See Also:
- Constant Field Values
-
USER_ATION_Types
public static final String[] USER_ATION_Types
-
-
Method Detail
-
setId
public void setId(String s)
-
getEventId
public Long getEventId()
get the unique meeting/event Id, which is generated by DB- Returns:
- an unique sequence Id
-
setEventId
public void setEventId(Long id)
this is a setter.- Parameters:
id- an unique sequence Id
-
getTitle
public String getTitle()
get the name of the event/meeting- Returns:
- the name of the event/meeting
-
setTitle
public void setTitle(String title)
this is a setter- Parameters:
title- a name of the event/meeting
-
getOrganizerName
public String getOrganizerName()
-
setOrganizerName
public void setOrganizerName(String organizerName)
-
getLocation
public String getLocation()
get the location, where the event/meeting occurs- Returns:
- the location
-
setLocation
public void setLocation(String location)
this is a setter.- Parameters:
location- a location, where the event/meeting occurs
-
getDescription
public String getDescription()
get the description of the event/meeting- Returns:
- a description
-
setDescription
public void setDescription(String description)
this is a setter.- Parameters:
description- a description of an event/meeting
-
getEndTime
public Date getEndTime()
get the end time of an event/meeting- Returns:
- an end time of the event/meeting
-
setEndTime
public void setEndTime(Date endTime)
this is a setter.- Parameters:
endTime- the end time of the event/meeting
-
getAvailableStatus
public String getAvailableStatus()
-
setAvailableStatus
public void setAvailableStatus(String availableStatus)
-
getMeetingType
public String getMeetingType()
get the event/meeting type (individual,group and announcement)- Returns:
- one of the type (individual,group and announcement)
-
setMeetingType
public void setMeetingType(String meetingType)
this is a setter- Parameters:
meetingType- a defined meeting type (individual,group and announcement)
-
getNoOfTimeSlots
public int getNoOfTimeSlots()
This method obtains the number of time slots in the event/meeting- Returns:
- the number of time slots
-
getRecurrenceId
public Long getRecurrenceId()
get the recurrence Id of the event/meeting- Returns:
- the recurrence Id
-
setRecurrenceId
public void setRecurrenceId(Long recurrenceId)
this is a setter.- Parameters:
recurrenceId- a unique Id
-
getStartTime
public Date getStartTime()
get the starting time of the event/meeting- Returns:
- the starting date of the event/meeting
-
setStartTime
public void setStartTime(Date startTime)
this is a setter- Parameters:
startTime- the time when the event/meeting starts
-
getDate
public Date getDate()
This is a extra field for JSON object to display the event date. It's the same as startTime and it will make nested JSON object processing much easier.- Returns:
- a Date object
-
getSignupBegins
public Date getSignupBegins()
get the signup starting time for the event/meeting- Returns:
- a starting time for signup
-
setSignupBegins
public void setSignupBegins(Date signupBegins)
this is a setter- Parameters:
signupBegins- a time when the signup process starts
-
getSignupDeadline
public Date getSignupDeadline()
get the time when the signup process stops- Returns:
- a date of the signup deadline
-
setSignupDeadline
public void setSignupDeadline(Date signupDeadLine)
this is a setter- Parameters:
signupDeadLine- the time when signup process stops
-
isAllowWaitList
public boolean isAllowWaitList()
-
setAllowWaitList
public void setAllowWaitList(boolean allowWaitList)
-
isAllowComment
public boolean isAllowComment()
-
setAllowComment
public void setAllowComment(boolean allowComment)
-
getRepeatType
public String getRepeatType()
-
setRepeatType
public void setRepeatType(String repeatType)
-
isMySignupEvents
public boolean isMySignupEvents()
-
getMyStartTime
public Date getMyStartTime()
-
setMyStartTime
public void setMyStartTime(Date myStartTime)
-
getMyEndTime
public Date getMyEndTime()
-
setMyEndTime
public void setMyEndTime(Date myEndTime)
-
isallowAttendance
public boolean isallowAttendance()
check if the meeting/event can take attendance- Returns:
- true if the meeting/event can take attendance
-
setAllowAttendance
public void setAllowAttendance(boolean allowAttendance)
this is a setter.- Parameters:
allowAttendance- a boolean value
-
getMaxNumberOfAttendees
public int getMaxNumberOfAttendees()
get the maximum nubmer of the attendees, which is allowed in one time slot- Returns:
- the maximum nubmer of the attendees
-
getSignupSiteItems
public List<SignupSiteItem> getSignupSiteItems()
get a list of SignupSiteItem objects, which indicate the scope of the event/meeting- Returns:
- a list of SignupSiteItem objects,
-
setSignupSiteItems
public void setSignupSiteItems(List<SignupSiteItem> signupSites)
this is a setter- Parameters:
SignupSiteItem- a SignupSiteItem object
-
isStartToSignUp
public boolean isStartToSignUp()
This will test if the event/meeting is started to sign up- Returns:
- true if the sign-up begin time is before current time.
-
isMeetingExpired
public boolean isMeetingExpired()
This method will check if the event/meeting is already expired- Returns:
- true if the event/meeting is expired
-
isPassedDeadline
public boolean isPassedDeadline()
This method will check if the current time has already passed the signup deadline- Returns:
- true if the current time has already passed the signup deadline
-
isMeetingCrossDays
public boolean isMeetingCrossDays()
This will test if the event/meeting is cross days- Returns:
- true if the event/meeting is cross days
-
isCurrentUserSignedUp
public boolean isCurrentUserSignedUp()
-
setCurrentUserSignedUp
public void setCurrentUserSignedUp(boolean currentUserSignedUp)
-
getAllowedUserActionTypes
public String[] getAllowedUserActionTypes()
-
setAllowedUserActionTypes
public void setAllowedUserActionTypes(String[] types)
-
getSignupTimeSlotItems
public List<SignupTimeslotItem> getSignupTimeSlotItems()
get a list of SignupTimeslot objects, which contains the event/meeting segments information- Returns:
- a list of SignupTimeslot objects
-
setSignupTimeSlotItems
public void setSignupTimeSlotItems(List<SignupTimeslotItem> signupTimeSlotItems)
this is a setter.- Parameters:
signupTimeSlots- a list of SignupTimeslot objects
-
getSignupMainEventAttachItems
public List<SignupAttachment> getSignupMainEventAttachItems()
This method provides the attachments for main Sign-up event page and is public to whole site.- Returns:
- a list of SignupAttachment objects.
-
setSignupMainEventAttachItems
public void setSignupMainEventAttachItems(List<SignupAttachment> signupMainEventAttachItems)
this is a setter. it only holds the attachments, which belongs to the entire event, not to individual time slot or participant- Parameters:
SignupAttachment- a list of SignupAttachment objects
-
getPermission
public Permission getPermission()
get the Permission object, which contains the user's operation permissions on this event/meeting- Returns:
- a Permission object
-
setPermission
public void setPermission(Permission permission)
this is a setter- Parameters:
permission- a permission object
-
getAllocToTSid
public String getAllocToTSid()
-
setAllocToTSid
public void setAllocToTSid(String allocToTSid)
-
getUserActionType
public String getUserActionType()
-
setUserActionType
public void setUserActionType(String userActionType)
-
getSiteId
public String getSiteId()
-
setSiteId
public void setSiteId(String siteId)
-
isEidInputMode
public boolean isEidInputMode()
-
setEidInputMode
public void setEidInputMode(boolean eidInputMode)
-
isAutoReminder
public boolean isAutoReminder()
-
setAutoReminder
public void setAutoReminder(boolean autoReminder)
-
getProperties
public ResourceProperties getProperties()
- Specified by:
getPropertiesin interfaceEntity
-
getReference
public String getReference()
- Specified by:
getReferencein interfaceEntity
-
getReference
public String getReference(String arg0)
- Specified by:
getReferencein interfaceEntity
-
getServerUrl
public String getServerUrl()
-
getUserActionWarningMsg
public String getUserActionWarningMsg()
-
setUserActionWarningMsg
public void setUserActionWarningMsg(String userActionWarningMsg)
-
getMaxNumOfSlots
public Integer getMaxNumOfSlots()
-
setMaxNumOfSlots
public void setMaxNumOfSlots(Integer maxNumOfSlots)
-
-