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

    Constructors
    Constructor
    Description
    A 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 a TagHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected jakarta.servlet.ServletRequest
     
    protected jakarta.servlet.ServletResponse
     
    protected jakarta.servlet.ServletContext
     

    Methods inherited from class org.springframework.security.taglibs.authz.AbstractAuthorizeTag

    authorize, authorizeUsingAccessExpression, authorizeUsingUrlCheck, createExpressionEvaluationContext, getAccess, getMethod, getUrl, setAccess, setMethod, setUrl

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a TagHandler. Accepts all possible tag attributes as TagAttribute instances. 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 FaceletContext
      access - the access attribute or null
      url - the url attribute or null
      method - the method attribute or null
      ifAllGranted - the ifAllGranted attribute or null
      ifAnyGranted - the ifAnyGranted attribute or null
      ifNotGranted - 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 in AbstractAuthorizeTag.
  • Method Details

    • getRequest

      protected jakarta.servlet.ServletRequest getRequest()
      Specified by:
      getRequest in class org.springframework.security.taglibs.authz.AbstractAuthorizeTag
    • getResponse

      protected jakarta.servlet.ServletResponse getResponse()
      Specified by:
      getResponse in class org.springframework.security.taglibs.authz.AbstractAuthorizeTag
    • getServletContext

      protected jakarta.servlet.ServletContext getServletContext()
      Specified by:
      getServletContext in class org.springframework.security.taglibs.authz.AbstractAuthorizeTag