java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.jeteam.tag.NeedPrivilegeTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class NeedPrivilegeTag
- extends javax.servlet.jsp.tagext.TagSupport
This tag is designed to only render its content if the specific user has the required
privilege.
In case the user does not have the permission the content will simply be ignored.
| 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 |
PAGE_SCOPE
private final java.lang.String PAGE_SCOPE
- See Also:
- Constant Field Values
BODY_SCOPE
private final java.lang.String BODY_SCOPE
- See Also:
- Constant Field Values
permission
private java.lang.String permission
scope
private java.lang.String scope
userInRole
private boolean userInRole
NeedPrivilegeTag
public NeedPrivilegeTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.TagSupport
- Default processing of the start tag, returning SKIP_BODY.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Description copied from class:
javax.servlet.jsp.tagext.TagSupport
- Default processing of the end tag returning EVAL_PAGE.
setPermission
public void setPermission(java.lang.String permission)
setScope
public void setScope(java.lang.String scope)