Interface Utils.MethodRoleMapper

Enclosing class:
Utils

public static interface Utils.MethodRoleMapper
An interface for classes that map HTTP methods to a user Role.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map the given method to a user Role.
  • Method Details

    • findRole

      AuthUtils.Role findRole(HttpMethod method)
      Map the given method to a user Role.
      Parameters:
      method - The method to map.
      Returns:
      the Role the user must have to execute the method.