public interface SignupMeetingService
SignupMeetingService is an interface, which provides methods to manipulate the SignupMeeting object to the DB, send email, post/edit Calendar and check permission.
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllCategories(String siteId)
Get all the Categories from a site
|
List<String> |
getAllLocations(String siteId)
Get all the Locations from a site
|
List<SignupMeeting> |
getAllSignupMeetings(String currentSiteId,
String userId)
This returns a list of SignupMeeting for a specified site that are
available to the user in the site
|
List<SignupMeeting> |
getRecurringSignupMeetings(String currentSiteId,
String userId,
Long recurrenceId,
Date startDate)
This returns a subset list of SignupMeetings with the same recurrenceId from starting date for
the site
|
List<SignupMeeting> |
getSignupMeetings(String currentLocationId,
String currentUserId,
Date searchEndDate)
This returns a subset list of SignupMeeting from Now to searchEndDate for
the site
|
List<SignupMeeting> |
getSignupMeetings(String currentSiteId,
String userId,
Date startDate,
Date endDate)
This returns a subset list of SignupMeeting from startDate to endDate for
the site
|
List<SignupMeeting> |
getSignupMeetingsInSite(String siteId,
Date startDate,
Date endDate)
This returns a subset list of SignupMeeting from startDate to endDate for
the site.
|
List<SignupMeeting> |
getSignupMeetingsInSites(List<String> siteIds,
Date startDate,
Date endDate)
This returns a subset list of SignupMeeting from startDate to endDate for
the sites with out cached
|
List<SignupMeeting> |
getSignupMeetingsInSitesWithCache(List<String> siteIds,
Date startDate,
int timeFrameInDays)
This returns a subset list of SignupMeeting from startDate to endDate for
the sites, The result maybe 5 minutes old due to ECache
|
List<SignupMeeting> |
getSignupMeetingsInSiteWithCache(String siteId,
Date startDate,
int timeFrameInDays)
This returns a subset list of SignupMeeting from startDate to endDate for
the site.
|
boolean |
isAllowedToCreateAnyInSite(String userId,
String siteId)
Check permission for creating event/meeting either at a site level or at
a group level
|
boolean |
isAllowedToCreateinGroup(String userId,
String siteId,
String groupId)
Test to see if the user has permission to create an event/meeting at
group level in the site
|
boolean |
isAllowedToCreateinSite(String userId,
String siteId)
Test to see if the user has permission to create an event/meeting at site
level in the site
|
boolean |
isEventExisted(Long eventId)
Test to see if the event exists.
|
SignupMeeting |
loadSignupMeeting(Long meetingId,
String userId,
String siteId)
This retrieve a SignupMeeting object from database according to the
SignupMeeting Id
|
SignupTargetSiteEventInfo |
loadSignupMeetingWithAutoSelectedSite(Long meetingId,
String userId,
String siteId)
This retrieve a SignupDefaultSiteEvent object from database according to the
SignupMeeting Id.
|
void |
modifyCalendar(SignupMeeting meeting)
This method will modify the posted calendar at Scheduler tool for this
event/meeting
|
void |
postToCalendar(SignupMeeting signupMeeting)
This method will post the event/meeting into the Calendar at Scheduler
tool
|
void |
removeCalendarEvents(List<SignupMeeting> meetings)
This method will remove a list of the posted Calendar for the
events/meetings in Scheduler tool
|
void |
removeCalendarEventsOnModifiedMeeting(List<SignupMeeting> meetings)
This method will remove a list of the posted Calendar for a set of modified
events/meetings in Scheduler tool
|
void |
removeMeetings(List<SignupMeeting> meetings)
This deletes a list of SignupMeeting objects.
|
Long |
saveMeeting(SignupMeeting signupMeeting,
String userId)
This saves meeting object into database
|
void |
saveMeetings(List<SignupMeeting> signupMeetings,
String userId)
This saves meeting objects into database
|
void |
sendCancellationEmail(SignupEventTrackingInfo eventTrackingInfo)
This sends cancellation email to event/meeting organizer as well as to
the people on waiting list, who get promoted due to the attendee's
cancellation
|
void |
sendEmail(SignupMeeting signupMeeting,
String messageType)
This will send different kind of emails to all related participants in a
meeting accourding to the meesage type
|
void |
sendEmailToAttendee(SignupEventTrackingInfo eventTrackingInfo)
Send email to attendee when they sign up/cancel their attendance
|
void |
sendEmailToOrganizer(SignupEventTrackingInfo eventTrackingInfo)
An email will be sent to event/meeting organizer when attendee has taken
some actions such as signup and cancel
|
void |
sendEmailToParticipantsByOrganizerAction(SignupEventTrackingInfo signupEventTrackingInfo)
This will send email to participants by organizer
|
void |
sendUpdateCommentEmail(SignupEventTrackingInfo eventTrackingInfo)
This sends an email notifying the receiver that the comment has been modified
|
void |
updateModifiedMeetings(List<SignupMeeting> meetings,
List<SignupTimeslot> removedTimeslots,
boolean isOrganizer)
This updates a list of SingupMeeting objects into the database storage.
|
void |
updateSignupMeeting(SignupMeeting meeting,
boolean isOrganizer)
This updates the SingupMeeting object into the database storage.
|
void |
updateSignupMeetings(List<SignupMeeting> meetings,
boolean isOrganizer)
This updates a list of SingupMeeting objects into the database storage.
|
List<SignupMeeting> getAllSignupMeetings(String currentSiteId, String userId)
currentSiteId - a unique id which represents the current siteuserId - the internal user id (not username)List<SignupMeeting> getSignupMeetings(String currentLocationId, String currentUserId, Date searchEndDate)
currentLocationId - a unique id which represents the current site IdcurrentUserId - the internal user id (not username)searchEndDate - date,which constraints the search ending date.List<SignupMeeting> getSignupMeetings(String currentSiteId, String userId, Date startDate, Date endDate)
currentSiteId - a unique id which represents the current siteuserId - the internal user id (not username)startDate - date,which constraints the search starting date.endDate - date,which constraints the search ending date.List<SignupMeeting> getSignupMeetingsInSiteWithCache(String siteId, Date startDate, int timeFrameInDays)
siteId - unique id which represents the multiple sitesstartDate - date,which constraints the search starting date.timeFrameInDays - number of days ,which constraints the search ending date.List<SignupMeeting> getSignupMeetingsInSitesWithCache(List<String> siteIds, Date startDate, int timeFrameInDays)
siteIds - a collection of unique ids which represents the multiple sitesstartDate - date,which constraints the search starting date.timeFrameInDays - number of days ,which constraints the search ending date.List<SignupMeeting> getSignupMeetingsInSite(String siteId, Date startDate, Date endDate)
siteId - unique id which represents the multiple sitesstartDate - date,which constraints the search starting date.endDate - end date ,which constraints the search ending date.List<SignupMeeting> getSignupMeetingsInSites(List<String> siteIds, Date startDate, Date endDate)
siteIds - a collection of unique ids which represents the multiple sitesstartDate - date,which constraints the search starting date.endDate - endDate ,which constraints the search ending date.List<SignupMeeting> getRecurringSignupMeetings(String currentSiteId, String userId, Long recurrenceId, Date startDate)
currentSiteId - a unique id which represents the current siteuserId - the internal user id (not username)recurrenceId - recurrenceId,which constraints the recurring meetings.startDate - date,which constraints the search starting date.Long saveMeeting(SignupMeeting signupMeeting, String userId) throws PermissionException
signupMeeting - a SignupMeeting objectuserId - the internal user id (not username)PermissionException - thrown if the user does not have accessvoid saveMeetings(List<SignupMeeting> signupMeetings, String userId) throws PermissionException
signupMeeting - a list of SignupMeeting objectsuserId - the internal user id (not username)PermissionException - thrown if the user does not have accessvoid updateSignupMeeting(SignupMeeting meeting, boolean isOrganizer) throws Exception
meeting - a SignupMeeting objectisOrganizer - true if the user is event-organizerException - thrown if something goes badvoid updateSignupMeetings(List<SignupMeeting> meetings, boolean isOrganizer) throws Exception
meetings - a list of SignupMeeting objectsisOrganizer - true if the user is event-organizerException - thrown if something goes badvoid updateModifiedMeetings(List<SignupMeeting> meetings, List<SignupTimeslot> removedTimeslots, boolean isOrganizer) throws Exception
meetings - a list of SignupMeeting objectsremovedTimeslots - a list of SignupTimeslot objects, which will be removed from the meetingisOrganizer - true if the user is event-organizerException - thrown if something goes badSignupTargetSiteEventInfo loadSignupMeetingWithAutoSelectedSite(Long meetingId, String userId, String siteId)
meetingId - a unique Id for SignupMeeting objectuserId - the internal user id (not username)siteId - a unique id which represents the current siteSignupMeeting loadSignupMeeting(Long meetingId, String userId, String siteId)
meetingId - a unique Id for SignupMeeting objectuserId - the internal user id (not username)siteId - a unique id which represents the current siteboolean isAllowedToCreateinSite(String userId, String siteId)
userId - the internal user id (not username)siteId - a unique id which represents the current siteboolean isAllowedToCreateinGroup(String userId, String siteId, String groupId)
userId - the internal user id (not username)siteId - a unique id which represents the current sitegroupId - a unique id which represents the groupId at the siteboolean isAllowedToCreateAnyInSite(String userId, String siteId)
userId - the internal user id (not username)siteId - a unique id which represents the current sitevoid sendEmail(SignupMeeting signupMeeting, String messageType) throws Exception
signupMeeting - a SignupMeeting objectmessageType - a string type, which classifies what type of message, which
should be emailed awayException - thrown if something goes badvoid sendEmailToOrganizer(SignupEventTrackingInfo eventTrackingInfo) throws Exception
eventTrackingInfo - an EventTrackingInfo object, which contains all the
information about user action such as signup and cancel as
well as auto-promotionException - thrown if something goes badvoid sendCancellationEmail(SignupEventTrackingInfo eventTrackingInfo) throws Exception
eventTrackingInfo - an EventTrackingInfo object, which contains all the
information about user action such as signup and cancel as
well as auto-promotionException - thrown if something goes badvoid sendUpdateCommentEmail(SignupEventTrackingInfo eventTrackingInfo) throws Exception
eventTrackingInfo - an EventTrackingInfo object, which contains all the
information about user action such as signup and cancel as
well as auto-promotionException - thrown if something goes badvoid sendEmailToParticipantsByOrganizerAction(SignupEventTrackingInfo signupEventTrackingInfo) throws Exception
signupEventTrackingInfo - an EventTrackingInfo object, which contains all the
information about user action such as signup and cancel as
well as auto-promotionException - thrown if something goes badvoid postToCalendar(SignupMeeting signupMeeting) throws Exception
signupMeeting - a SignupMeeting objectException - thrown if something goes badvoid modifyCalendar(SignupMeeting meeting) throws Exception
meeting - a SignupMeeting objectException - thrown if something goes badvoid removeMeetings(List<SignupMeeting> meetings) throws Exception
meetings - a list of SignupMeeting objects, which will be deleted from
Database storageException - thrown if something goes badvoid removeCalendarEventsOnModifiedMeeting(List<SignupMeeting> meetings) throws Exception
meetings - a list of SignupMeeting objectsException - thrown if something goes badvoid removeCalendarEvents(List<SignupMeeting> meetings) throws Exception
meetings - a list of SignupMeeting objectsException - thrown if something goes badboolean isEventExisted(Long eventId)
eventId - a Long Id for eventvoid sendEmailToAttendee(SignupEventTrackingInfo eventTrackingInfo) throws Exception
eventTrackingInfo - an EventTrackingInfo object, which contains all the
information about user action such as signup and cancelException - thrown if something goes badList<String> getAllLocations(String siteId) throws Exception
siteId - String - a site IdExceptionCopyright © 2007–2018 Sakai Project. All rights reserved.