Class FaceletsAuthorizeTagUtils
java.lang.Object
org.springframework.faces.security.FaceletsAuthorizeTagUtils
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareAllGranted(String authorities) Returns true if the user has all of of the given authorities.static booleanareAnyGranted(String authorities) Returns true if the user has any of the given authorities.static booleanareNotGranted(String authorities) Returns true if the user does not have any of the given authorities.static booleanReturns true if the user is allowed to access the given URL and HTTP method combination.
-
Constructor Details
-
FaceletsAuthorizeTagUtils
public FaceletsAuthorizeTagUtils()
-
-
Method Details
-
areAllGranted
Returns true if the user has all of of the given authorities.- Parameters:
authorities- a comma-separated list of user authorities.- Throws:
IOException
-
areAnyGranted
Returns true if the user has any of the given authorities.- Parameters:
authorities- a comma-separated list of user authorities.- Throws:
IOException
-
areNotGranted
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
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
-