Example usage for org.springframework.security.taglibs.authz JspAuthorizeTag doStartTag

List of usage examples for org.springframework.security.taglibs.authz JspAuthorizeTag doStartTag

Introduction

In this page you can find the example usage for org.springframework.security.taglibs.authz JspAuthorizeTag doStartTag.

Prototype

public int doStartTag() throws JspException 

Source Link

Document

Invokes the base class AbstractAuthorizeTag#authorize() method to decide if the body of the tag should be skipped or not.

Usage

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_sec_005fauthorize_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f4,
        javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  sec:authorize
    org.springframework.security.taglibs.authz.JspAuthorizeTag _jspx_th_sec_005fauthorize_005f0 = (org.springframework.security.taglibs.authz.JspAuthorizeTag) _005fjspx_005ftagPool_005fsec_005fauthorize_0026_005fifAnyGranted
            .get(org.springframework.security.taglibs.authz.JspAuthorizeTag.class);
    _jspx_th_sec_005fauthorize_005f0.setPageContext(_jspx_page_context);
    _jspx_th_sec_005fauthorize_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f4);
    // /WEB-INF/pages/includes/topmenu.jsp(122,12) name = ifAnyGranted type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_sec_005fauthorize_005f0.setIfAnyGranted("ROLE_USER");
    int _jspx_eval_sec_005fauthorize_005f0 = _jspx_th_sec_005fauthorize_005f0.doStartTag();
    if (_jspx_eval_sec_005fauthorize_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        out.write("\n");
        out.write("            <ul class=\"nav pull-right\">\n");
        out.write("                <li>\n");
        out.write("                    <a href=\"/pamelaChu/account/#/profile\">\n");
        out.write("                        <span>\n");
        out.write("                            <span class=\"glyphicon glyphicon-user\"></span>\n");
        out.write("                            <span class=\"hidden-tablet\">\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f15(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </span>\n");
        out.write("                        </span>\n");
        out.write("                    </a>\n");
        out.write("                </li>\n");
        out.write("                <li class=\"dropdown pointer\">\n");
        out.write("                    <a class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n");
        out.write("                    <span>\n");
        out.write("                        <span class=\"glyphicon glyphicon-th-list\"></span>\n");
        out.write("                        <span class=\"hidden-tablet\">\n");
        out.write("                            ");
        if (_jspx_meth_fmt_005fmessage_005f16(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                        </span>\n");
        out.write("                        <b class=\"caret\"></b>\n");
        out.write("                    </span>\n");
        out.write("                    </a>\n");
        out.write("                    <ul class=\"dropdown-menu\">\n");
        out.write("                        <!-- <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/profile\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-user\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f17(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/preferences\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-picture\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f18(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li> -->\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/password\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-lock\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f19(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                        <li class=\"divider\"></li>\n");
        out.write("                        <li>\n");
        out.write("                            <!-- <a href=\"/pamelaChu/account/#/files\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-file\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f20(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a> -->\n");
        out.write("                            <a href=\"/pamelaChu/account/#/users\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-globe\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f21(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/groups\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-th-large\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f22(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/tags\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-tags\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f23(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                        <!-- <li class=\"divider\"></li>\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/status_of_the_day\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-signal\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f24(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                            <a href=\"/pamelaChu/home#company\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-briefcase\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f25(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li> -->\n");
        out.write("                        <li class=\"divider\"></li>\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/logout\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-off\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f26(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                    </ul>\n");
        out.write("                </li>\n");
        out.write("                <li class=\"hidden-phone\">\n");
        out.write("                    <button id=\"editTatam\" class=\"editTatam btn btn-pub btn-blue\">\n");
        out.write("                        <i class=\"glyphicon glyphicon-pencil\"></i>\n");
        out.write("                        <span class=\"visible-desktop\">\n");
        out.write("                            ");
        if (_jspx_meth_fmt_005fmessage_005f27(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                        </span>\n");
        out.write("                    </button>\n");
        out.write("                </li>\n");
        out.write("            </ul>\n");
        out.write("            <!--<ul class=\"nav pull-right\">\n");
        out.write("                <li>\n");
        out.write("                    <a href=\"#\" id=\"help-tour\">\n");
        out.write("                        <span>\n");
        out.write("                            <span class=\"glyphicon glyphicon-question-sign\"></span>\n");
        out.write("                            <span class=\"hidden-tablet\">\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f28(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </span>\n");
        out.write("                        </span>\n");
        out.write("                    </a>\n");
        out.write("                </li>\n");
        out.write("            </ul> -->\n");
        out.write(/* w ww.  j a  va 2 s . c  o m*/
                "            <form id=\"searchform\" class=\"navbar-form pull-right col-span-4\" action=\"\">\n");
        out.write(
                "                <input name=\"search\" type=\"text\" class=\"col-span-12\" id=\"searchinput\" placeholder=\"");
        if (_jspx_meth_fmt_005fmessage_005f29(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\" autocomplete=\"off\">\n");
        out.write(
                "                <span class=\"deleteicon\"><i class=\"glyphicon glyphicon-remove-sign\"></i></span>\n");
        out.write("            </form>\n");
        out.write("            ");
    }
    if (_jspx_th_sec_005fauthorize_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fsec_005fauthorize_0026_005fifAnyGranted
                .reuse(_jspx_th_sec_005fauthorize_005f0);
        return true;
    }
    _005fjspx_005ftagPool_005fsec_005fauthorize_0026_005fifAnyGranted.reuse(_jspx_th_sec_005fauthorize_005f0);
    return false;
}