public class UserCheckTag extends WikiTagBase
exists="true" ==> status="known"
exists="false" ==> status="unknown"
It is NOT a good idea to use BOTH of the arguments.
ATTR_CONTEXT, m_wikiContext
Constructor and Description |
---|
UserCheckTag() |
Modifier and Type | Method and Description |
---|---|
int |
doWikiStartTag()
This method is allowed to do pretty much whatever he wants.
|
String |
getStatus()
Get the status as defined above.
|
void |
initTag()
This method is called when the tag is encountered within a new request,
but before the setXXX() methods are called.
|
void |
setExists(String arg)
Deprecated.
|
void |
setStatus(String status)
Sets the status as defined above.
|
doCatch, doEndTag, doFinally, doStartTag, setId, setPageContext
public UserCheckTag()
public void initTag()
initTag
in class WikiTagBase
public String getStatus()
public void setStatus(String status)
status
- The status to be checked.public void setExists(String arg)
arg
- If true, works exactly as status = authenticated. If false, works
as if status = anonymous.public final int doWikiStartTag() throws IOException
doWikiStartTag
in class WikiTagBase
IOException
WikiTagBase.doWikiStartTag()
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.