com.ora.jsp.tags
Class IfUserInRoleTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended bycom.ora.jsp.tags.IfUserInRoleTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class IfUserInRoleTag
extends javax.servlet.jsp.jstl.core.ConditionalTagSupport

This class is a custom action for testing if the current (authenticated) user belongs to the specified security role. If he/she is, the body is evaluated. If a var attribute is provided, the result is also saved as a Boolean variable in the specified scope, or in the page if no scope is specified.

Version:
3.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
private  java.lang.String value
           
 
Fields inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
IfUserInRoleTag()
           
 
Method Summary
 boolean condition()
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, release, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private java.lang.String value
Constructor Detail

IfUserInRoleTag

public IfUserInRoleTag()
Method Detail

setValue

public void setValue(java.lang.String value)

condition

public boolean condition()
                  throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException