Class BasicRegistrationReceipt

java.lang.Object
net.solarnetwork.domain.BasicRegistrationReceipt
All Implemented Interfaces:
Serializable, Cloneable, RegistrationReceipt

public class BasicRegistrationReceipt extends Object implements RegistrationReceipt, Cloneable
Basic implementation of RegistrationReceipt.
Version:
1.1
Author:
matt
See Also:
  • Constructor Details

    • BasicRegistrationReceipt

      public BasicRegistrationReceipt()
      Default constructor.
    • BasicRegistrationReceipt

      public BasicRegistrationReceipt(String username, String confirmationCode)
      Constructor.
      Parameters:
      username - the usenrame
      confirmationCode - the confirmation code
  • Method Details

    • getConfirmationCode

      public String getConfirmationCode()
      Description copied from interface: RegistrationReceipt
      Get the confirmation code required to activate the registered user.
      Specified by:
      getConfirmationCode in interface RegistrationReceipt
      Returns:
      confirmation code
    • getUsername

      public String getUsername()
      Description copied from interface: RegistrationReceipt
      Get the username that has been registered.
      Specified by:
      getUsername in interface RegistrationReceipt
      Returns:
      the email address
    • getUsernameURLComponent

      public String getUsernameURLComponent()
      Description copied from interface: RegistrationReceipt
      Get the uesrname that has been registered, encoded as a URL component.
      Specified by:
      getUsernameURLComponent in interface RegistrationReceipt
      Returns:
      the uesrname, URL encoded
    • clone

      protected Object clone()
      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setUsername

      public void setUsername(String username)
      Set the username.
      Parameters:
      username - the username to set
    • setConfirmationCode

      public void setConfirmationCode(String confirmationCode)
      Set the confirmation code.
      Parameters:
      confirmationCode - the confirmationCode to set