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,
ome.model.meta.Experimenter exp) |
java.lang.String |
getAction() |
java.lang.Class<ome.model.IObject> |
getObjectClass() |
java.lang.String |
getQueryString() |
void |
onApplicationEvent(EventLogsMessage elm) |
protected void |
sendEmail(java.util.Collection<ome.model.meta.EventLog> matches) |
void |
setAction(java.lang.String action) |
void |
setObjectClass(java.lang.Class<ome.model.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<ome.model.IObject> getObjectClass()
public void setObjectClass(java.lang.Class<ome.model.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<ome.model.meta.EventLog> matches)
protected void addUser(java.util.Set<java.lang.String> addresses, ome.model.meta.Experimenter exp)
addUser
in class MailSender