Save This Page
Home » tiles-2.0.6-src » org.apache.tiles.jsp » taglib » [javadoc | source]
org.apache.tiles.jsp.taglib
abstract public class: RoleSecurityTagSupport [javadoc | source]
java.lang.Object
   javax.servlet.jsp.tagext.TagSupport
      javax.servlet.jsp.tagext.BodyTagSupport
         org.apache.tiles.jsp.taglib.RoleSecurityTagSupport

All Implemented Interfaces:
    BodyTag, IterationTag, Serializable

Direct Known Subclasses:
    RenderTagSupport, AddListAttributeTag, PutAttributeTag, InsertDefinitionTag, InsertTemplateTag, InsertAttributeTag, GetAsStringTag, AddAttributeTag, ContainerTagSupport, PutListAttributeTag

Base tag for the tiles tags which provides standard support for security.
Method from org.apache.tiles.jsp.taglib.RoleSecurityTagSupport Summary:
doEndTag,   execute,   getRole,   isAccessAllowed,   release,   setRole
Methods from javax.servlet.jsp.tagext.BodyTagSupport:
doAfterBody,   doEndTag,   doInitBody,   doStartTag,   getBodyContent,   getPreviousOut,   release,   setBodyContent
Methods from javax.servlet.jsp.tagext.TagSupport:
doAfterBody,   doEndTag,   doStartTag,   findAncestorWithClass,   getId,   getParent,   getValue,   getValues,   release,   removeValue,   setId,   setPageContext,   setParent,   setValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tiles.jsp.taglib.RoleSecurityTagSupport Detail:
 public int doEndTag() throws JspException 
    {@inheritDoc}
 abstract protected  void execute() throws IOException, JspException, TilesException
 public String getRole() 
    Returns the role to check. If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).
 protected boolean isAccessAllowed() 
    Checks if the user is inside the specified role.
 public  void release() 
    {@inheritDoc}
 public  void setRole(String role) 
    Sets the role to check. If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).