|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.monad.homerun.base.User
public class User
User is the class containing homerun user information. A user represents a person or other entity that interacts with the software - this is not the same as users represented in the software, although they frequently overlap.
| Field Summary | |
|---|---|
static java.lang.String |
ADMIN
|
static int |
ADMIN_ROLE
|
static java.lang.String |
ANON_USER
|
static int |
EDIT_ROLE
|
static java.lang.String |
EDITOR
|
static java.lang.String |
OTHER
|
static int |
OTHER_ROLE
|
static java.lang.String |
USER
|
static int |
USER_ROLE
|
| Constructor Summary | |
|---|---|
User()
|
|
User(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addRole(int role)
|
long |
getCreateTime()
Returns the time the user account was created |
long |
getExpireTime()
Returns the expiration time of the user account |
java.lang.String |
getName()
Returns the userName |
java.lang.String |
getPassword()
Returns the user's password |
int |
getRoles()
Returns the user's roles |
boolean |
hasRole(int role)
Tests whether user has designated role |
void |
setCreateTime(long time)
|
void |
setExpireTime(long time)
|
void |
setPassword(java.lang.String password)
|
void |
setRoles(int roles)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ANON_USER
public static final int ADMIN_ROLE
public static final int EDIT_ROLE
public static final int USER_ROLE
public static final int OTHER_ROLE
public static final java.lang.String ADMIN
public static final java.lang.String EDITOR
public static final java.lang.String USER
public static final java.lang.String OTHER
| Constructor Detail |
|---|
public User()
public User(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public long getCreateTime()
public void setCreateTime(long time)
public long getExpireTime()
public void setExpireTime(long time)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public int getRoles()
public void setRoles(int roles)
public boolean hasRole(int role)
role - the homerun role
public void addRole(int role)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||