public class Account extends AbstractBean
Constructor and Description |
---|
Account() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object arg0)
Compares two objects with each other.
|
String |
getPassword() |
Person |
getPerson() |
String |
getToken() |
String |
getUserid() |
boolean |
isActive()
Check if user account is active
|
boolean |
isAdmin()
Check if user account is an admin
|
void |
setActive(boolean active)
Set the user account as active
|
void |
setAdmin(boolean admin)
Set the administrative privileges of the account
|
void |
setPassword(String password) |
void |
setPerson(Person person) |
void |
setToken(String token)
Associate a token with a user account
|
void |
setUserid(String userid) |
getId, hashCode, isDeleted, setDeleted, setId
public boolean equals(Object arg0)
AbstractBean
equals
in class AbstractBean
arg0
- the object that should be compared to this AbstractBeanpublic String getUserid()
public void setUserid(String userid)
userid
- the userid to setpublic String getPassword()
public void setPassword(String password)
password
- the password to setpublic String getToken()
public void setToken(String token)
token
- token to associate with user accountpublic Person getPerson()
public void setPerson(Person person)
person
- the person to setpublic boolean isActive()
public void setActive(boolean active)
active
- - if true, user account is enabled, if false, user account is
disabledpublic boolean isAdmin()
public void setAdmin(boolean admin)
admin
- Copyright © 2020. All rights reserved.