Class DefaultRolePermissionsProvider

java.lang.Object
com.aquima.web.security.DefaultRolePermissionsProvider
All Implemented Interfaces:
IRolePermissionsProvider

public class DefaultRolePermissionsProvider extends Object implements IRolePermissionsProvider
Created by s.wartenberg on 29-6-2017.
  • Constructor Details Link icon

    • DefaultRolePermissionsProvider Link icon

      public DefaultRolePermissionsProvider(Map<String,String> rolePermissions)
  • Method Details Link icon

    • getRolePermissions Link icon

      public List<String> getRolePermissions(String role)
      Specified by:
      getRolePermissions in interface IRolePermissionsProvider
      Parameters:
      role - The role to get permissions for.
      Returns:
      a list of permissions for the role received as parameter. If the role is null or unknown, an empty list should be returned. Never null.