public class LoginTag
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected JcmsJspContext |
jcmsContext |
protected java.lang.String |
loginIcon |
protected java.lang.String |
logoutIcon |
static java.lang.String |
REVISION |
Constructor and Description |
---|
LoginTag() |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getLoginIcon() |
java.lang.String |
getLogoutIcon() |
void |
printLogin(java.lang.StringBuffer sb,
javax.servlet.http.HttpServletRequest request,
java.lang.String userLang,
Member loggedMember,
boolean displayLinkText)
Prints the login link (icon) to the given string buffer in the given userLang.
|
void |
printLoginSuMenu(java.lang.StringBuffer sb,
javax.servlet.http.HttpServletRequest request,
java.lang.String userLang,
Member loggedMember)
Prints the su login context menu links to the given string buffer in the given userLang.
|
void |
printLogout(java.lang.StringBuffer sb,
javax.servlet.http.HttpServletRequest request,
java.lang.String userLang,
Member loggedMember,
boolean displayLinkText)
Prints the logout link (icon) to the given string buffer in the given userLang.
|
void |
printLogoutSuMenu(java.lang.StringBuffer sb,
javax.servlet.http.HttpServletRequest request,
java.lang.String userLang,
Member loggedMember)
Prints the logout context menu links to the given string buffer in the given userLang.
|
void |
setDisplayLinkText(boolean b) |
void |
setLoginIcon(java.lang.String customLoginIcon) |
void |
setLogoutIcon(java.lang.String customLogoutIcon) |
public static final java.lang.String REVISION
protected JcmsJspContext jcmsContext
protected java.lang.String loginIcon
protected java.lang.String logoutIcon
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public void clean()
public void setDisplayLinkText(boolean b)
public void setLoginIcon(java.lang.String customLoginIcon)
public void setLogoutIcon(java.lang.String customLogoutIcon)
public java.lang.String getLoginIcon()
public java.lang.String getLogoutIcon()
public void printLogin(java.lang.StringBuffer sb, javax.servlet.http.HttpServletRequest request, java.lang.String userLang, Member loggedMember, boolean displayLinkText)
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.public void printLogout(java.lang.StringBuffer sb, javax.servlet.http.HttpServletRequest request, java.lang.String userLang, Member loggedMember, boolean displayLinkText)
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.public void printLoginSuMenu(java.lang.StringBuffer sb, javax.servlet.http.HttpServletRequest request, java.lang.String userLang, Member loggedMember)
sb
- the StringBuffer in which HTML will be printedrequest
- current HttpServletRequestuserLang
- the userLang in which to I18N textloggedMember
- current loggedMemberpublic void printLogoutSuMenu(java.lang.StringBuffer sb, javax.servlet.http.HttpServletRequest request, java.lang.String userLang, Member loggedMember)
sb
- the StringBuffer in which HTML will be printedrequest
- current HttpServletRequestuserLang
- the userLang in which to I18N textloggedMember
- current loggedMemberCopyright © 2001-2010 Jalios SA. All Rights Reserved.