Package lumis.portal.sendmail
Interface IMailSendStatus
-
- All Known Subinterfaces:
IBaseMail
,IMailDestination
,IMultipleMail
,ISingleMail
@StableMinor(version="14.2", sinceVersion="4.0") public interface IMailSendStatus
Stores information about the sending situation of a mail.- Since:
- 4.0.4
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Field Summary
Fields Modifier and Type Field Description static int
STATUS_SEND_PENDING
Status code that indicates the sending is pending.static int
STATUS_SENDING
Status code that indicates the sending is in progress.static int
STATUS_SENT_ERROR
Status code that indicates the sending was tried but was unsucessful.static int
STATUS_SENT_OK
Status code that indicates the sending was completed successfully.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getErrorMessage()
Returns the error message of the last try to send the mail.Date
getSentDateTime()
Returns the datetime of the last try to send the mail.int
getStatus()
Returns the status of the sending of the mail.void
setErrorMessage(String msg)
Sets the error message of the last try to send the mail.void
setSentDateTime(Date sentDate)
Sets the datetime of the last try to send the mail.void
setStatus(int status)
Sets the sending status of the mail.
-
-
-
Field Detail
-
STATUS_SEND_PENDING
static final int STATUS_SEND_PENDING
Status code that indicates the sending is pending.- Since:
- 4.0.4
- See Also:
getStatus()
, Constant Field Values
-
STATUS_SENDING
static final int STATUS_SENDING
Status code that indicates the sending is in progress. If this status code stays for much time may indicate the sending process was interrupted, and it is not possible to know if it was sent or not.- Since:
- 4.0.4
- See Also:
getStatus()
, Constant Field Values
-
STATUS_SENT_OK
static final int STATUS_SENT_OK
Status code that indicates the sending was completed successfully.- Since:
- 4.0.4
- See Also:
getStatus()
, Constant Field Values
-
STATUS_SENT_ERROR
static final int STATUS_SENT_ERROR
Status code that indicates the sending was tried but was unsucessful.- Since:
- 4.0.4
- See Also:
getStatus()
,getErrorMessage()
, Constant Field Values
-
-
Method Detail
-
getSentDateTime
Date getSentDateTime()
Returns the datetime of the last try to send the mail.- Returns:
- the datetime of the last try to send the mail.
- Since:
- 4.0.4
-
setSentDateTime
void setSentDateTime(Date sentDate)
Sets the datetime of the last try to send the mail.- Parameters:
sentDate
- the datetime value to set.- Since:
- 4.0.4
-
getStatus
int getStatus()
Returns the status of the sending of the mail.- Returns:
- The status of the sending of the mail.
- Since:
- 4.0.4
- See Also:
STATUS_SEND_PENDING
,STATUS_SENDING
,STATUS_SENT_OK
,STATUS_SENT_ERROR
-
setStatus
void setStatus(int status)
Sets the sending status of the mail.- Parameters:
status
- the status value to set.- Since:
- 4.0.4
- See Also:
STATUS_SEND_PENDING
,STATUS_SENDING
,STATUS_SENT_OK
,STATUS_SENT_ERROR
-
getErrorMessage
String getErrorMessage()
Returns the error message of the last try to send the mail.- Returns:
- the error message of the last try to send the mail.
- Since:
- 4.0.4
-
setErrorMessage
void setErrorMessage(String msg)
Sets the error message of the last try to send the mail.- Parameters:
msg
- the error message to set.- Since:
- 4.0.4
-
-