com.jalios.jcms.taglib
Class LoginTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.jalios.jcms.taglib.LoginTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

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

Version:
$Revision: 29519 $
Author:
Olivier Jaquemet
See Also:
Serialized Form

Field Summary
protected  JcmsJspContext jcmsContext
           
static String REVISION
           
 
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
LoginTag()
           
 
Method Summary
 void clean()
           
 int doEndTag()
           
 int doStartTag()
           
static void printLogin(StringBuffer sb, javax.servlet.http.HttpServletRequest request, String userLang, Member loggedMember, boolean displayLinkText)
          Prints the login link (icon) to the given string buffer in the given userLang.
static void printLoginSuMenu(StringBuffer sb, javax.servlet.http.HttpServletRequest request, String userLang, Member loggedMember)
          Prints the su login context menu links to the given string buffer in the given userLang.
If the loggedMember has some delegation.
static void printLogout(StringBuffer sb, javax.servlet.http.HttpServletRequest request, String userLang, Member loggedMember, boolean displayLinkText)
          Prints the logout link (icon) to the given string buffer in the given userLang.
static void printLogoutSuMenu(StringBuffer sb, javax.servlet.http.HttpServletRequest request, String userLang, Member loggedMember)
          Prints the logout context menu links to the given string buffer in the given userLang.
If the current session has some su history.
 void setDisplayLinkText(boolean b)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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

REVISION

public static final String REVISION
See Also:
Constant Field Values

jcmsContext

protected JcmsJspContext jcmsContext
Constructor Detail

LoginTag

public LoginTag()
Method Detail

doStartTag

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

doEndTag

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

clean

public void clean()

setDisplayLinkText

public void setDisplayLinkText(boolean b)

printLogin

public static void printLogin(StringBuffer sb,
                              javax.servlet.http.HttpServletRequest request,
                              String userLang,
                              Member loggedMember,
                              boolean displayLinkText)
Prints the login link (icon) to the given string buffer in the given userLang.

Parameters:
sb - the StringBuffer in which HTML will be printed
request - current HttpServletRequest
userLang - the userLang in which to I18N text
loggedMember - current loggedMember
displayLinkText - whether the text normally used for alternative and title text of the icon should also be displayed in the generated link.

printLogout

public static void printLogout(StringBuffer sb,
                               javax.servlet.http.HttpServletRequest request,
                               String userLang,
                               Member loggedMember,
                               boolean displayLinkText)
Prints the logout link (icon) to the given string buffer in the given userLang.

Parameters:
sb - the StringBuffer in which HTML will be printed
request - current HttpServletRequest
userLang - the userLang in which to I18N text
loggedMember - current loggedMember
displayLinkText - whether the text normally used for alternative and title text of the icon should also be displayed in the generated link.

printLoginSuMenu

public static void printLoginSuMenu(StringBuffer sb,
                                    javax.servlet.http.HttpServletRequest request,
                                    String userLang,
                                    Member loggedMember)
Prints the su login context menu links to the given string buffer in the given userLang.
If the loggedMember has some delegation.

Parameters:
sb - the StringBuffer in which HTML will be printed
request - current HttpServletRequest
userLang - the userLang in which to I18N text
loggedMember - current loggedMember

printLogoutSuMenu

public static void printLogoutSuMenu(StringBuffer sb,
                                     javax.servlet.http.HttpServletRequest request,
                                     String userLang,
                                     Member loggedMember)
Prints the logout context menu links to the given string buffer in the given userLang.
If the current session has some su history.

Parameters:
sb - the StringBuffer in which HTML will be printed
request - current HttpServletRequest
userLang - the userLang in which to I18N text
loggedMember - current loggedMember


Copyright © 2001-2010 Jalios SA. All Rights Reserved.