public class MailSender
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
MailSender() |
Modifier and Type | Method and Description |
---|---|
protected void |
addUser(java.util.Set<java.lang.String> addresses,
ome.model.meta.Experimenter exp) |
protected java.util.Set<java.lang.String> |
getAllSystemUsers(boolean newTx) |
java.lang.String |
getDefaultBody() |
Executor |
getExecutor() |
MailUtil |
getMailUtil() |
ome.api.IQuery |
getQueryService() |
ome.system.Roles |
getRoles() |
java.lang.String |
getSubjectPrefix() |
protected java.lang.String |
getUserEmail(java.lang.String user) |
boolean |
isEnabled() |
protected void |
sendBlind(java.util.Set<java.lang.String> addresses,
java.lang.String subject) |
protected void |
sendBlind(java.util.Set<java.lang.String> addresses,
java.lang.String subject,
java.lang.String body) |
void |
setDefaultBody(java.lang.String defaultBody) |
void |
setEnabled(boolean enabled) |
void |
setExecutor(Executor executor) |
void |
setMailUtil(MailUtil util) |
void |
setQueryService(ome.api.IQuery query) |
void |
setRoles(ome.system.Roles roles) |
void |
setSubjectPrefix(java.lang.String subjectPrefix) |
public boolean isEnabled()
public void setEnabled(boolean enabled)
public Executor getExecutor()
public void setExecutor(Executor executor)
public MailUtil getMailUtil()
public void setMailUtil(MailUtil util)
public ome.api.IQuery getQueryService()
public void setQueryService(ome.api.IQuery query)
public ome.system.Roles getRoles()
public void setRoles(ome.system.Roles roles)
public java.lang.String getSubjectPrefix()
public void setSubjectPrefix(java.lang.String subjectPrefix)
public java.lang.String getDefaultBody()
public void setDefaultBody(java.lang.String defaultBody)
protected void sendBlind(java.util.Set<java.lang.String> addresses, java.lang.String subject)
protected void sendBlind(java.util.Set<java.lang.String> addresses, java.lang.String subject, java.lang.String body)
protected java.lang.String getUserEmail(java.lang.String user)
protected void addUser(java.util.Set<java.lang.String> addresses, ome.model.meta.Experimenter exp)
protected java.util.Set<java.lang.String> getAllSystemUsers(boolean newTx)