|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface User
Interface representing a user used in the permission service
.
Method Summary | |
---|---|
void |
addGroupId(String groupId)
Adds the given group id to the list of
group ids this user belongs to. |
String[] |
getGroupsIds()
Returns an array of group ids this user belongs to. |
String |
getLogin()
Returns the login of this user or null if not specified. |
char[] |
getPassword()
Returns the password of this user or null if not specified |
String |
getRealname()
Returns the realname of this user or null if not specified |
boolean |
isActive()
Indicates whether this user is active or not. |
void |
removeGroupId(String groupId)
Removes the given group id from the list of
group ids this user belongs to. |
void |
setActive(boolean active)
Actiavates/Deactivates this user. |
void |
setGroupIds(String[] groupIds)
Sets the given group ids for this user. |
void |
setLogin(String login)
Sets the login for this user |
void |
setPassword(char[] password)
Sets the password for this user. |
void |
setRealname(String realname)
Sets the realname for this user. |
Method Detail |
---|
@Nullable String getLogin()
null
if not specified.
null
User.setLogin(String)
void setLogin(String login)
login
- the login for this user.User.getLogin()
@Nullable String getRealname()
null
if not specified
null
void setRealname(String realname)
realname
- the realname for this user.@Nullable char[] getPassword()
null
if not specified
null
void setPassword(char[] password)
password
- the password for this user.@NotNull String[] getGroupsIds()
group ids
this user belongs to.
User.setGroupIds(String[])
,
User.addGroupId(String)
,
User.removeGroupId(String)
void setGroupIds(String[] groupIds)
group ids
for this user.
User.getGroupsIds()
,
User.addGroupId(String)
,
User.removeGroupId(String)
void addGroupId(String groupId)
group id
to the list of
group ids
this user belongs to.
groupId
- the group id to add to the list of group ids
void removeGroupId(String groupId)
group id
from the list of
group ids
this user belongs to.
groupId
- the group id to remove from the list group ids
boolean isActive()
true
if this user is active, false
otherwise.void setActive(boolean active)
active
- true
to activate this user, false
to deactivate
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |