com.zphinx.spine.members
Class AccountSecrets

java.lang.Object
  extended by com.zphinx.spine.members.AccountSecrets
All Implemented Interfaces:
AccountSecretsConfig, Serializable

public class AccountSecrets
extends Object
implements AccountSecretsConfig, Serializable

AccountSecrets encapsulates various secret words preset by the user which can be reset by either the user or an administrator. This implementation uses the following secret words:

All the secret words apart from the pin number default to a zero length string while the pin number defaults to 0000

Version:
$1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.zphinx.spine.members.AccountSecretsConfig
ACTIVATION, ADMIN_REGISTRATION, ADMIN_RESET_ADMIN, ADMIN_RESET_LOSTPASSWORD, ADMIN_SAVE, RESET_LOSTPASSWORD
 
Constructor Summary
AccountSecrets()
          Public Constructor
 
Method Summary
 long getId()
          Gets the id
 String getLastSchoolAttended()
          gets the last school attended
 String getMothersMaidenName()
          Gets the mothers maiden name
 String getPassword1()
          Return the password of this member.
 String getPassword2()
          Gets the comparative/old password of this member.
 String getPasswordReminder()
          Gets the password reminder
 String getPinNumber()
          Gets the pin number for this user
 Date getSpecialDate()
          Gets the special date
 String getSpecialDateString()
          Gets the special date as a String
 String getSpecialPlace()
          Gets the special place
 String getSpecialWord()
          Gets the special word
 void setId(long id)
          Sets the id
 void setLastSchoolAttended(String lastSchoolAttended)
          Sets the last school attended
 void setMothersMaidenName(String mothersMaidenName)
          Sets the mothers maiden name
 void setPassword1(String password1)
          Set the new password of this member.
 void setPassword2(String password2)
          Sets the comparative/old password of this member.
 void setPasswordReminder(String passwordReminder)
          Sets the password reminder
 void setPinNumber(String pinNumber)
          Sets the pin number for this user
 void setSpecialDate(Date specialDate)
          Sets the special date
 void setSpecialDateString(String specialDateString)
          Sets the specialDate using a String representation
 void setSpecialPlace(String specialPlace)
          Sets the special place
 void setSpecialWord(String specialWord)
          Sets the special word
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountSecrets

public AccountSecrets()
Public Constructor

Method Detail

getLastSchoolAttended

public String getLastSchoolAttended()
gets the last school attended

Returns:
The lastSchoolAttended

setLastSchoolAttended

public void setLastSchoolAttended(String lastSchoolAttended)
Sets the last school attended

Parameters:
lastSchoolAttended - the lastSchoolAttended to set

getMothersMaidenName

public String getMothersMaidenName()
Gets the mothers maiden name

Returns:
the mothersMaidenName

setMothersMaidenName

public void setMothersMaidenName(String mothersMaidenName)
Sets the mothers maiden name

Parameters:
mothersMaidenName - the mothersMaidenName to set

getSpecialDate

public Date getSpecialDate()
Gets the special date

Returns:
the specialDate

setSpecialDate

public void setSpecialDate(Date specialDate)
Sets the special date

Parameters:
specialDate - the specialDate to set

getSpecialPlace

public String getSpecialPlace()
Gets the special place

Returns:
the specialPlace

setSpecialPlace

public void setSpecialPlace(String specialPlace)
Sets the special place

Parameters:
specialPlace - the specialPlace to set

getSpecialWord

public String getSpecialWord()
Gets the special word

Returns:
the specialWord

setSpecialWord

public void setSpecialWord(String specialWord)
Sets the special word

Parameters:
specialWord - the specialWord to set

getPassword1

public String getPassword1()
Return the password of this member.

Returns:
String The password of this member.

setPassword1

public void setPassword1(String password1)
Set the new password of this member.

Parameters:
password1 - The new password of this member.

getPassword2

public String getPassword2()
Gets the comparative/old password of this member.

Returns:
String The password of this member.

setPassword2

public void setPassword2(String password2)
Sets the comparative/old password of this member.

Parameters:
password2 - The new password of this member.

getPasswordReminder

public String getPasswordReminder()
Gets the password reminder

Returns:
The password reminder

setPasswordReminder

public void setPasswordReminder(String passwordReminder)
Sets the password reminder

Parameters:
passwordReminder - the passwordReminder to set

setPinNumber

public void setPinNumber(String pinNumber)
                  throws SpineException
Sets the pin number for this user

Parameters:
pinNumber - The pin number to set
Throws:
SpineException - If there are more than 4 numbers or the pinnumber cannot be parsed into a number

getPinNumber

public String getPinNumber()
Gets the pin number for this user

Returns:
the pinNumber

getSpecialDateString

public String getSpecialDateString()
Gets the special date as a String

Returns:
Returns the specialDate.

setSpecialDateString

public void setSpecialDateString(String specialDateString)
Sets the specialDate using a String representation

Parameters:
specialDateString -

getId

public long getId()
Gets the id

Returns:
the id

setId

public void setId(long id)
Sets the id

Parameters:
id - the id to set