Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.permission.tag
Class HasNoPermissionTag  view HasNoPermissionTag download HasNoPermissionTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.taglib.logic.ConditionalTagBase
          extended bycom.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:

Version:
$Id: HasNoPermissionTag.java,v 1.5 2003/09/30 15:12:51 joe Exp $

Field Summary
protected  java.lang.String action
          The action.
protected  java.lang.String permissible
          The permissible bean.
 
Fields inherited from class org.apache.struts.taglib.logic.ConditionalTagBase
cookie, header, messages, name, parameter, property, role, scope, user
 
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
HasNoPermissionTag()
           
 
Method Summary
protected  boolean condition()
          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.
 java.lang.String getAction()
          Get the action.
 java.lang.String getPermissible()
          Get the permissible bean.
 void release()
          Release any acquired resources.
 void setAction(java.lang.String action)
          Set the action.
 void setPermissible(java.lang.String permissible)
          Set the permissible bean.
 
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
 

Field Detail

permissible

protected java.lang.String permissible
The permissible bean.


action

protected java.lang.String action
The action.

Constructor Detail

HasNoPermissionTag

public HasNoPermissionTag()
Method Detail

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.