Class EMailDelivery
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.system.EMailDelivery
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,RemoteAddressBean
,ViewEntry
,Cacheable
A bean to track e-mail delivery.
- Since:
- 8.5
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEMailDelivery
(DeliveryType type, int pilotID, Instant deliveryTime) Creates the bean. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message delivery time.getEmail()
Returns the receipient's e-mail address.Returns the e-mail message ID.int
Returns the remote SMTP message processing time.Returns the remote SMTP server address.Returns the remote SMTP server host name.Returns the remote SMTP server response message.Returns the CSS class for this object if rendered in a view table.Returns the message send time.getType()
Returns the notification type.void
Updates the receipient e-mail address.void
setMessageID
(String id) Updates the message ID.void
setProcessTime
(int ms) Updates the message processing tme.void
setRemoteAddress
(String addr) Updates the remote SMTP server address.void
setRemoteHost
(String hostName) Updates the remote SMTP server host name.void
setResponse
(String msg) Updates the remote SMTP server response message.void
setSendTime
(Instant dt) Updates the message sending time.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.RemoteAddressBean
getIsResolved
-
Constructor Details
-
EMailDelivery
Creates the bean.- Parameters:
type
- the DeliveryTypepilotID
- the recipient's database IDdeliveryTime
- the delivery date/time
-
-
Method Details
-
getDeliveryTime
-
getType
-
getMessageID
-
getSendTime
-
getEmail
-
getProcessTime
public int getProcessTime()Returns the remote SMTP message processing time.- Returns:
- the time in milliseconds
-
getRemoteAddr
Returns the remote SMTP server address.- Specified by:
getRemoteAddr
in interfaceRemoteAddressBean
- Returns:
- the address
-
getRemoteHost
Returns the remote SMTP server host name.- Specified by:
getRemoteHost
in interfaceRemoteAddressBean
- Returns:
- the host name
-
getResponse
-
setEmail
Updates the receipient e-mail address.- Parameters:
addr
- the address
-
setMessageID
-
setProcessTime
public void setProcessTime(int ms) Updates the message processing tme.- Parameters:
ms
- the time in milliseconds
-
setSendTime
Updates the message sending time.- Parameters:
dt
- the date/time the message was first sent
-
setRemoteHost
Updates the remote SMTP server host name.- Parameters:
hostName
- the host name
-
setRemoteAddress
Updates the remote SMTP server address.- Parameters:
addr
- the server address
-
setResponse
Updates the remote SMTP server response message.- Parameters:
msg
- the message
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-