com.cc.framework.taglib.security
Class NotGrantedTag

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

public class NotGrantedTag
extends GrantedTag

Tag-Handler for the notGranted Tag. Processes the content of the tag-body if the registerd Principal Objekt has not(!) the demanded permission.

Version:
$Revision: 1.7 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Serial Version UID
 
Fields inherited from class com.cc.framework.taglib.security.GrantedTag
 
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
NotGrantedTag()
           
 
Method Summary
protected  boolean doIncludeBody(Principal principal, Permission permission)
          This method checks for inclusion or exlusion of the Tag-Body
 
Methods inherited from class com.cc.framework.taglib.security.GrantedTag
doStartTag, setPermission
 
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
Constructor Detail

NotGrantedTag

public NotGrantedTag()
Method Detail

doIncludeBody

protected boolean doIncludeBody(Principal principal,
                                Permission permission)
Description copied from class: GrantedTag
This method checks for inclusion or exlusion of the Tag-Body

Overrides:
doIncludeBody in class GrantedTag
Parameters:
principal - The Principal Object
permission - The Permission
Returns:
return true to include the Tag-Body
See Also:
GrantedTag.doIncludeBody(com.cc.framework.security.Principal, com.cc.framework.security.Permission)


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