|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.omm.security.UserImpl
UserImpl.java
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| Field Summary | |
static String |
ANONYMOUS
a login and full name of the annonymous user |
| Constructor Summary | |
UserImpl(int id,
String login,
String password,
String name)
Construct a new user object. |
|
| 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 thePassword)
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ANONYMOUS
| Constructor Detail |
public UserImpl(int id,
String login,
String password,
String name)
throws NullParameterException
id - the id of the userlogin - the login of the userpassword - user's passwordname - the name of the user
NullParameterException - Whenever some of the parameters are null| Method Detail |
public int getId()
User
getId in interface Userpublic void setId(int id)
User
setId in interface Userid - The user's id.public String getLogin()
getLogin in interface Userpublic void setLogin(String login)
setLogin in interface Userpublic String getName()
getName in interface Userpublic void setName(String name)
setName in interface Userpublic String getPassword()
User
getPassword in interface User
public void setPassword(String thePassword)
throws NullParameterException
User
setPassword in interface UserthePassword - new user password.
NullParameterException - if the password is null.public Set getRoles()
User
getRoles in interface User
public void setRoles(Set roleIDs)
throws NullParameterException
User
setRoles in interface UserroleIDs - Set of roleIDs to be assigned to the user
NullParameterException - if the set is null.public Set getRules()
User
getRules in interface User
public void setRules(Set rules)
throws NullParameterException
User
setRules in interface Userrules - set of the rules to be set
NullParameterException - if the set is null.
public void setUserInfo(UserInfo ui)
throws NullParameterException
User
setUserInfo in interface Userui - the user info to be set
NullParameterException - if the parameter is null.public UserInfo getUserInfo()
User
getUserInfo in interface Userpublic ArrayList toSql()
User
toSql in interface Userpublic void setUri(String uri)
setUri in interface Userpublic String getUri()
getUri in interface User
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||