public interface RoleMapper
Modifier and Type | Method and Description |
---|---|
java.util.EnumSet<Role> |
getUserRoles(java.lang.String rsAccount)
Get the user roles for the supplied Nxt account
|
boolean |
isUserInRole(long accountId,
Role role)
Check if the supplied Nxt account has the specified user role
|
boolean |
isValidRoleSetter(long setterId)
Check if the supplied Nxt account is allowed to set user roles.
|
java.util.EnumSet<Role> |
parseRoles(java.lang.String value)
Parse the account property string containing the user roles.
|
java.util.EnumSet<Role> getUserRoles(java.lang.String rsAccount)
rsAccount
- Nxt accountjava.util.EnumSet<Role> parseRoles(java.lang.String value)
value
- User rolesboolean isValidRoleSetter(long setterId)
setterId
- Account setting the user rolesboolean isUserInRole(long accountId, Role role)
accountId
- Account identifierrole
- User role