org.mentawai.tag.authorization
Class IsUserInRole

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mentawai.tag.util.ConditionalTag
              extended by org.mentawai.tag.authorization.IsUserInRole
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class IsUserInRole
extends ConditionalTag

Check if user logged is on JAAS role.

Author:
helio frota
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mentawai.tag.util.ConditionalTag
action, application, loc, req, res, session
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
IsUserInRole()
           
 
Method Summary
 String getRoles()
          Gets roles of IsUserInRole.
 void setRoles(String roles)
          Sets roles of IsUserInRole.
 boolean testCondition()
          Default method testCondition of ConditionalTag.
 
Methods inherited from class org.mentawai.tag.util.ConditionalTag
doAfterBody, doStartTag, getSessionObj, getValue, getValue, setNegate
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

IsUserInRole

public IsUserInRole()
Method Detail

testCondition

public boolean testCondition()
                      throws javax.servlet.jsp.JspException
Default method testCondition of ConditionalTag.

Specified by:
testCondition in class ConditionalTag
Returns:
boolean
Throws:
javax.servlet.jsp.JspException

getRoles

public String getRoles()
Gets roles of IsUserInRole.

Returns:
String

setRoles

public void setRoles(String roles)
Sets roles of IsUserInRole.



Copyright © 2012. All Rights Reserved.