|
|||||||||
| Home >> All >> com >> RuntimeCollective >> content >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.content.tag
Class EditorAttributesTag

java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.RuntimeCollective.content.tag.EditorAttributesTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class EditorAttributesTag
- extends javax.servlet.jsp.tagext.TagSupport
Evaluate the nested body content of this tag if the logged-on user
(on the session under RuntimeParameters.get("logonUserKey")) has
some combination of attributes set (isAdmin, isEditor).
Parameters are:
isAdmin - will only evaluate body contents if the user is an administrator.
isEditor - will only evaluate body contents if the user is a content editor (or administrator).
isNotAdmin - will only evaluate body contents if the user is not an administrator.
isNotEditor - will only evaluate body contents if the user is not a content editor (or administrator).
- Version:
- $Id: EditorAttributesTag.java,v 1.7 2003/09/30 15:12:47 joe Exp $
| Field Summary | |
protected boolean |
isAdmin
Check if the user is a staff administrator. |
protected boolean |
isEditor
Check if the user is a content editor |
protected boolean |
isNotAdmin
Check if the user is not a staff administrator. |
protected boolean |
isNotEditor
Check if the user is not a content editor |
protected java.lang.String |
name
The key of the session-scope bean we look for. |
| 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 | |
EditorAttributesTag()
|
|
| Method Summary | |
protected boolean |
attributesMatch()
Checks if all the required attributes are present in the logged-in user |
int |
doEndTag()
Evaluate the remainder of the current page normally. |
int |
doStartTag()
Perform the test required for this particular tag, and either evaluate or skip the body of this tag. |
boolean |
getIsAdmin()
Get whether to check if the user is a staff administrator. |
boolean |
getIsEditor()
Get whether to check if the user is a content editor |
boolean |
getIsNotAdmin()
Get whether to check if the user is not a staff administrator. |
boolean |
getIsNotEditor()
Get whether to check if the user is not a content editor |
boolean |
isAdmin()
Get whether to check if the user is a staff administrator. |
boolean |
isEditor()
Get whether to check if the user is a staff member. |
boolean |
isNotAdmin()
Get whether to check if the user is not a staff administrator. |
boolean |
isNotEditor()
Get whether to check if the user is not a staff member. |
void |
release()
Release any acquired resources. |
void |
setIsAdmin(boolean isAdmin)
Set to check if the user is a staff administrator. |
void |
setIsEditor(boolean isEditor)
Set to check if the user is a content editor |
void |
setIsNotAdmin(boolean isNotAdmin)
Set to check if the user is not a staff administrator. |
void |
setIsNotEditor(boolean isNotEditor)
Set to check if the user is not a content editor |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, 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 |
name
protected java.lang.String name
- The key of the session-scope bean we look for.
isAdmin
protected boolean isAdmin
- Check if the user is a staff administrator.
isEditor
protected boolean isEditor
- Check if the user is a content editor
isNotAdmin
protected boolean isNotAdmin
- Check if the user is not a staff administrator.
isNotEditor
protected boolean isNotEditor
- Check if the user is not a content editor
| Constructor Detail |
EditorAttributesTag
public EditorAttributesTag()
| Method Detail |
getIsAdmin
public boolean getIsAdmin()
- Get whether to check if the user is a staff administrator.
isAdmin
public boolean isAdmin()
- Get whether to check if the user is a staff administrator.
setIsAdmin
public void setIsAdmin(boolean isAdmin)
- Set to check if the user is a staff administrator.
getIsEditor
public boolean getIsEditor()
- Get whether to check if the user is a content editor
isEditor
public boolean isEditor()
- Get whether to check if the user is a staff member.
setIsEditor
public void setIsEditor(boolean isEditor)
- Set to check if the user is a content editor
getIsNotAdmin
public boolean getIsNotAdmin()
- Get whether to check if the user is not a staff administrator.
isNotAdmin
public boolean isNotAdmin()
- Get whether to check if the user is not a staff administrator.
setIsNotAdmin
public void setIsNotAdmin(boolean isNotAdmin)
- Set to check if the user is not a staff administrator.
getIsNotEditor
public boolean getIsNotEditor()
- Get whether to check if the user is not a content editor
isNotEditor
public boolean isNotEditor()
- Get whether to check if the user is not a staff member.
setIsNotEditor
public void setIsNotEditor(boolean isNotEditor)
- Set to check if the user is not a content editor
attributesMatch
protected boolean attributesMatch()
- Checks if all the required attributes are present in the logged-in user
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Perform the test required for this particular tag, and either evaluate
or skip the body of this tag.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Evaluate the remainder of the current page normally.
release
public void release()
- Release any acquired resources.
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> content >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC