info.magnolia.cms.taglibs
Class UserTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by info.magnolia.cms.taglibs.UserTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class UserTag
extends javax.servlet.jsp.tagext.TagSupport

Set the current user (info.magnolia.cms.security.User) into a pageContext variable.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
fgiust
See Also:
Serialized Form

Field Summary
 
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
UserTag()
           
 
Method Summary
 int doEndTag()
           
 void release()
           
 void setAnonymous(boolean anonymous)
          Display anonymous users as "anonymous".
 void setVar(String var)
          The current user will be set to the pageContext variable with this name.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, 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
 

Constructor Detail

UserTag

public UserTag()
Method Detail

setAnonymous

public void setAnonymous(boolean anonymous)
Display anonymous users as "anonymous". Default to false (variable will not be set for anonymous users)


setVar

public void setVar(String var)
The current user will be set to the pageContext variable with this name.


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.