Interface UserRoleDecoder
- All Known Implementing Classes:
UserRoleDecoderDflt
public interface UserRoleDecoder
A interface for classes that decode Roles.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeUserRoles(String username, Set<String> roles, org.jooq.DSLContext dslContext) Decode the given role for the user with the given name.default voidinit(CoreSettings coreSettings) Initialise the role decoder.
-
Method Details
-
init
Initialise the role decoder.- Parameters:
coreSettings- The CoreSettings to load setting from.
-
decodeUserRoles
Decode the given role for the user with the given name. Use the given DSLContext for any database access.- Parameters:
username- The name of the user the role belongs to.roles- The roles to decode for the user.dslContext- The DSL Context for database access.
-