java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.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:
- permissible - the name of the Permissible bean on which an action maybe be performed
- action - the action (eg "view") to be performed
- Version:
- $Id: CheckPermissionTag.java,v 1.14 2003/09/30 15:12:50 joe Exp $
| 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.
CheckPermissionTag
public CheckPermissionTag()
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.