public class ObjectMailSender extends MailSender implements org.springframework.context.ApplicationListener<EventLogsMessage>
EventLogMessage
of the specified type and kind is received,
an email is sent to all users which are returned by a given query. A number
of parameters are made available to the query via a Parameters
instance.log
Constructor and Description |
---|
ObjectMailSender() |
Modifier and Type | Method and Description |
---|---|
protected void |
addUser(java.util.Set<java.lang.String> addresses,
Experimenter exp) |
java.lang.String |
getAction() |
java.lang.Class<IObject> |
getObjectClass() |
java.lang.String |
getQueryString() |
void |
onApplicationEvent(EventLogsMessage elm) |
protected void |
sendEmail(java.util.Collection<EventLog> matches) |
void |
setAction(java.lang.String action) |
void |
setObjectClass(java.lang.Class<IObject> klass) |
void |
setQueryString(java.lang.String queryString) |
getAllSystemUsers, getDefaultBody, getExecutor, getMailUtil, getQueryService, getRoles, getSubjectPrefix, getUserEmail, isEnabled, sendBlind, sendBlind, setDefaultBody, setEnabled, setExecutor, setMailUtil, setQueryService, setRoles, setSubjectPrefix
public java.lang.String getAction()
public void setAction(java.lang.String action)
public java.lang.Class<IObject> getObjectClass()
public void setObjectClass(java.lang.Class<IObject> klass)
public java.lang.String getQueryString()
public void setQueryString(java.lang.String queryString)
public void onApplicationEvent(EventLogsMessage elm)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<EventLogsMessage>
protected void sendEmail(java.util.Collection<EventLog> matches)
protected void addUser(java.util.Set<java.lang.String> addresses, Experimenter exp)
addUser
in class MailSender
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.