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

Quick Search    Search Deep

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

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.RuntimeCollective.permission.tag.CheckPermissionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class CheckPermissionTag
extends javax.servlet.jsp.tagext.TagSupport

Check the permission of the current Session on a given Permissible, eventually redirecting to an AuthorisationPage (defined by the AuthorisationPathForAction property of the bean).

This tag takes two compulsory parameters:

Version:
$Id: CheckPermissionTag.java,v 1.14 2003/09/30 15:12:50 joe Exp $

Field Summary
protected  java.lang.String action
          The action.
protected  java.lang.String permissible
          The permissible bean.
 
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
CheckPermissionTag()
           
 
Method Summary
static java.lang.String computePermissionPath(javax.servlet.http.HttpServletRequest request, com.RuntimeCollective.permission.bean.Permissible pBean, java.lang.String action, java.lang.String returnPath)
          Do one permission check on a bean, for a given action.
 int doEndTag()
          Perform the check on the Permissible.
 int doStartTag()
          Defer our checking until the end of this tag is encountered.
 java.lang.String getAction()
           
 java.lang.String getPermissible()
           
 void release()
          Release any acquired resources.
 void setAction(java.lang.String anAction)
           
 void setPermissible(java.lang.String aPermissible)
           
 
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

CheckPermissionTag

public CheckPermissionTag()
Method Detail

getPermissible

public java.lang.String getPermissible()

setPermissible

public void setPermissible(java.lang.String aPermissible)

getAction

public java.lang.String getAction()

setAction

public void setAction(java.lang.String anAction)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Defer our checking until the end of this tag is encountered.


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Perform the check on the Permissible.


release

public void release()
Release any acquired resources.


computePermissionPath

public static java.lang.String computePermissionPath(javax.servlet.http.HttpServletRequest request,
                                                     com.RuntimeCollective.permission.bean.Permissible pBean,
                                                     java.lang.String action,
                                                     java.lang.String returnPath)
Do one permission check on a bean, for a given action.