public class User extends Object implements Principal, Serializable
Constructor and Description |
---|
User() |
User(IUserInfo newUserInfo) |
User(String newLogin,
String newPassword) |
User(String newLogin,
String newPassword,
String[] newRoles) |
Modifier and Type | Method and Description |
---|---|
String |
getContext() |
String |
getLabel() |
String |
getLogin() |
String |
getName() |
String |
getPassword() |
Set<String> |
getRoles() |
Map<String,String> |
getRolesMap() |
IUserInfo |
getUserInfo() |
boolean |
isEditor() |
boolean |
isRightPassword(String pwd) |
void |
setContext(String context) |
void |
setEditor(boolean editor) |
void |
setLogin(String login) |
void |
setUserInfo(IUserInfo info) |
String |
toString() |
boolean |
validForRoles(Collection<String> rolesSet) |
boolean |
validForRoles(String... roles)
check if user can work with this roles.
|
public User()
public User(IUserInfo newUserInfo)
public String getLogin()
public String getPassword()
public boolean validForRoles(String... roles)
roles
- public boolean validForRoles(Collection<String> rolesSet)
public IUserInfo getUserInfo()
public void setUserInfo(IUserInfo info)
info
- public void setLogin(String login)
public String toString()
public String getContext()
public void setContext(String context)
public boolean isRightPassword(String pwd)
public boolean isEditor()
public void setEditor(boolean editor)
public String getLabel()
Copyright © 2012-2018. All Rights Reserved.