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.intReturns 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.voidUpdates the receipient e-mail address.voidsetMessageID(String id) Updates the message ID.voidsetProcessTime(int ms) Updates the message processing tme.voidsetRemoteAddress(String addr) Updates the remote SMTP server address.voidsetRemoteHost(String hostName) Updates the remote SMTP server host name.voidsetResponse(String msg) Updates the remote SMTP server response message.voidsetSendTime(Instant dt) Updates the message sending time.Methods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RemoteAddressBean
getIsResolvedModifier and TypeMethodDescriptiondefault booleanReturns if the host name has been resolved.
-
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:
getRemoteAddrin interfaceRemoteAddressBean- Returns:
- the address
-
getRemoteHost
Returns the remote SMTP server host name.- Specified by:
getRemoteHostin 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:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-