Class AddressValidation

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

public class AddressValidation extends DatabaseBean
A bean to store E-Mail Address validation data.
Since:
1.0
Version:
5.2
Author:
Luke
See Also:
  • Constructor Details

    • AddressValidation

      public AddressValidation(int id, String addr)
      Creates a new Address validation entry.
      Parameters:
      id - the Database ID of the Pilot or Applicant.
      addr - the new e-mail address
      Throws:
      NullPointerException - if addr is null
      IllegalArgumentException - if id is zero or negative
  • Method Details

    • getAddress

      public String getAddress()
      Returns the new e-mail address.
      Returns:
      the new address
    • getHash

      public String getHash()
      Returns the hashcode to be sent to the user to validate the address.
      Returns:
      the hash code
      See Also:
    • getIsValid

      public boolean getIsValid()
      Returns whether the address is valid or not.
      Returns:
      TRUE if the address is valid, otherwise FALSE
    • setHash

      public void setHash(String hash)
      Updates the hash code sent to the user to validate the address.
      Parameters:
      hash - the new hash code
      See Also:
    • setAddress

      public void setAddress(String addr)
      Updates the user's e-mail address.
      Parameters:
      addr - the new e-mail address
      Throws:
      NullPointerException - if addr is null
      See Also:
    • setInvalid

      public void setInvalid(boolean isInvalid)
      Updates whether the e-mail address is invalidated.
      Parameters:
      isInvalid - TRUE if invalidated, otherwise FALSE