Interface User
public interface User
Interface representing a user used in the
permission service.- Since:
- 3.1.170
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupId(String groupId) @NotNull String[]Returns an array ofgroup idsthis user belongs to.@Nullable StringgetLogin()Returns the login of this user ornullif not specified.@org.jetbrains.annotations.Nullable char[]Returns the password of this user ornullif not specified@Nullable StringReturns the realname of this user ornullif not specifiedbooleanisActive()Indicates whether this user is active or not.voidremoveGroupId(String groupId) voidsetActive(boolean active) Actiavates/Deactivates this user.voidsetGroupIds(String[] groupIds) Sets the givengroup idsfor this user.voidSets the login for this uservoidsetPassword(char[] password) Sets the password for this user.voidsetRealname(String realname) Sets the realname for this user.
-
Method Details
-
getLogin
Returns the login of this user ornullif 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 ornullif 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 ornullif 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 idsthis user belongs to.- Since:
- 3.1.170
- See Also:
-
setGroupIds
Sets the givengroup idsfor 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:
trueif this user is active,falseotherwise.- Since:
- 3.1.170
-
setActive
void setActive(boolean active) Actiavates/Deactivates this user.- Parameters:
active-trueto activate this user,falseto deactivate- Since:
- 3.1.170
-