You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2002/01/01 14:44:17 UTC

cvs commit: jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/model ModelResult.java ModelResultBase.java

husted      02/01/01 05:44:17

  Modified:    contrib/scaffold/src/framework/main/org/apache/scaffold/model
                        ModelResult.java ModelResultBase.java
  Log:
  + Modified ModelHelper to extend BaseHelperAction
  + Added BaseHelperAction
  + ModelDetailHelper - update JavaDocs.
  + Added SetModelHelper - standard action to set ModelBean as session attribute.
  + Added RemoveModelHelper - standard action to remove session attribute.
  + Added FindForwardAction - Scan parameters for a matching forward name.
  + ModelResult, ModelResultBase - Change parameter names in signature.
  
  Revision  Changes    Path
  1.3       +4 -4      jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/model/ModelResult.java
  
  Index: ModelResult.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/model/ModelResult.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ModelResult.java	28 Dec 2001 13:34:57 -0000	1.2
  +++ ModelResult.java	1 Jan 2002 13:44:17 -0000	1.3
  @@ -18,7 +18,7 @@
    * Wrappers for interate and size are provided so that they
    * can be accessed as getIterate and getSize.
    * @author Ted Husted
  - * @version $Revision: 1.2 $ $Date: 2001/12/28 13:34:57 $
  + * @version $Revision: 1.3 $ $Date: 2002/01/01 13:44:17 $
    */
   public interface ModelResult {
   
  @@ -72,11 +72,11 @@
   
   
       /**
  -     * Set the description as "column = key".
  +     * Set the description as "field = value".
        * @param description1 The attribute description
        * @param description2 The value description
        */
  -    public void setDescription(String key, String column);
  +    public void setDescription(String value, String field);
   
   
       /**
  @@ -166,7 +166,7 @@
    *    Alternately, this acknowlegement may appear in the software itself,
    *    if and wherever such third-party acknowlegements normally appear.
    *
  - * 4. The names "The Jakarta Project", "Scaffold", and "Apache Software
  + * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    *    Foundation" must not be used to endorse or promote products derived
    *    from this software without prior written permission. For written
    *    permission, please contact apache@apache.org.
  
  
  
  1.3       +8 -8      jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/model/ModelResultBase.java
  
  Index: ModelResultBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/contrib/scaffold/src/framework/main/org/apache/scaffold/model/ModelResultBase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ModelResultBase.java	28 Dec 2001 13:34:57 -0000	1.2
  +++ ModelResultBase.java	1 Jan 2002 13:44:17 -0000	1.3
  @@ -14,7 +14,7 @@
    * used "as-is" to manage a collection of beans
    * returned from the resource layer.
    * @author Ted Husted
  - * @version $Revision: 1.2 $ $Date: 2001/12/28 13:34:57 $
  + * @version $Revision: 1.3 $ $Date: 2002/01/01 13:44:17 $
    */
   public class ModelResultBase implements ModelResult {
   
  @@ -57,7 +57,7 @@
   
       /**
        * The search description as a phrase,
  -     * ie: column = key
  +     * ie: field = value
        */
       private String description = null;
   
  @@ -81,16 +81,16 @@
   
   
       /**
  -     * Set the description as "column = key".
  +     * Set the description as "field = value".
        * @param description1 The attribute description
        * @param description2 The value description
        */
  -    public void setDescription(String key, String column) {
  -        if ((key==null) || ("".equals(key))) {
  -            this.description = column + PARAM_EQUALS + PARAM_ANY;
  +    public void setDescription(String value, String field) {
  +        if ((value==null) || ("".equals(value))) {
  +            this.description = field + PARAM_EQUALS + PARAM_ANY;
           }
           else {
  -            this.description = column + PARAM_EQUALS + key;
  +            this.description = field + PARAM_EQUALS + value;
           }
       }
   
  @@ -265,7 +265,7 @@
    *    Alternately, this acknowlegement may appear in the software itself,
    *    if and wherever such third-party acknowlegements normally appear.
    *
  - * 4. The names "The Jakarta Project", "Scaffold", and "Apache Software
  + * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    *    Foundation" must not be used to endorse or promote products derived
    *    from this software without prior written permission. For written
    *    permission, please contact apache@apache.org.
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>