jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@locus.apache.org
Subject cvs commit: jakarta-taglibs/request/src/org/apache/taglibs/request IsUserInRoleTag.java
Date Fri, 03 Nov 2000 12:51:27 GMT
glenn       00/11/03 04:51:27

  Modified:    request/src/org/apache/taglibs/request IsUserInRoleTag.java
  Log:
  Cleanup for release
  
  Revision  Changes    Path
  1.2       +19 -8     jakarta-taglibs/request/src/org/apache/taglibs/request/IsUserInRoleTag.java
  
  Index: IsUserInRoleTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/IsUserInRoleTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IsUserInRoleTag.java	2000/09/21 14:14:37	1.1
  +++ IsUserInRoleTag.java	2000/11/03 12:51:27	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/IsUserInRoleTag.java,v
1.1 2000/09/21 14:14:37 glenn Exp $
  - * $Revision: 1.1 $
  - * $Date: 2000/09/21 14:14:37 $
  + * $Header: /home/cvs/jakarta-taglibs/request/src/org/apache/taglibs/request/IsUserInRoleTag.java,v
1.2 2000/11/03 12:51:27 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2000/11/03 12:51:27 $
    *
    * ====================================================================
    *
  @@ -84,7 +84,7 @@
    * <name>isuserinrole</name>
    * <tagclass>org.apache.taglibs.request.IsUserInRoleTag</tagclass>
    * <bodycontent>JSP</bodycontent>
  - * <info>Used to test whether the HTTP connection is secure (using HTTPS).</info>
  + * <info>Test whether the remote user is in a role.</info>
    *   <attribute>
    *     <name>role</name>
    *     <required>yes</required>
  @@ -106,11 +106,11 @@
       private String role = null;
   
       /**
  -     * Tests condition of is secure HTTPS connection.
  +     * Determines whether remote user is in a role.
        *
        * @return SKIP_BODY if isuserinrole doesn't match value, EVAL_BODY_include if isuserinrole
matches value
        */
  -    public int doStartTag() throws JspException
  +    public final int doStartTag() throws JspException
       {
   	boolean result = ((HttpServletRequest)pageContext.getRequest()).isUserInRole(role);
   	if( value == null ) {
  @@ -123,12 +123,23 @@
   	return SKIP_BODY;
       }
   
  -    public void setValue(String str)
  +    /**
  +     * Set the optional tag attribute <b>value</b> to true or false. 
  +     *
  +     * @param String true or false
  +     */
  +    public final void setValue(String str)
       {
   	value = new Boolean(str);
       }
   
  -    public void setRole(String str)
  +    /**
  +     * Set the required tag attribute <b>role</b> to the name
  +     * of the role you wish to test remote user for.
  +     *
  +     * @param String role name
  +     */
  +    public final void setRole(String str)
       {
   	role = str;
       }
  
  
  

Mime
View raw message