public class SiteEmailNotificationAnnc extends SiteEmailNotification implements ScheduledInvocationCommand
SiteEmailNotificationAnnc fills the notification message and headers with details from the announcement message that triggered the notification event.
EmailNotification.RunSendToUsersBOUNDARY_LINE, m_siteId, MIME_ADVISORY, MULTIPART_BOUNDARY, TERMINATION_LINE| Constructor and Description |
|---|
SiteEmailNotificationAnnc()
Construct.
|
SiteEmailNotificationAnnc(String siteId)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpecialRecipients(List users,
Reference ref)
Add to the user list any other users who should be notified about this ref's change.
|
protected void |
disableSecurityAdvisor()
remove recent add SecurityAdvisor from stack
|
protected void |
enableSecurityAdvisorToGetAnnouncement()
Establish a security advisor to allow the "embedded" azg work to occur
with no need for additional security permissions.
|
void |
execute(String opaqueContext)
Implementation of command pattern.
|
protected String |
getFromAddress(Event event)
Format the announcement notification from address.
|
protected List |
getHeaders(Event event) |
protected String |
getResourceAbility() |
protected String |
getSubject(Event event)
Format the announcement notification subject line.
|
protected String |
getTag(String title,
boolean shouldUseHtml) |
protected String |
htmlContent(Event event) |
protected EmailNotification |
makeEmailNotification() |
void |
notify(Notification notification,
Event event) |
protected String |
plainTextContent(Event event) |
void |
setEntityManager(EntityManager entityManager) |
void |
setEventTrackingService(EventTrackingService eventTrackingService) |
void |
setNotificationService(NotificationService notificationService) |
void |
setSecurityService(SecurityService securityService) |
void |
setSiteService(SiteService siteService) |
void |
setTimeService(TimeService timeService) |
void |
setUserDirectoryService(UserDirectoryService userDirectoryService) |
getClone, getRecipients, getTo, getToSite, getToSiteNoReply, refineToSiteMembersdigestRecipients, digestRecipients, findHeader, findHeaderValue, getFrom, getFromEventUser, getFromService, getMessage, getOption, getOption, getSite, getType, htmlEnd, htmlHeaders, htmlPreamble, immediateRecipients, immediateRecipients, isImmediateDeliveryOption, isImmediateDeliveryOption, plainTextHeaders, reNotify, set, set, toXmlpublic SiteEmailNotificationAnnc()
public SiteEmailNotificationAnnc(String siteId)
public void setEntityManager(EntityManager entityManager)
public void setSecurityService(SecurityService securityService)
public void setNotificationService(NotificationService notificationService)
public void setEventTrackingService(EventTrackingService eventTrackingService)
public void setTimeService(TimeService timeService)
public void setUserDirectoryService(UserDirectoryService userDirectoryService)
public void setSiteService(SiteService siteService)
protected String getResourceAbility()
getResourceAbility in class SiteEmailNotificationpublic void notify(Notification notification, Event event)
notify in interface NotificationActionnotify in class EmailNotificationprotected String htmlContent(Event event)
htmlContent in class EmailNotificationprotected List getHeaders(Event event)
getHeaders in class EmailNotificationprotected String getTag(String title, boolean shouldUseHtml)
getTag in class EmailNotificationprotected String getSubject(Event event)
getSubject in class EmailNotificationevent - The event that matched criteria to cause the notification.protected String getFromAddress(Event event)
event - The event that matched criteria to cause the notification.protected void addSpecialRecipients(List users, Reference ref)
addSpecialRecipients in class SiteEmailNotificationusers - The user list, already populated based on site visit and resource ability.ref - The entity reference.public void execute(String opaqueContext)
execute in interface ScheduledInvocationCommandopaqueContext - reference (context) for messageprotected void enableSecurityAdvisorToGetAnnouncement()
protected void disableSecurityAdvisor()
protected EmailNotification makeEmailNotification()
makeEmailNotification in class EmailNotificationprotected String plainTextContent(Event event)
plainTextContent in class EmailNotificationCopyright © 2003–2016 The Sakai Foundation. All rights reserved.