Interface RestPermissionEvaluatorPlugin

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasPermission​(org.springframework.security.core.Authentication authentication, Serializable targetId, String targetType, Object permission)
      Check in the authenticated user (provided by the Authentication object) has the specified permission on the target object with the provided identifier.
      boolean hasPermission​(org.springframework.security.core.Authentication authentication, Object targetDomainObject, Object permission)
      Check in the authenticated user (provided by the Authentication object) has the specified permission on the provided target object.
    • Method Detail

      • hasPermission

        boolean hasPermission​(org.springframework.security.core.Authentication authentication,
                              Object targetDomainObject,
                              Object permission)
        Check in the authenticated user (provided by the Authentication object) has the specified permission on the provided target object.
        Parameters:
        authentication - Authentication object providing user details of the authenticated user
        targetDomainObject - The target object that the authenticated user wants to see or manipulate
        permission - Permission object that describes the action the user wants to perform on the target object
        Returns:
        true if the user is allowed to perform the action described by the permission. False otherwise.
      • hasPermission

        boolean hasPermission​(org.springframework.security.core.Authentication authentication,
                              Serializable targetId,
                              String targetType,
                              Object permission)
        Check in the authenticated user (provided by the Authentication object) has the specified permission on the target object with the provided identifier.
        Parameters:
        authentication - Authentication object providing user details of the authenticated user
        targetId - Unique identifier of the target object the user wants to view or manipulate
        targetType - Type of the target object the users wants to view or manipulate
        permission - Permission object that describes the action the user wants to perform on the target object
        Returns:
        true if the user is allowed to perform the action described by the permission. False otherwise.