Example usage for org.springframework.security.taglibs TagLibConfig evalOrSkip

List of usage examples for org.springframework.security.taglibs TagLibConfig evalOrSkip

Introduction

In this page you can find the example usage for org.springframework.security.taglibs TagLibConfig evalOrSkip.

Prototype

public static int evalOrSkip(boolean authorized) 

Source Link

Document

Returns EVAL_BODY_INCLUDE if the authorized flag is true or UI security has been disabled.

Usage

From source file:org.springframework.security.taglibs.authz.AccessControlListTag.java

private int skipBody() {
    if (var != null) {
        pageContext.setAttribute(var, Boolean.FALSE, PageContext.PAGE_SCOPE);
    }/*from   ww  w  .j ava  2 s  .  co  m*/
    return TagLibConfig.evalOrSkip(false);
}

From source file:org.springframework.security.taglibs.authz.AccessControlListTag.java

private int evalBody() {
    if (var != null) {
        pageContext.setAttribute(var, Boolean.TRUE, PageContext.PAGE_SCOPE);
    }//w ww  . j  a  v  a  2 s .  c  o m
    return TagLibConfig.evalOrSkip(true);
}