Package org.joinfaces.security.taglib
Class FaceletsAuthorizeTagUtils
java.lang.Object
org.joinfaces.security.taglib.FaceletsAuthorizeTagUtils
This class provides static methods that are registered as EL functions and
available for use in Unified EL expressions in standard Facelets views.
- See Also:
-
org.springframework.faces.security.FaceletsAuthorizeTagUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areAllGranted
(String authorities) Returns true if the user has all of of the given authorities.static boolean
areAnyGranted
(String authorities) Returns true if the user has any of the given authorities.static boolean
areNotGranted
(String authorities) Returns true if the user does not have any of the given authorities.static boolean
Returns true if the user is allowed to access the given URL and HTTP method combination.static boolean
Returns true if user is anonymous.static boolean
Returns true if the user is not anonymous.static boolean
Returns true if the is not an anonymous or a remember-me user.
-
Method Details
-
areAllGranted
Returns true if the user has all of of the given authorities.- Parameters:
authorities
- a comma-separated list of user authorities.- Returns:
- computation if the user has all of of the given authorities
- Throws:
IOException
- io exception
-
areAnyGranted
Returns true if the user has any of the given authorities.- Parameters:
authorities
- a comma-separated list of user authorities.- Returns:
- computation if the user has any of the given authorities.
- Throws:
IOException
- io exception
-
areNotGranted
Returns true if the user does not have any of the given authorities.- Parameters:
authorities
- a comma-separated list of user authorities.- Returns:
- computation if the user does not have any of the given authorities.
- Throws:
IOException
- io exception
-
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.- Parameters:
url
- to be accessed.method
- to be called.- Returns:
- computation if the user is allowed to access the given URL and HTTP method.
- Throws:
IOException
- io exception
-
isAnonymous
Returns true if user is anonymous.- Returns:
- computation if the user is anonymous.
- Throws:
IOException
- io exception
-
isAuthenticated
Returns true if the user is not anonymous.- Returns:
- computation if the user is not anonymous.
- Throws:
IOException
- io exception
-
isFullyAuthenticated
Returns true if the is not an anonymous or a remember-me user.- Returns:
- computation if the user is not an anonymous or a remember-me user.
- Throws:
IOException
- io exception
-