Package net.solarnetwork.domain
Class BasicRegistrationReceipt
java.lang.Object
net.solarnetwork.domain.BasicRegistrationReceipt
- All Implemented Interfaces:
Serializable,Cloneable,RegistrationReceipt
Basic implementation of
RegistrationReceipt.- Version:
- 1.1
- Author:
- matt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BasicRegistrationReceipt(String username, String confirmationCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectclone()booleanGet the confirmation code required to activate the registered user.Get the username that has been registered.Get the uesrname that has been registered, encoded as a URL component.inthashCode()voidsetConfirmationCode(String confirmationCode) voidsetUsername(String username) toString()
-
Constructor Details
-
BasicRegistrationReceipt
public BasicRegistrationReceipt()Default constructor. -
BasicRegistrationReceipt
-
-
Method Details
-
getConfirmationCode
Description copied from interface:RegistrationReceiptGet the confirmation code required to activate the registered user.- Specified by:
getConfirmationCodein interfaceRegistrationReceipt- Returns:
- confirmation code
-
getUsername
Description copied from interface:RegistrationReceiptGet the username that has been registered.- Specified by:
getUsernamein interfaceRegistrationReceipt- Returns:
- the email address
-
getUsernameURLComponent
Description copied from interface:RegistrationReceiptGet the uesrname that has been registered, encoded as a URL component.- Specified by:
getUsernameURLComponentin interfaceRegistrationReceipt- Returns:
- the uesrname, URL encoded
-
clone
-
hashCode
public int hashCode() -
equals
-
toString
-
setUsername
- Parameters:
username- the username to set
-
setConfirmationCode
- Parameters:
confirmationCode- the confirmationCode to set
-