com.jalios.jcms.taglib
Class LoginTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
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
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 |
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 |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
jcmsContext
protected JcmsJspContext jcmsContext
LoginTag
public LoginTag()
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 printedrequest
- current HttpServletRequestuserLang
- the userLang in which to I18N textloggedMember
- current loggedMemberdisplayLinkText
- 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 printedrequest
- current HttpServletRequestuserLang
- the userLang in which to I18N textloggedMember
- current loggedMemberdisplayLinkText
- 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 printedrequest
- current HttpServletRequestuserLang
- the userLang in which to I18N textloggedMember
- 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 printedrequest
- current HttpServletRequestuserLang
- the userLang in which to I18N textloggedMember
- current loggedMember
Copyright © 2001-2010 Jalios SA. All Rights Reserved.