public class BSAccountUser
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BSAccountUser(BSAccount account) |
Modifier and Type | Method and Description |
---|---|
BSAccount |
accessAccount()
Get the account; This is not a standard bean getter method because i want you to think twice
about whether you really want to access the account directly.
|
java.util.Date |
getLastAccess() |
int |
getUserId()
Convenience accessor to the userid
|
java.lang.String |
getUsername()
Convenience accessor to get the username.
|
boolean |
isRegisteredUser()
Is this user registered in our database and logged in
|
void |
setAccount(BSAccount account)
Set this user's BSAccount.
|
void |
setLastAccess(java.util.Date lastAccess) |
public BSAccountUser(BSAccount account)
public BSAccount accessAccount()
public void setAccount(BSAccount account)
account
- the account to setpublic int getUserId()
public java.lang.String getUsername()
public java.util.Date getLastAccess()
public void setLastAccess(java.util.Date lastAccess)
lastAccess
- the lastAccess to setpublic boolean isRegisteredUser()