Package org.sakaiproject.sitemanage.api
Interface UserNotificationProvider
-
public interface UserNotificationProvider
-
-
Field Summary
Fields Modifier and Type Field Description static StringNOTIFY_FROM_CURRENT_USERConfiguration parameter for sakai.properties.static StringSITE_REF_PREFIXEntity prefix for sites
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyAddedParticipant(boolean nonOfficialAccount, org.sakaiproject.user.api.User user, org.sakaiproject.site.api.Site site)Send email notification to added participant indicating they have been added to a site.booleannotifyCourseRequestAuthorizer(String instructorId, String requestEmail, String replyToEmail, String termTitle, String requestSectionInfo, String siteTitle, String siteId, String additionalInfo, String serverName)send course site request information to course authorizer return true if such email sent successfully; false otherwisevoidnotifyCourseRequestRequester(String requestEmail, String supportEmailContent, String termTitle)notify course site requesterStringnotifyCourseRequestSupport(String requestEmail, String serverName, String request, String termTitle, int requestListSize, String requestSectionInfo, String officialAccountName, String siteTitle, String siteId, String additionalInfo, boolean requireAuthorizer, String authorizerNotified, String authorizerNotNotified)notify support team about course creationvoidnotifyNewUserEmail(org.sakaiproject.user.api.User newUser, String newUserPassword, org.sakaiproject.site.api.Site site)Send an email to newly added user informing them of their password.voidnotifySiteCreation(org.sakaiproject.site.api.Site site, List<String> notifySites, boolean courseSite, String termTitle, String requestEmail, boolean sendToRequestEmail, boolean sendToUser)notification for site creationvoidnotifySiteImportCompleted(String toEmail, Locale locale, String siteId, String siteTitle)Notifies user when the course site import completedvoidnotifyTemplateUse(org.sakaiproject.site.api.Site templateSite, org.sakaiproject.user.api.User templateUser, org.sakaiproject.site.api.Site targetSite)send email notification to template contact people about template usage
-
-
-
Field Detail
-
NOTIFY_FROM_CURRENT_USER
static final String NOTIFY_FROM_CURRENT_USER
Configuration parameter for sakai.properties. Should the added participant emails come from the current user. The new account emails shouldn't use the current user as we don't want bounces containing passwords going back to the user who added it.- See Also:
- Constant Field Values
-
SITE_REF_PREFIX
static final String SITE_REF_PREFIX
Entity prefix for sites- See Also:
- Constant Field Values
-
-
Method Detail
-
notifyNewUserEmail
void notifyNewUserEmail(org.sakaiproject.user.api.User newUser, String newUserPassword, org.sakaiproject.site.api.Site site)Send an email to newly added user informing them of their password.- Parameters:
newUser- The newly created user.newUserPassword- The password for the newly created user.site- The site in which the new user was created.
-
notifyAddedParticipant
void notifyAddedParticipant(boolean nonOfficialAccount, org.sakaiproject.user.api.User user, org.sakaiproject.site.api.Site site)Send email notification to added participant indicating they have been added to a site.- Parameters:
nonOfficialAccount-trueif the added user is a guest user rather than an official one.user- The user who was newly added to the site.site- The site to which the user was added as a participant.
-
notifyTemplateUse
void notifyTemplateUse(org.sakaiproject.site.api.Site templateSite, org.sakaiproject.user.api.User templateUser, org.sakaiproject.site.api.Site targetSite)send email notification to template contact people about template usage- Parameters:
templateSiteId-templateUser-templateSiteTitle-targetSite-
-
notifySiteCreation
void notifySiteCreation(org.sakaiproject.site.api.Site site, List<String> notifySites, boolean courseSite, String termTitle, String requestEmail, boolean sendToRequestEmail, boolean sendToUser)notification for site creation- Parameters:
site-notifySites-courseSite-termTitle-requestEmail-sendToRequestEmail- if the email should be sent to requestEmail given.sendToUser- if the email should be sent to the user who created the site
-
notifyCourseRequestAuthorizer
boolean notifyCourseRequestAuthorizer(String instructorId, String requestEmail, String replyToEmail, String termTitle, String requestSectionInfo, String siteTitle, String siteId, String additionalInfo, String serverName)
send course site request information to course authorizer return true if such email sent successfully; false otherwise- Parameters:
instructorId-requestEmail-replyToEmail-termTitle-requestSectionInfo-siteTitle-siteId-additionalInfo-serverName-- Returns:
-
notifyCourseRequestSupport
String notifyCourseRequestSupport(String requestEmail, String serverName, String request, String termTitle, int requestListSize, String requestSectionInfo, String officialAccountName, String siteTitle, String siteId, String additionalInfo, boolean requireAuthorizer, String authorizerNotified, String authorizerNotNotified)
notify support team about course creation- Parameters:
requestEmail-serverName-request-termTitle-requestListSize-requestSectionInfo-officialAccountName-siteTitle-siteId-additionalInfo-requireAuthorizer-authorizerNotified-authorizerNotNotified-- Returns:
-
notifyCourseRequestRequester
void notifyCourseRequestRequester(String requestEmail, String supportEmailContent, String termTitle)
notify course site requester- Parameters:
requestEmail-supportEmailContent-termTitle-
-
-