Class PermissionTagHandler

java.lang.Object
javax.faces.view.facelets.TagHandler
org.apache.shiro.ee.faces.tags.SecureTagHandler
org.apache.shiro.ee.faces.tags.PermissionTagHandler
All Implemented Interfaces:
javax.faces.view.facelets.FaceletHandler
Direct Known Subclasses:
HasAnyPermissionTag, HasAnyRolesTag, HasPermissionTag, HasRoleTag, LacksPermissionTag, LacksRoleTag

public abstract class PermissionTagHandler extends SecureTagHandler
Base TagHandler for Tags that check for permissions.
  • Field Summary

    Fields inherited from class javax.faces.view.facelets.TagHandler

    nextHandler, tag, tagId
  • Constructor Summary

    Constructors
    Constructor
    Description
    PermissionTagHandler(javax.faces.view.facelets.TagConfig config)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent)
     
    protected boolean
     
    protected abstract boolean
     

    Methods inherited from class org.apache.shiro.ee.faces.tags.SecureTagHandler

    getSubject

    Methods inherited from class javax.faces.view.facelets.TagHandler

    getAttribute, getRequiredAttribute, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PermissionTagHandler

      public PermissionTagHandler(javax.faces.view.facelets.TagConfig config)
  • Method Details

    • apply

      public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException, javax.faces.FacesException, javax.el.ELException
      Throws:
      IOException
      javax.faces.FacesException
      javax.el.ELException
    • isPermitted

      protected boolean isPermitted(String p)
    • showTagBody

      protected abstract boolean showTagBody(String p)