Class EMailDelivery

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.system.EMailDelivery
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, RemoteAddressBean, ViewEntry, Cacheable

public class EMailDelivery extends DatabaseBean implements RemoteAddressBean, ViewEntry
A bean to track e-mail delivery.
Since:
8.5
Version:
10.2
Author:
Luke
See Also:
  • Constructor Details

    • EMailDelivery

      public EMailDelivery(DeliveryType type, int pilotID, Instant deliveryTime)
      Creates the bean.
      Parameters:
      type - the DeliveryType
      pilotID - the recipient's database ID
      deliveryTime - the delivery date/time
  • Method Details

    • getDeliveryTime

      public Instant getDeliveryTime()
      Returns the message delivery time.
      Returns:
      the date/time
    • getType

      public DeliveryType getType()
      Returns the notification type.
      Returns:
      the DeliveryType
    • getMessageID

      public String getMessageID()
      Returns the e-mail message ID.
      Returns:
      the ID
    • getSendTime

      public Instant getSendTime()
      Returns the message send time.
      Returns:
      the date/time
    • getEmail

      public String getEmail()
      Returns the receipient's e-mail address.
      Returns:
      the address
    • getProcessTime

      public int getProcessTime()
      Returns the remote SMTP message processing time.
      Returns:
      the time in milliseconds
    • getRemoteAddr

      public String getRemoteAddr()
      Returns the remote SMTP server address.
      Specified by:
      getRemoteAddr in interface RemoteAddressBean
      Returns:
      the address
    • getRemoteHost

      public String getRemoteHost()
      Returns the remote SMTP server host name.
      Specified by:
      getRemoteHost in interface RemoteAddressBean
      Returns:
      the host name
    • getResponse

      public String getResponse()
      Returns the remote SMTP server response message.
      Returns:
      the message
    • setEmail

      public void setEmail(String addr)
      Updates the receipient e-mail address.
      Parameters:
      addr - the address
    • setMessageID

      public void setMessageID(String id)
      Updates the message ID.
      Parameters:
      id - the e-mail message ID
    • setProcessTime

      public void setProcessTime(int ms)
      Updates the message processing tme.
      Parameters:
      ms - the time in milliseconds
    • setSendTime

      public void setSendTime(Instant dt)
      Updates the message sending time.
      Parameters:
      dt - the date/time the message was first sent
    • setRemoteHost

      public void setRemoteHost(String hostName)
      Updates the remote SMTP server host name.
      Parameters:
      hostName - the host name
    • setRemoteAddress

      public void setRemoteAddress(String addr)
      Updates the remote SMTP server address.
      Parameters:
      addr - the server address
    • setResponse

      public void setResponse(String msg)
      Updates the remote SMTP server response message.
      Parameters:
      msg - the message
    • getRowClassName

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none