Class FaceletsAuthorizeTag
java.lang.Object
org.springframework.security.taglibs.authz.AbstractAuthorizeTag
org.springframework.faces.security.FaceletsAuthorizeTag
public class FaceletsAuthorizeTag
extends org.springframework.security.taglibs.authz.AbstractAuthorizeTag
A concrete implementation of
AbstractAuthorizeTag for use with standard Facelets rendering technology.- Since:
- 2.2.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorsConstructorDescriptionA default constructor.FaceletsAuthorizeTag(jakarta.faces.view.facelets.FaceletContext faceletContext, jakarta.faces.view.facelets.TagAttribute access, jakarta.faces.view.facelets.TagAttribute url, jakarta.faces.view.facelets.TagAttribute method, jakarta.faces.view.facelets.TagAttribute ifAllGranted, jakarta.faces.view.facelets.TagAttribute ifAnyGranted, jakarta.faces.view.facelets.TagAttribute ifNotGranted) A class constructor for use in aTagHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.servlet.ServletRequestprotected jakarta.servlet.ServletResponseprotected jakarta.servlet.ServletContextMethods inherited from class org.springframework.security.taglibs.authz.AbstractAuthorizeTag
authorize, authorizeUsingAccessExpression, authorizeUsingUrlCheck, createExpressionEvaluationContext, getAccess, getMethod, getUrl, setAccess, setMethod, setUrl
-
Constructor Details
-
FaceletsAuthorizeTag
public FaceletsAuthorizeTag(jakarta.faces.view.facelets.FaceletContext faceletContext, jakarta.faces.view.facelets.TagAttribute access, jakarta.faces.view.facelets.TagAttribute url, jakarta.faces.view.facelets.TagAttribute method, jakarta.faces.view.facelets.TagAttribute ifAllGranted, jakarta.faces.view.facelets.TagAttribute ifAnyGranted, jakarta.faces.view.facelets.TagAttribute ifNotGranted) A class constructor for use in aTagHandler. Accepts all possible tag attributes asTagAttributeinstances. The constructor extracts the attribute values by evaluating them as Unified EL expressions. This excludes the access attribute, which is expected to be a Spring EL expression.- Parameters:
faceletContext- the current FaceletContextaccess- the access attribute or nullurl- the url attribute or nullmethod- the method attribute or nullifAllGranted- the ifAllGranted attribute or nullifAnyGranted- the ifAnyGranted attribute or nullifNotGranted- the ifNotGranted attribute or null
-
FaceletsAuthorizeTag
public FaceletsAuthorizeTag()A default constructor. Callers of this constructor are responsible for setting one or more of the tag attributes inAbstractAuthorizeTag.
-
-
Method Details
-
getRequest
protected jakarta.servlet.ServletRequest getRequest()- Specified by:
getRequestin classorg.springframework.security.taglibs.authz.AbstractAuthorizeTag
-
getResponse
protected jakarta.servlet.ServletResponse getResponse()- Specified by:
getResponsein classorg.springframework.security.taglibs.authz.AbstractAuthorizeTag
-
getServletContext
protected jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin classorg.springframework.security.taglibs.authz.AbstractAuthorizeTag
-