限定符和类型 | 字段和说明 |
---|---|
private CacheEntity<java.lang.Short,org.springframework.mail.javamail.JavaMailSenderImpl> |
cache |
static java.lang.String |
CONFIG_AUTH |
static java.lang.String |
CONFIG_CODE |
static java.lang.String |
CONFIG_CODE_DESCRIPTION |
static java.lang.String |
CONFIG_DEFAULTENCODING |
static java.lang.String |
CONFIG_FROMADDRESS |
static java.lang.String |
CONFIG_HOST |
static java.lang.String |
CONFIG_PASSWORD |
static java.lang.String |
CONFIG_PERSONAL |
static java.lang.String |
CONFIG_PORT |
static java.lang.String |
CONFIG_SSL |
static java.lang.String |
CONFIG_TIMEOUT |
static java.lang.String |
CONFIG_USERNAME |
protected ConfigDataComponent |
configDataComponent |
private org.apache.commons.logging.Log |
log |
private static java.util.concurrent.ExecutorService |
pool |
CONFIG_CODE_DESCRIPTION_SUFFIX, CONFIGPREFIX, INPUT_TYPE_EDITORS, INPUT_TYPE_FILES, INPUT_TYPE_PRIVATE_FILES, INPUTTYPE_BOOLEAN, INPUTTYPE_CAPTCHA, INPUTTYPE_CATEGORY, INPUTTYPE_CATEGORY_PATH, INPUTTYPE_CATEGORYTYPE, INPUTTYPE_COLOR, INPUTTYPE_CONTENT, INPUTTYPE_CONTENT_STATUS, INPUTTYPE_DATE, INPUTTYPE_DATETIME, INPUTTYPE_DEPT, INPUTTYPE_DICTIONARY, INPUTTYPE_EMAIL, INPUTTYPE_FILE, INPUTTYPE_IMAGE, INPUTTYPE_KEYVALUE, INPUTTYPE_KEYWORDS, INPUTTYPE_LANG, INPUTTYPE_MODULE, INPUTTYPE_NUMBER, INPUTTYPE_PASSWORD, INPUTTYPE_PRIVATEFILE, INPUTTYPE_PRIVATEIMAGE, INPUTTYPE_PRIVATEVIDEO, INPUTTYPE_SURVEY, INPUTTYPE_TAG, INPUTTYPE_TAGTYPE, INPUTTYPE_TEMPLATE, INPUTTYPE_TEXT, INPUTTYPE_TEXTAREA, INPUTTYPE_TIME, INPUTTYPE_USER, INPUTTYPE_VIDEO, INPUTTYPE_VOTE
构造器和说明 |
---|
EmailComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
void |
clear(short siteId) |
void |
destroy() |
java.lang.String |
getCode(short siteId,
boolean showAll) |
java.lang.String |
getCodeDescription(java.util.Locale locale) |
java.util.List<SysExtendField> |
getExtendFieldList(SysSite site,
java.util.Locale locale) |
org.springframework.mail.javamail.JavaMailSender |
getMailSender(short siteId,
java.util.Map<java.lang.String,java.lang.String> config) |
void |
initCache(CacheEntityFactory cacheEntityFactory) |
boolean |
send(short siteId,
java.lang.String[] toAddress,
java.lang.String[] cc,
java.lang.String[] bcc,
java.lang.String title,
java.lang.String content) |
private boolean |
send(short siteId,
java.lang.String[] toAddress,
java.lang.String[] cc,
java.lang.String[] bcc,
java.lang.String title,
java.lang.String content,
boolean isHtml,
java.lang.String[] fileNames,
java.io.File[] files) |
boolean |
send(short siteId,
java.lang.String[] toAddress,
java.lang.String[] cc,
java.lang.String[] bcc,
java.lang.String title,
java.lang.String content,
java.lang.String[] fileNames,
java.io.File[] files) |
boolean |
send(short siteId,
java.lang.String toAddress,
java.lang.String title,
java.lang.String content) |
boolean |
sendHtml(short siteId,
java.lang.String[] toAddress,
java.lang.String[] cc,
java.lang.String[] bcc,
java.lang.String title,
java.lang.String html) |
boolean |
sendHtml(short siteId,
java.lang.String[] toAddress,
java.lang.String[] cc,
java.lang.String[] bcc,
java.lang.String title,
java.lang.String html,
java.lang.String[] fileNames,
java.io.File[] files) |
boolean |
sendHtml(short siteId,
java.lang.String toAddress,
java.lang.String title,
java.lang.String html) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportable, getCode, getMessage
public static final java.lang.String CONFIG_CODE
public static final java.lang.String CONFIG_DEFAULTENCODING
public static final java.lang.String CONFIG_HOST
public static final java.lang.String CONFIG_PORT
public static final java.lang.String CONFIG_USERNAME
public static final java.lang.String CONFIG_PASSWORD
public static final java.lang.String CONFIG_TIMEOUT
public static final java.lang.String CONFIG_AUTH
public static final java.lang.String CONFIG_SSL
public static final java.lang.String CONFIG_FROMADDRESS
public static final java.lang.String CONFIG_PERSONAL
public static final java.lang.String CONFIG_CODE_DESCRIPTION
private final org.apache.commons.logging.Log log
protected ConfigDataComponent configDataComponent
private CacheEntity<java.lang.Short,org.springframework.mail.javamail.JavaMailSenderImpl> cache
private static java.util.concurrent.ExecutorService pool
public org.springframework.mail.javamail.JavaMailSender getMailSender(short siteId, java.util.Map<java.lang.String,java.lang.String> config)
siteId
- config
- public boolean send(short siteId, java.lang.String toAddress, java.lang.String title, java.lang.String content) throws javax.mail.MessagingException
siteId
- toAddress
- title
- content
- javax.mail.MessagingException
public boolean send(short siteId, java.lang.String[] toAddress, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String title, java.lang.String content) throws javax.mail.MessagingException
siteId
- toAddress
- cc
- bcc
- title
- content
- javax.mail.MessagingException
public boolean send(short siteId, java.lang.String[] toAddress, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String title, java.lang.String content, java.lang.String[] fileNames, java.io.File[] files) throws javax.mail.MessagingException
siteId
- toAddress
- cc
- bcc
- title
- content
- fileNames
- files
- javax.mail.MessagingException
public boolean sendHtml(short siteId, java.lang.String toAddress, java.lang.String title, java.lang.String html) throws javax.mail.MessagingException
siteId
- toAddress
- title
- html
- javax.mail.MessagingException
public boolean sendHtml(short siteId, java.lang.String[] toAddress, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String title, java.lang.String html) throws javax.mail.MessagingException
siteId
- toAddress
- cc
- bcc
- title
- html
- javax.mail.MessagingException
public boolean sendHtml(short siteId, java.lang.String[] toAddress, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String title, java.lang.String html, java.lang.String[] fileNames, java.io.File[] files) throws javax.mail.MessagingException
siteId
- toAddress
- cc
- bcc
- title
- html
- fileNames
- files
- javax.mail.MessagingException
private boolean send(short siteId, java.lang.String[] toAddress, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String title, java.lang.String content, boolean isHtml, java.lang.String[] fileNames, java.io.File[] files) throws javax.mail.MessagingException
javax.mail.MessagingException
public java.lang.String getCode(short siteId, boolean showAll)
public java.lang.String getCodeDescription(java.util.Locale locale)
getCodeDescription
在接口中 Config
public java.util.List<SysExtendField> getExtendFieldList(SysSite site, java.util.Locale locale)
getExtendFieldList
在接口中 Config
public void initCache(CacheEntityFactory cacheEntityFactory) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
cacheEntityFactory
- java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException
@PreDestroy public void destroy()