|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
User.java
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| Method Summary | |
int |
getId()
Retrieve the ID of the user |
String |
getLogin()
|
String |
getName()
|
String |
getPassword()
Retrieve the user password |
Set |
getRoles()
Retieve a set of the roles assigned to the user. |
Set |
getRules()
Retrieve the security rules assigned to the user |
String |
getUri()
|
UserInfo |
getUserInfo()
Gets the user info. |
void |
setId(int id)
Set the Id of the user |
void |
setLogin(String login)
|
void |
setName(String name)
|
void |
setPassword(String password)
Change the user password. |
void |
setRoles(Set roleIDs)
Assign new Roles to the user. |
void |
setRules(Set rules)
Assign new security rules to the user, as an alternative to assigning roles |
void |
setUri(String uri)
|
void |
setUserInfo(UserInfo ui)
Sets the user info. |
ArrayList |
toSql()
Creates update queries over the user_rules users_roles tables. |
| Method Detail |
public int getId()
public void setId(int id)
id - The user's id.public String getLogin()
public void setLogin(String login)
public String getName()
public void setName(String name)
public String getPassword()
public void setPassword(String password)
throws NullParameterException
password - new user password.
NullParameterException - if the password is null.public Set getRoles()
public void setRoles(Set roleIDs)
throws NullParameterException
roleIDs - Set of roleIDs to be assigned to the user
NullParameterException - if the set is null.public Set getRules()
public void setRules(Set rules)
throws NullParameterException
rules - set of the rules to be set
NullParameterException - if the set is null.
public void setUserInfo(UserInfo ui)
throws NullParameterException
ui - the user info to be set
NullParameterException - if the parameter is null.public UserInfo getUserInfo()
public ArrayList toSql()
public void setUri(String uri)
public String getUri()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||