com.cc.framework.taglib.security
Class GrantedTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.security.GrantedTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
NotGrantedTag

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

Tag-Handler for the granted Tag. Processes the content of the tag-body if the registerd Principal Objekt has the demanded permission.

Since:
1.0
Version:
$Revision: 1.9 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String permission
          The required Permission to execute the Tag Body
private static long serialVersionUID
          Serial Version UID
 
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
GrantedTag()
           
 
Method Summary
protected  boolean doIncludeBody(Principal principal, Permission permission)
          This method checks for inclusion or exlusion of the Tag-Body
 int doStartTag()
           
 void setPermission(java.lang.String string)
          Sets the required permission for the Tag-Body
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

permission

private java.lang.String permission
The required Permission to execute the Tag Body

Constructor Detail

GrantedTag

public GrantedTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

doIncludeBody

protected boolean doIncludeBody(Principal principal,
                                Permission permission)
This method checks for inclusion or exlusion of the Tag-Body

Parameters:
principal - The Principal Object
permission - The Permission
Returns:
return true to include the Tag-Body

setPermission

public void setPermission(java.lang.String string)
Sets the required permission for the Tag-Body

Parameters:
string - Permission


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.