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: 40298 $
- 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()
|
String |
getLoginIcon()
|
String |
getLogoutIcon()
|
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. |
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. |
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. |
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)
|
void |
setLoginIcon(String customLoginIcon)
|
void |
setLogoutIcon(String customLogoutIcon)
|
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
loginIcon
protected String loginIcon
logoutIcon
protected String logoutIcon
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)
setLoginIcon
public void setLoginIcon(String customLoginIcon)
setLogoutIcon
public void setLogoutIcon(String customLogoutIcon)
getLoginIcon
public String getLoginIcon()
getLogoutIcon
public String getLogoutIcon()
printLogin
public 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 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 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 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.