public interface User
permission service
.Modifier and Type | Method and Description |
---|---|
void |
addGroupId(String groupId)
|
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)
|
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.
|
@Nullable String getLogin()
null
if not specified.null
setLogin(String)
void setLogin(String login)
login
- the login for this user.getLogin()
@Nullable String getRealname()
null
if not specifiednull
void setRealname(String realname)
realname
- the realname for this user.@Nullable char[] getPassword()
null
if not specifiednull
void setPassword(char[] password)
password
- the password for this user.@NotNull String[] getGroupsIds()
group ids
this user belongs to.setGroupIds(String[])
,
addGroupId(String)
,
removeGroupId(String)
void setGroupIds(String[] groupIds)
group ids
for this user.getGroupsIds()
,
addGroupId(String)
,
removeGroupId(String)
void addGroupId(String groupId)
groupId
- the group id to add to the list of group ids
void removeGroupId(String groupId)
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 deactivateCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500