|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbstractPerson
WRITEME: Document this type.
Method Summary | |
---|---|
boolean |
canContact()
Can this person be contacted for marketing and other purposes? |
boolean |
checkPassword(String passwordGuess)
Returns true if the password is correct. |
boolean |
forgotPassword(String forgottenPasswordQ,
String forgottenPasswordA)
Send the user their forgotten password if they know the answer to their secret question. |
String |
getApprovalCookie()
Get a cookie object for sending mail. |
String |
getConfirmationTemplate()
Get the filename of the eMail template file to be used to confirm this person's account |
String |
getDialect()
Get this person's preferred language-dialect. |
String |
getDisplayName()
Get the name to be displayed in user interface for this person. |
String |
getForgotPasswordAnswer()
Get the forgotten password question |
String |
getForgotPasswordQuestion()
Get the forgotten password question |
String |
getGivenName()
|
HashMap<Timestamp,HashMap<String,String>> |
getHistory(Date after,
int limit)
Returns the historical contents of this user's record. |
String |
getLanguage()
|
String |
getMail()
|
Date |
getMailConfirmed()
|
String |
getPassword()
|
String |
getPotentialUserName()
Get an user name suggestion for this person |
String |
getResponsibleMail()
Get the eMail address of a responsible person: either the player, or the parent. |
void |
remindPassword()
WRITEME: Document this method brpocock@star-hope.org |
void |
rename(String newName)
Rename the user account, updating all necessary related records. |
void |
sendConfirmationMail()
Sends confirmation mail to whomever should receive it |
void |
sendStaffPasswordReset()
Sends mail to user or parent when a staff member resets their password. |
void |
sentConfirmationMail()
WRITEME: document this method (brpocock@star-hope.org, Sep 25, 2009) |
void |
setCanContact(boolean canContact1)
|
void |
setForgotPasswordAnswer(String answer)
WRITEME: document this method (brpocock@star-hope.org, Sep 25, 2009) |
void |
setForgotPasswordQuestion(String question)
WRITEME: document this method (brpocock@star-hope.org, Sep 25, 2009) |
void |
setGivenName(String givenName1)
|
void |
setMail(String mail1)
|
void |
setMailConfirmed(Date mailConfirmed1)
|
void |
setMailConfirmSent(Date date)
|
void |
setPassword(String password1)
Changes the person's password |
void |
setPasswordAndPasswordRecovery(String question,
String answer,
String newPassword)
|
void |
setPasswordRecovery(String forgottenPasswordQuestion,
String forgottenPasswordAnswer)
Set the password-recovery question and answer pair |
String |
setRandomPassword()
WRITEME: document this method (brpocock@star-hope.org, Sep 25, 2009) |
Method Detail |
---|
boolean canContact()
boolean checkPassword(String passwordGuess)
passwordGuess
- The password which is to be checked
boolean forgotPassword(String forgottenPasswordQ, String forgottenPasswordA)
remindPassword()
throws a
NotFoundException
, this will fail and return false as
well.
forgottenPasswordQ
- The question being answeredforgottenPasswordA
- The answer provided
remindPassword()
); and false if it is notString getApprovalCookie()
Parent
,
User
String getConfirmationTemplate()
String getDialect()
String getDisplayName()
String getForgotPasswordAnswer()
String getForgotPasswordQuestion()
String getGivenName()
HashMap<Timestamp,HashMap<String,String>> getHistory(Date after, int limit)
after
- If non-null, specifies the date after which we want
to view records. To see all records, back to the creation
of the user record, supply a null.limit
- If this is a positive number, it limits the results
to this number of records.
String getLanguage()
String getMail()
Date getMailConfirmed()
String getPassword()
String getPotentialUserName()
Get an user name suggestion for this person
XXX This belongs in User, only.
String getResponsibleMail()
void remindPassword() throws NotReadyException
NotReadyException
- WRITEMEvoid rename(String newName) throws GameLogicException, AlreadyUsedException, ForbiddenUserException
Rename the user account, updating all necessary related records. Note, in particular, that Smartfox is wholly dependant upon user names, so all records related to Smartfox must be updated!
If the user is currently online, this will fuck up hilariously, I think.
newName
- The new user name
GameLogicException
- if the user is online (and therefore can't be renamed)
ForbiddenUserException
- WRITEME
AlreadyUsedException
- WRITEMEvoid sendConfirmationMail()
void sendStaffPasswordReset()
void sentConfirmationMail()
void setCanContact(boolean canContact1)
canContact1
- if true, the user has explicitly given us
their legal consent to be contacted for marketing and
other options.void setForgotPasswordAnswer(String answer)
answer
- WRITEMEvoid setForgotPasswordQuestion(String question)
question
- WRITEMEvoid setGivenName(String givenName1)
givenName1
- the givenName to setvoid setMail(String mail1) throws GameLogicException
mail1
- the mail to set
GameLogicException
- WRITEMEvoid setMailConfirmed(Date mailConfirmed1)
mailConfirmed1
- the mailConfirmed to setvoid setMailConfirmSent(Date date)
date
- the date on which the mail confirmation message was sentvoid setPassword(String password1)
password1
- the password to setvoid setPasswordAndPasswordRecovery(String question, String answer, String newPassword) throws GameLogicException
question
- WRITEMEanswer
- WRITEMEnewPassword
- WRITEME
GameLogicException
- WRITEMEvoid setPasswordRecovery(String forgottenPasswordQuestion, String forgottenPasswordAnswer)
forgottenPasswordQuestion
- the questionforgottenPasswordAnswer
- the correct answerString setRandomPassword()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |