Interface User
public interface User
Interface representing a user used in the
permission service
.- Since:
- 3.1.170
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroupId
(String groupId) @NotNull String[]
Returns an array ofgroup ids
this user belongs to.@Nullable String
getLogin()
Returns the login of this user ornull
if not specified.@org.jetbrains.annotations.Nullable char[]
Returns the password of this user ornull
if not specified@Nullable String
Returns the realname of this user ornull
if not specifiedboolean
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 givengroup ids
for this user.void
Sets the login for this uservoid
setPassword
(char[] password) Sets the password for this user.void
setRealname
(String realname) Sets the realname for this user.
-
Method Details
-
getLogin
Returns the login of this user ornull
if not specified.- Returns:
- the login of this user or
null
- Since:
- 3.1
- See Also:
-
setLogin
Sets the login for this user- Parameters:
login
- the login for this user.- Since:
- 3.1.170
- See Also:
-
getRealname
Returns the realname of this user ornull
if not specified- Returns:
- the realname of this user or
null
- Since:
- 3.1.170
-
setRealname
Sets the realname for this user.- Parameters:
realname
- the realname for this user.- Since:
- 3.1.170
-
getPassword
@Nullable @org.jetbrains.annotations.Nullable char[] getPassword()Returns the password of this user ornull
if not specified- Returns:
- the password of this user or
null
- Since:
- 3.1.170
-
setPassword
void setPassword(char[] password) Sets the password for this user.- Parameters:
password
- the password for this user.- Since:
- 3.1.170
-
getGroupsIds
Returns an array ofgroup ids
this user belongs to.- Since:
- 3.1.170
- See Also:
-
setGroupIds
Sets the givengroup ids
for this user.- Since:
- 3.1.170
- See Also:
-
addGroupId
- Parameters:
groupId
- the group id to add to the list ofgroup ids
- Since:
- 3.1.170
-
removeGroupId
- Parameters:
groupId
- the group id to remove from the listgroup ids
- Since:
- 3.1.170
-
isActive
boolean isActive()Indicates whether this user is active or not.- Returns:
true
if this user is active,false
otherwise.- Since:
- 3.1.170
-
setActive
void setActive(boolean active) Actiavates/Deactivates this user.- Parameters:
active
-true
to activate this user,false
to deactivate- Since:
- 3.1.170
-