public class MailStatus extends Object
Constructor and Description |
---|
MailStatus()
Default constructor used by Hibernate to load an instance from the Database.
|
MailStatus(String batchId,
ExtendedMimeMessage message,
MailState state)
Constructor initializing the MailStatus with mandatory fields (message id, batch id and recipients are extracted
from the passed message, the date is set as now and the state is passed).
|
Modifier and Type | Method and Description |
---|---|
String |
getBatchId()
Used by Hibernate to save that property to the database.
|
Date |
getDate()
Used by Hibernate to save that property to the database.
|
String |
getErrorDescription()
Used by Hibernate to save that property to the database.
|
String |
getErrorSummary()
Used by Hibernate to save that property to the database.
|
String |
getMessageId() |
String |
getRecipients()
Used by Hibernate to save that property to the database (hence the String).
|
String |
getState()
Note: the returned value is a String and not
MailState to allow Hibernate to save that property to the
database. |
String |
getType()
Used by Hibernate to save that property to the database.
|
String |
getWiki()
Used by Hibernate to save that property to the database.
|
void |
setBatchId(String batchId)
Used by Hibernate to load that property from the database.
|
void |
setDate(Date date)
Used by Hibernate to load that property from the database.
|
void |
setError(Exception exception) |
void |
setErrorDescription(String errorDescription)
Used by Hibernate to load that property from the database.
|
void |
setErrorSummary(String errorSummary)
Used by Hibernate to load that property from the database.
|
void |
setMessageId(String messageId) |
void |
setRecipients(String recipients)
Used by Hibernate to load that property from the database (hence the reason why it's a String).
|
void |
setState(MailState state) |
void |
setState(String state)
Used by Hibernate to load that property from the database.
|
void |
setType(String type)
Used by Hibernate to load that property from the database.
|
void |
setWiki(String wiki)
Used by Hibernate to load that property from the database.
|
String |
toString() |
public MailStatus()
public MailStatus(String batchId, ExtendedMimeMessage message, MailState state)
batchId
- the identifier of the batch sending the messagemessage
- the message for which to construct a statusstate
- the state of the referenced mail (ready, failed to send, success)public String getMessageId()
ExtendedMimeMessage.getUniqueMessageId()
.public void setMessageId(String messageId)
messageId
- see getMessageId()
public String getState()
MailState
to allow Hibernate to save that property to the
database.MailState
public void setState(MailState state)
state
- see getState()
public void setState(String state)
state
- see getState()
public String getBatchId()
public void setBatchId(String batchId)
batchId
- the ID of the batch mail senderpublic Date getDate()
public void setDate(Date date)
date
- of status of mailpublic String getRecipients()
public void setRecipients(String recipients)
recipients
- see getRecipients()
public String getType()
public void setType(String type)
type
- of batch mail (Watchlist, news ...)public String getErrorSummary()
public String getErrorDescription()
public void setErrorSummary(String errorSummary)
errorSummary
- see getErrorSummary()
public void setErrorDescription(String errorDescription)
errorDescription
- see getErrorDescription()
public void setError(Exception exception)
exception
- the exception that was encountered during sending mailpublic String getWiki()
public void setWiki(String wiki)
wiki
- see getWiki()
Copyright © 2004–2022 XWiki. All rights reserved.