pt.despodata.java.webappl.tags
Class AbstractProtectTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bypt.moredata.taglibs.AbstractTag
          extended bypt.despodata.java.webappl.tags.AbstractProtectTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
RoleTag

public abstract class AbstractProtectTag
extends AbstractTag

AbstractProtectTag.java Company MoreData

Version:
$Revision: 1.1 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
protected  java.lang.String authorized
          Holds value of property authorized.
protected  java.lang.String name
          Holds value of property name.
protected  ProtectTag parent
          Tag onde esta tag deve ser aninhada.
protected  IUser user
          Utilizador autenticado perante a aplicacao.
 
Fields inherited from class pt.moredata.taglibs.AbstractTag
uri
 
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
AbstractProtectTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
          Implemetacao da tag.
protected abstract  boolean isConditionVerified()
           
 void release()
          Tag handlers should always implement release() because handlers can be reused by the JSP container
 void setAuthorized(java.lang.String authorized)
          Setter for property authorized.
 void setName(java.lang.String name)
          Setter for property name.
 
Methods inherited from class pt.moredata.taglibs.AbstractTag
doCatch, doFinally, getAncestor, getAncestor, getUri, getVarFromJspPage, readUri, setVarInJspPage
 
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
 

Field Detail

name

protected java.lang.String name
Holds value of property name.


authorized

protected java.lang.String authorized
Holds value of property authorized.


parent

protected ProtectTag parent
Tag onde esta tag deve ser aninhada.


user

protected IUser user
Utilizador autenticado perante a aplicacao.

Constructor Detail

AbstractProtectTag

public AbstractProtectTag()
Method Detail

isConditionVerified

protected abstract boolean isConditionVerified()
                                        throws javax.servlet.jsp.JspTagException
Returns:
Um boleano que indica caso seja verdadeiro que se verifica uma condicao.
Throws:
javax.servlet.jsp.JspTagException

doStartTag

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

Throws:
javax.servlet.jsp.JspException

doEndTag

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

release

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


setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

setAuthorized

public void setAuthorized(java.lang.String authorized)
Setter for property authorized.

Parameters:
authorized - New value of property authorized.