Class FaceletsAuthorizeTagUtils

java.lang.Object
org.springframework.faces.security.FaceletsAuthorizeTagUtils

public abstract class FaceletsAuthorizeTagUtils extends Object
This class provides static methods that are registered as EL functions and available for use in Unified EL expressions in standard Facelets views.
Since:
2.2.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • FaceletsAuthorizeTagUtils

      public FaceletsAuthorizeTagUtils()
  • Method Details

    • areAllGranted

      public static boolean areAllGranted(String authorities) throws IOException
      Returns true if the user has all of of the given authorities.
      Parameters:
      authorities - a comma-separated list of user authorities.
      Throws:
      IOException
    • areAnyGranted

      public static boolean areAnyGranted(String authorities) throws IOException
      Returns true if the user has any of the given authorities.
      Parameters:
      authorities - a comma-separated list of user authorities.
      Throws:
      IOException
    • areNotGranted

      public static boolean areNotGranted(String authorities) throws IOException
      Returns true if the user does not have any of the given authorities.
      Parameters:
      authorities - a comma-separated list of user authorities.
      Throws:
      IOException
    • isAllowed

      public static boolean isAllowed(String url, String method) throws IOException
      Returns true if the user is allowed to access the given URL and HTTP method combination. The HTTP method is optional and case insensitive.
      Throws:
      IOException