public class BSAccount
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STATE_NEEDPWD
account has been validated, password deleted, registerToken loaded
|
static java.lang.String |
STATE_NEWBIE
account has been written to disk and awaits validation
|
static java.lang.String |
STATE_OK
normal user state
|
static java.lang.String |
STATE_VIRGIN
born a virgin
|
Constructor and Description |
---|
BSAccount() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress1() |
java.lang.String |
getAddress2() |
java.lang.String |
getCity() |
java.lang.String |
getCountry() |
java.lang.String |
getEmail() |
java.lang.String |
getFirstName() |
java.util.Date |
getLastAccess() |
java.lang.String |
getLastName() |
java.lang.String |
getPhone() |
java.util.Date |
getRegisterDate() |
int |
getRegisterToken()
Return the random number that was emailed to the user.
|
java.lang.String |
getState() |
java.lang.String |
getStatus() |
int |
getUserId() |
java.lang.String |
getUsername() |
java.lang.String |
getWebPage() |
java.lang.String |
getZip() |
boolean |
isHasPassword()
Return whether this account has a valid password assigned to it.
|
boolean |
isRegisteredUser() |
void |
setAddress1(java.lang.String address1) |
void |
setAddress2(java.lang.String address2) |
void |
setCity(java.lang.String city) |
void |
setCountry(java.lang.String country) |
void |
setEmail(java.lang.String email) |
void |
setFirstName(java.lang.String firstName) |
void |
setHasPassword(boolean hasPassword) |
void |
setLastAccess(java.util.Date lastAccess) |
void |
setLastName(java.lang.String lastName) |
void |
setPhone(java.lang.String phone) |
void |
setRegisterDate(java.util.Date registerDate) |
void |
setRegisterToken(int registerToken) |
void |
setState(java.lang.String state) |
void |
setStatus(java.lang.String status) |
void |
setUserId(int userId) |
void |
setUsername(java.lang.String username) |
void |
setWebPage(java.lang.String webPage) |
void |
setZip(java.lang.String zip) |
public static final java.lang.String STATE_OK
public static final java.lang.String STATE_VIRGIN
public static final java.lang.String STATE_NEWBIE
public static final java.lang.String STATE_NEEDPWD
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public int getUserId()
public void setUserId(int userId)
userId
- the userId to setpublic boolean isHasPassword()
public void setHasPassword(boolean hasPassword)
hasPassword
- the hasPassword to setpublic java.lang.String getEmail()
public void setEmail(java.lang.String email)
public java.lang.String getFirstName()
public void setFirstName(java.lang.String firstName)
public java.lang.String getLastName()
public void setLastName(java.lang.String lastName)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.String getAddress1()
public void setAddress1(java.lang.String address1)
public java.lang.String getAddress2()
public void setAddress2(java.lang.String address2)
public java.lang.String getCity()
public void setCity(java.lang.String city)
public java.lang.String getState()
public void setState(java.lang.String state)
public java.lang.String getZip()
public void setZip(java.lang.String zip)
public java.lang.String getCountry()
public void setCountry(java.lang.String country)
public java.lang.String getPhone()
public void setPhone(java.lang.String phone)
public java.util.Date getLastAccess()
public void setLastAccess(java.util.Date lastAccess)
lastAccess
- the lastAccess to setpublic java.util.Date getRegisterDate()
public void setRegisterDate(java.util.Date registerDate)
registerDate
- the registerDate to setpublic int getRegisterToken()
public void setRegisterToken(int registerToken)
registerToken
- the registerToken to setpublic java.lang.String getWebPage()
public void setWebPage(java.lang.String webPage)
webPage
- the webPage to setpublic boolean isRegisteredUser()