pt.despodata.java.webappl.tags
Class ProtectTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.despodata.java.webappl.tags.ProtectTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

ProtectTag.java Protege regioes de texto, tornando-as acessiveis a apenas alguns utilizadores. Created: Fri Sep 14 17:41:41 2001

Version:
$Revision: 1.1 $
Author:
Paulo Carmo
See Also:
Serialized Form

Field Summary
 
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
ProtectTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Implemetacao da tag.
 void incAuthorizedRoles()
          Incrementa o numero de roles a que o utilizador pertence e que dao acesso ao conteudo da Tag.
 void incNoAuthorizedRoles()
          Incrementa o numero de roles a que o utilizador pertence e que impedem o acesso ao conteudo da Tag.
 void release()
          Tag handlers should always implement release() because handlers can be reused by the JSP container
 void setRole(java.lang.String v)
          Set the value of role.
 boolean showContent()
          Indica se o conteudo da pagina deve ou nao ser mostrado.
 
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
 

Constructor Detail

ProtectTag

public ProtectTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Implemetacao da tag.

Throws:
javax.servlet.jsp.JspTagException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

setRole

public void setRole(java.lang.String v)
Set the value of role.

Parameters:
v - Value to assign to role.

release

public void release()
Tag handlers should always implement release() because handlers can be reused by the JSP container


incAuthorizedRoles

public void incAuthorizedRoles()
Incrementa o numero de roles a que o utilizador pertence e que dao acesso ao conteudo da Tag.


incNoAuthorizedRoles

public void incNoAuthorizedRoles()
Incrementa o numero de roles a que o utilizador pertence e que impedem o acesso ao conteudo da Tag.


showContent

public boolean showContent()
Indica se o conteudo da pagina deve ou nao ser mostrado.