java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.logic.ConditionalTagBase
com.RuntimeCollective.permission.tag.HasNoPermissionTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class HasNoPermissionTag
- extends org.apache.struts.taglib.logic.ConditionalTagBase
Evalute the nested body content of this tag if the currently logged on user
DOES NOT have permission to perform the specified action on the specified bean. The user
is taken from the session using key RuntimeParameters.get("logonUserKey"). If
no user is logged on, then permission is refused (and the body IS evaluated).
This tag takes two compulsory parameters:
- permissible - the name of the Permissible bean on which an action maybe be performed.
- action - the action (eg "view") to be performed
- Version:
- $Id: HasNoPermissionTag.java,v 1.5 2003/09/30 15:12:51 joe Exp $
| Methods inherited from class org.apache.struts.taglib.logic.ConditionalTagBase |
doEndTag, doStartTag, getCookie, getHeader, getName, getParameter, getProperty, getRole, getScope, getUser, setCookie, setHeader, setName, setParameter, setProperty, setRole, setScope, setUser |
| 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 |
permissible
protected java.lang.String permissible
- The permissible bean.
action
protected java.lang.String action
- The action.
HasNoPermissionTag
public HasNoPermissionTag()
getPermissible
public java.lang.String getPermissible()
- Get the permissible bean.
setPermissible
public void setPermissible(java.lang.String permissible)
- Set the permissible bean.
getAction
public java.lang.String getAction()
- Get the action.
setAction
public void setAction(java.lang.String action)
- Set the action.
condition
protected boolean condition()
throws javax.servlet.jsp.JspException
- Evaluate the condition that is being tested by this particular tag,
and return
true if the nested body content of this tag
should be evaluated, or false if it should be skipped.
This method must be implemented by concrete subclasses.
release
public void release()
- Release any acquired resources.