Interface UserPermissionEvaluator


  • public interface UserPermissionEvaluator
    Evaluates permissions for the currently authenticated user.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<Permission> getPermissions​(org.springframework.security.acls.model.ObjectIdentity objectIdentity, Permission[] permissions)  
      boolean hasPermission​(org.springframework.security.acls.model.ObjectIdentity objectIdentity, java.util.List<Permission> permissions)
      Returns whether the currently authenticated user has a given Permission on the given domain object.
      boolean hasPermission​(org.springframework.security.acls.model.ObjectIdentity objectIdentity, Permission permission)
      Returns whether the currently authenticated user has a given Permission on the given domain object.
    • Method Detail

      • hasPermission

        boolean hasPermission​(org.springframework.security.acls.model.ObjectIdentity objectIdentity,
                              Permission permission)
        Returns whether the currently authenticated user has a given Permission on the given domain object.
        Parameters:
        objectIdentity - domain object identity
        permission - the Permission to check.
        Returns:
        true if the permission is granted, false otherwise
      • hasPermission

        boolean hasPermission​(org.springframework.security.acls.model.ObjectIdentity objectIdentity,
                              java.util.List<Permission> permissions)
        Returns whether the currently authenticated user has a given Permission on the given domain object.
        Parameters:
        objectIdentity - domain object identity
        permissions - List ofPermission to check.
        Returns:
        true if all the permissions are granted, false otherwise
      • getPermissions

        java.util.Set<Permission> getPermissions​(org.springframework.security.acls.model.ObjectIdentity objectIdentity,
                                                 Permission[] permissions)