org.apache.tiles.jsp.taglib
Class RoleSecurityTagSupport
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.tiles.jsp.taglib.TilesBodyTag
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
- Direct Known Subclasses:
- ContainerTagSupport
Deprecated. Use AddAttributeTag
and PutAttributeTag
directly.
public abstract class RoleSecurityTagSupport
- extends TilesBodyTag
Base tag for the tiles tags which provides standard support for security.
- Since:
- Tiles 2.0
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
int |
doEndTag()
Deprecated. |
protected abstract void |
execute()
Deprecated. Executes the tag. |
java.lang.String |
getRole()
Deprecated. Returns the role to check. |
protected boolean |
isAccessAllowed()
Deprecated. Checks if the user is inside the specified role. |
protected void |
reset()
Deprecated. Release any per-invocation resources, resetting any resources or state
that should be cleared between successive invocations of
Tag.doEndTag() and
Tag.doStartTag() . |
void |
setRole(java.lang.String role)
Deprecated. Sets the role to check. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
RoleSecurityTagSupport
public RoleSecurityTagSupport()
- Deprecated.
getRole
public java.lang.String getRole()
- Deprecated.
- Returns the role to check. If the user is in the specified role, the tag is
taken into account; otherwise, the tag is ignored (skipped).
- Returns:
- The role to check.
setRole
public void setRole(java.lang.String role)
- Deprecated.
- Sets the role to check. If the user is in the specified role, the tag is
taken into account; otherwise, the tag is ignored (skipped).
- Parameters:
role
- The role to check.
reset
protected void reset()
- Deprecated.
- Release any per-invocation resources, resetting any resources or state
that should be cleared between successive invocations of
Tag.doEndTag()
and
Tag.doStartTag()
.
- Overrides:
reset
in class TilesBodyTag
doEndTag
public int doEndTag()
throws TilesJspException
- Deprecated.
-
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
TilesJspException
execute
protected abstract void execute()
throws TilesJspException,
java.io.IOException
- Deprecated.
- Executes the tag. It is called inside
doEndTag()
.
- Throws:
TilesJspException
- If something goes wrong during rendering.
java.io.IOException
- If something goes wrong during writing content.
isAccessAllowed
protected boolean isAccessAllowed()
- Deprecated.
- Checks if the user is inside the specified role.
- Returns:
true
if the user is allowed to have the tag
rendered.