public class Mailing extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Mailing.MailingDateSorting |
Modifier and Type | Field and Description |
---|---|
static String |
DATA_TOKEN_UNSUBSCRIBE |
static String |
DATA_TOKEN_UNSUBSCRIBE_HOST |
static String |
DATA_TOKEN_UNSUBSCRIBE_MESSAGE |
static String |
DATA_TOKEN_UNSUBSCRIBE_POST |
static String |
DATA_TOKEN_UNSUBSCRIBE_URL |
protected static Logger |
logger
create a static logger.
|
Constructor and Description |
---|
Mailing() |
Modifier and Type | Method and Description |
---|---|
void |
addData(String key,
String value) |
boolean |
addErrorReceive(javax.mail.internet.InternetAddress email) |
void |
addFeedBack(FeedBackMailingBean bean) |
void |
addReceivers(Collection<String> to) |
void |
close(MailingStaticConfig mailingStaticConfig) |
void |
delete(javax.servlet.ServletContext application) |
String |
getAdminEmail() |
Collection<Map.Entry<String,String>> |
getAllData() |
String |
getContent() |
String |
getContextKey() |
Map<String,Integer> |
getCountClicks() |
int |
getCountForward() |
int |
getCountReaders() |
Map<Integer,Integer> |
getCountReadersByHour() |
int |
getCountUnsubscribe() |
String |
getData(String key) |
Date |
getDate() |
String |
getDateString() |
float |
getDeliveryErrorRate() |
String |
getDkimDomain() |
File |
getDkimPrivateKeyFile() |
String |
getDkimSelector() |
String |
getEncoding() |
String |
getErrorMessage() |
Collection<javax.mail.internet.InternetAddress> |
getErrorReveicers() |
List<FeedBackMailingBean> |
getFeedBack() |
javax.mail.internet.InternetAddress |
getFrom() |
String |
getId() |
String |
getLanguage() |
String |
getManualUnsubscribeLink() |
String |
getMessage() |
javax.mail.internet.InternetAddress |
getNextReceiver() |
javax.mail.internet.InternetAddress |
getNotif() |
String |
getPageId() |
float |
getReadersRate() |
Set<javax.mail.internet.InternetAddress> |
getReceivers() |
int |
getReceiversSize() |
List<String> |
getRoles() |
Date |
getSendDate() |
String |
getSentKey(javax.mail.internet.InternetAddress key) |
String |
getSmtpHost() |
String |
getSmtpPassword() |
String |
getSmtpPort() |
String |
getSmtpUser() |
String |
getSubject() |
String |
getTemplateId() |
String |
getUnsubscribeURL() |
Map<javax.mail.internet.InternetAddress,IUserInfo> |
getUsers() |
String |
getWarningMessage() |
boolean |
isExist(javax.servlet.ServletContext application,
String inID) |
boolean |
isExistInHistory(MailingStaticConfig mailingStaticConfig,
String inID) |
boolean |
isHtml() |
boolean |
isSend() |
boolean |
isTest() |
boolean |
isValid() |
void |
load(MailingStaticConfig staticConfig,
String inID) |
void |
onEndMailing() |
void |
onMailSent(javax.mail.internet.InternetAddress to,
String error) |
void |
onStartMailing() |
void |
printInfo(PrintStream out) |
void |
setAdminEmail(String adminEmail) |
void |
setContent(String content) |
void |
setContextKey(String contextKey) |
void |
setDirectory(StaticConfig staticConfig) |
void |
setDkimDomain(String dkimDomain) |
void |
setDkimSelector(String dkimSelector) |
void |
setEncoding(String encoding) |
void |
setErrorMessage(String errorMessage) |
void |
setFrom(javax.mail.internet.InternetAddress from) |
void |
setHtml(boolean html) |
void |
setId(MailingStaticConfig staticConfig,
String id) |
void |
setLanguage(String language) |
void |
setManualUnsubscribeLink(String manualUnsubcribeLink) |
void |
setNotif(javax.mail.internet.InternetAddress notif) |
void |
setPageId(String pageId) |
void |
setReceivers(Set<javax.mail.internet.InternetAddress> receivers) |
void |
setRoles(List<String> inRoles) |
void |
setSend(boolean send) |
void |
setSendDate(Date sendDate) |
void |
setSmtpHost(String smtpHost) |
void |
setSmtpPassword(String smtpPassword) |
void |
setSmtpPort(String smtpPort) |
void |
setSmtpUser(String smtpUser) |
void |
setSubject(String subject) |
void |
setTemplateId(String templateId) |
void |
setTest(boolean test) |
void |
setUnsubscribeURL(String unsubscribeURL) |
void |
setUsers(Map<javax.mail.internet.InternetAddress,IUserInfo> users) |
void |
setWarningMessage(String warningMessage) |
void |
store(MailingStaticConfig mailingStaticConfig) |
void |
store(javax.servlet.ServletContext application) |
void |
storePrivateKeyFile(File privateKey) |
String |
toString() |
public static final String DATA_TOKEN_UNSUBSCRIBE
public static final String DATA_TOKEN_UNSUBSCRIBE_URL
public static final String DATA_TOKEN_UNSUBSCRIBE_MESSAGE
public static final String DATA_TOKEN_UNSUBSCRIBE_HOST
public static final String DATA_TOKEN_UNSUBSCRIBE_POST
protected static Logger logger
public String getContent()
public void setContent(String content)
public javax.mail.internet.InternetAddress getFrom()
public void setFrom(javax.mail.internet.InternetAddress from)
public boolean isHtml()
public void setHtml(boolean html)
public javax.mail.internet.InternetAddress getNotif()
public void setNotif(javax.mail.internet.InternetAddress notif)
public String getSubject()
public void setSubject(String subject)
public void setReceivers(Set<javax.mail.internet.InternetAddress> receivers)
public void addReceivers(Collection<String> to)
public int getReceiversSize()
public boolean isExist(javax.servlet.ServletContext application, String inID) throws IOException
IOException
public boolean isExistInHistory(MailingStaticConfig mailingStaticConfig, String inID) throws IOException
IOException
public void load(MailingStaticConfig staticConfig, String inID) throws IOException
IOException
public boolean addErrorReceive(javax.mail.internet.InternetAddress email)
public Collection<javax.mail.internet.InternetAddress> getErrorReveicers()
public void store(javax.servlet.ServletContext application) throws IOException
IOException
public void store(MailingStaticConfig mailingStaticConfig) throws IOException
IOException
public void close(MailingStaticConfig mailingStaticConfig) throws IOException
IOException
public void delete(javax.servlet.ServletContext application) throws IOException
IOException
public void onStartMailing() throws IOException
IOException
public String getSentKey(javax.mail.internet.InternetAddress key)
public void onMailSent(javax.mail.internet.InternetAddress to, String error) throws IOException
IOException
public javax.mail.internet.InternetAddress getNextReceiver()
public void onEndMailing()
public boolean isSend()
public void setSend(boolean send)
public Set<javax.mail.internet.InternetAddress> getReceivers()
public String getLanguage()
public void setLanguage(String language)
public String getUnsubscribeURL()
public void setUnsubscribeURL(String unsubscribeURL)
public Collection<Map.Entry<String,String>> getAllData()
public String getId()
public String getContextKey()
public void setContextKey(String contextKey)
public void setId(MailingStaticConfig staticConfig, String id)
public void addFeedBack(FeedBackMailingBean bean) throws IOException
IOException
public List<FeedBackMailingBean> getFeedBack() throws IOException
IOException
public float getReadersRate() throws IOException
IOException
public float getDeliveryErrorRate() throws IOException
IOException
public int getCountReaders() throws IOException
IOException
public Map<Integer,Integer> getCountReadersByHour() throws IOException
IOException
public Map<String,Integer> getCountClicks() throws IOException
IOException
public int getCountUnsubscribe() throws IOException
IOException
public int getCountForward() throws IOException
IOException
public Date getDate()
public boolean isTest()
public void setTest(boolean test)
public String getEncoding()
public void setEncoding(String encoding)
public String getTemplateId()
public void setTemplateId(String templateId)
public Date getSendDate()
public String getDateString()
public void setSendDate(Date sendDate)
public String getAdminEmail()
public void setAdminEmail(String adminEmail)
public boolean isValid()
public String getSmtpHost()
public void setSmtpHost(String smtpHost)
public String getSmtpPort()
public void setSmtpPort(String smtpPort)
public String getSmtpUser()
public void setSmtpUser(String smtpUser)
public String getSmtpPassword()
public void setSmtpPassword(String smtpPassword)
public String getManualUnsubscribeLink()
public void setManualUnsubscribeLink(String manualUnsubcribeLink)
public String getDkimDomain()
public void setDkimDomain(String dkimDomain)
public String getDkimSelector()
public void setDkimSelector(String dkimSelector)
public void storePrivateKeyFile(File privateKey)
public void setDirectory(StaticConfig staticConfig)
public File getDkimPrivateKeyFile()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public String getWarningMessage()
public void setWarningMessage(String warningMessage)
public String getMessage()
public String getPageId()
public void setPageId(String pageId)
public void printInfo(PrintStream out)
Copyright © 2012-2018. All Rights Reserved.