Class Email

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.core.uaa.impl.Email
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>

@Entity public class Email extends org.ameba.integration.jpa.BaseEntity implements Serializable
An Email represents the email address of an User.
Author:
Heiko Scherrer
See Also:
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private String
    The email address as String (not nullable).
    private String
    The fullname of the User.
    private boolean
    Whether this email address is the primary email used in the system.
    private User
    Unique identifier of the Email (not nullable).
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    Dear JPA...
     
    Email(User user, String emailAddress)
    Create a new Email.
     
    Email(User user, String emailAddress, boolean primary)
    Create a new Email.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    All fields.
    Return the emailAddress.
    Return the fullname.
    Returns the User.
    int
    All fields.
    boolean
     
    void
    setEmailAddress(String emailAddress)
    Set the emailAddress.
    void
    setFullname(String fullname)
    Set the fullname.
    void
    setPrimary(boolean primary)
     
    void
    setUser(User user)
    Set the user.
    Return the emailAddress as String.

    Methods inherited from class org.ameba.integration.jpa.BaseEntity Link icon

    getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • user Link icon

      private User user
      Unique identifier of the Email (not nullable).
    • emailAddress Link icon

      private String emailAddress
      The email address as String (not nullable).
    • primary Link icon

      private boolean primary
      Whether this email address is the primary email used in the system.
    • fullname Link icon

      private String fullname
      The fullname of the User.
  • Constructor Details Link icon

    • Email Link icon

      protected Email()
      Dear JPA...
    • Email Link icon

      public Email(User user, String emailAddress)
      Create a new Email.
      Parameters:
      user - The User
      emailAddress - The email address of the User
      Throws:
      IllegalArgumentException - when userName or emailAddress is null or empty
    • Email Link icon

      public Email(User user, String emailAddress, boolean primary)
      Create a new Email.
      Parameters:
      user - The User
      emailAddress - The email address of the User
      primary - If the email is the primary address
      Throws:
      IllegalArgumentException - when userName or emailAddress is null or empty
  • Method Details Link icon

    • getUser Link icon

      public User getUser()
      Returns the User.
      Returns:
      The User
    • setUser Link icon

      public void setUser(User user)
      Set the user.
      Parameters:
      user - The user
    • getEmailAddress Link icon

      public String getEmailAddress()
      Return the emailAddress.
      Returns:
      The emailAddress.
    • setEmailAddress Link icon

      public void setEmailAddress(String emailAddress)
      Set the emailAddress.
      Parameters:
      emailAddress - The emailAddress to set.
    • getFullname Link icon

      public String getFullname()
      Return the fullname.
      Returns:
      The fullname.
    • setFullname Link icon

      public void setFullname(String fullname)
      Set the fullname.
      Parameters:
      fullname - The fullname to set.
    • isPrimary Link icon

      public boolean isPrimary()
    • setPrimary Link icon

      public void setPrimary(boolean primary)
    • equals Link icon

      public boolean equals(Object o)
      All fields.
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      All fields.
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Return the emailAddress as String.
      Overrides:
      toString in class Object
      Returns:
      the emailAddress
      See Also: