Interface UserRoleDecoder

All Known Implementing Classes:
UserRoleDecoderDflt

public interface UserRoleDecoder
A interface for classes that decode Roles.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decodeUserRoles(String username, Set<String> roles, org.jooq.DSLContext dslContext)
    Decode the given role for the user with the given name.
    default void
    init(CoreSettings coreSettings)
    Initialise the role decoder.
  • Method Details

    • init

      default void init(CoreSettings coreSettings)
      Initialise the role decoder.
      Parameters:
      coreSettings - The CoreSettings to load setting from.
    • decodeUserRoles

      void decodeUserRoles(String username, Set<String> roles, org.jooq.DSLContext dslContext)
      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.