Class Permission

  • All Implemented Interfaces:
    Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class Permission
    extends javax.servlet.jsp.tagext.TagSupport
    Processes the taglet's body if the current Subject has the required Permission of the given Application.

    Usage:

     <appNG:permission application="foobar" permission="do.something">Do it!</appNG:permission>
     
    Author:
    Matthias Herlitzius
    See Also:
    Serialized Form
    • Constructor Detail

      • Permission

        public Permission()
    • Method Detail

      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.TagSupport
        Throws:
        javax.servlet.jsp.JspException
      • getPermission

        public String getPermission()
      • setPermission

        public void setPermission​(String permission)
      • getApplication

        public String getApplication()
      • setApplication

        public void setApplication​(String application)
      • processMultiSiteSupport

        protected MultiSiteSupport processMultiSiteSupport​(Environment env,
                                                           javax.servlet.http.HttpServletRequest servletRequest)
                                                    throws javax.servlet.jsp.JspException
        Throws:
        javax.servlet.jsp.JspException