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(Set<String> addresses,
       ome.model.meta.Experimenter exp) | 
| String | getAction() | 
| Class<ome.model.IObject> | getObjectClass() | 
| String | getQueryString() | 
| void | onApplicationEvent(EventLogsMessage elm)Handle an application event. | 
| protected void | sendEmail(Collection<ome.model.meta.EventLog> matches) | 
| void | setAction(String action) | 
| void | setObjectClass(Class<ome.model.IObject> klass) | 
| void | setQueryString(String queryString) | 
getAllSystemUsers, getDefaultBody, getExecutor, getMailUtil, getQueryService, getRoles, getSubjectPrefix, getUserEmail, isEnabled, sendBlind, sendBlind, setDefaultBody, setEnabled, setExecutor, setMailUtil, setQueryService, setRoles, setSubjectPrefixpublic String getAction()
public void setAction(String action)
public Class<ome.model.IObject> getObjectClass()
public void setObjectClass(Class<ome.model.IObject> klass)
public String getQueryString()
public void setQueryString(String queryString)
public void onApplicationEvent(EventLogsMessage elm)
org.springframework.context.ApplicationListeneronApplicationEvent in interface org.springframework.context.ApplicationListener<EventLogsMessage>elm - the event to respond toprotected void sendEmail(Collection<ome.model.meta.EventLog> matches)
protected void addUser(Set<String> addresses, ome.model.meta.Experimenter exp)
addUser in class MailSender
                
                
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.