com.darwinsys.jsptags
Class LoggedInRoleTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.darwinsys.jsptags.LoggedInRoleTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class LoggedInRoleTag
extends javax.servlet.jsp.tagext.BodyTagSupport

LoggedInRole - include body content if user is logged in as a user that has this "role".

Version:
$Id: LoggedInRoleTag.java,v 1.7 2006/04/28 22:32:09 ian Exp $
See Also:
Serialized Form

Field Summary
 
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
LoggedInRoleTag()
           
 
Method Summary
 int doStartTag()
          Invoked at the start tag boundary; does the work.
 void setRole(java.lang.String r)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

LoggedInRoleTag

public LoggedInRoleTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Invoked at the start tag boundary; does the work.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

setRole

public void setRole(java.lang.String r)
Parameters:
r - The role to check for (e.g., "admin");


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.