@Component(value="cuba_EmailerMBean") public class Emailer extends java.lang.Object implements EmailerMBean
Modifier and Type | Field and Description |
---|---|
protected EmailerConfig |
config |
protected EmailerAPI |
emailer |
protected Persistence |
persistence |
Constructor and Description |
---|
Emailer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFromAddress() |
boolean |
getSmtpAuthRequired() |
int |
getSmtpConnectionTimeoutSec() |
java.lang.String |
getSmtpHost() |
int |
getSmtpPort() |
boolean |
getSmtpSslEnabled() |
int |
getSmtpTimeoutSec() |
java.lang.String |
getSmtpUser() |
boolean |
getStarttlsEnable() |
protected int |
migrateAttachmentsBatch() |
java.lang.String |
migrateEmailsToFileStorage(java.lang.String password) |
protected int |
migrateMessagesBatch() |
java.lang.String |
sendTestEmail(java.lang.String addresses) |
void |
setConfiguration(Configuration configuration) |
void |
setFromAddress(java.lang.String address) |
void |
setSmtpAuthRequired(boolean authRequired) |
void |
setSmtpConnectionTimeoutSec(int timeoutSec) |
void |
setSmtpHost(java.lang.String host) |
void |
setSmtpPort(int port) |
void |
setSmtpSslEnabled(boolean enable) |
void |
setSmtpTimeoutSec(int timeoutSec) |
void |
setSmtpUser(java.lang.String user) |
void |
setStarttlsEnable(boolean enable) |
void |
updateSession() |
@Inject protected EmailerAPI emailer
@Inject protected Persistence persistence
protected EmailerConfig config
@Inject public void setConfiguration(Configuration configuration)
public java.lang.String getFromAddress()
getFromAddress
in interface EmailerMBean
public void setFromAddress(java.lang.String address)
setFromAddress
in interface EmailerMBean
public java.lang.String getSmtpHost()
getSmtpHost
in interface EmailerMBean
public void setSmtpHost(java.lang.String host)
setSmtpHost
in interface EmailerMBean
public int getSmtpPort()
getSmtpPort
in interface EmailerMBean
public void setSmtpPort(int port)
setSmtpPort
in interface EmailerMBean
public java.lang.String getSmtpUser()
getSmtpUser
in interface EmailerMBean
public void setSmtpUser(java.lang.String user)
setSmtpUser
in interface EmailerMBean
public boolean getSmtpAuthRequired()
getSmtpAuthRequired
in interface EmailerMBean
public void setSmtpAuthRequired(boolean authRequired)
setSmtpAuthRequired
in interface EmailerMBean
public boolean getStarttlsEnable()
getStarttlsEnable
in interface EmailerMBean
public void setStarttlsEnable(boolean enable)
setStarttlsEnable
in interface EmailerMBean
public boolean getSmtpSslEnabled()
getSmtpSslEnabled
in interface EmailerMBean
public void setSmtpSslEnabled(boolean enable)
setSmtpSslEnabled
in interface EmailerMBean
public int getSmtpTimeoutSec()
getSmtpTimeoutSec
in interface EmailerMBean
public void setSmtpTimeoutSec(int timeoutSec)
setSmtpTimeoutSec
in interface EmailerMBean
public int getSmtpConnectionTimeoutSec()
getSmtpConnectionTimeoutSec
in interface EmailerMBean
public void setSmtpConnectionTimeoutSec(int timeoutSec)
setSmtpConnectionTimeoutSec
in interface EmailerMBean
public void updateSession()
updateSession
in interface EmailerMBean
public java.lang.String sendTestEmail(java.lang.String addresses)
sendTestEmail
in interface EmailerMBean
public java.lang.String migrateEmailsToFileStorage(java.lang.String password)
migrateEmailsToFileStorage
in interface EmailerMBean
protected int migrateMessagesBatch()
protected int migrateAttachmentsBatch()