[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action ...

Christian Bauer christian at hibernate.org
Sat Sep 1 15:05:09 EDT 2007


  User: cbauer  
  Date: 07/09/01 15:05:09

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/action 
                        DirectoryHome.java
  Log:
  Recursively deleted directory updates cache correctly
  
  Revision  Changes    Path
  1.16      +7 -0      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/DirectoryHome.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DirectoryHome.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/DirectoryHome.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- DirectoryHome.java	27 Aug 2007 03:09:19 -0000	1.15
  +++ DirectoryHome.java	1 Sep 2007 19:05:09 -0000	1.16
  @@ -90,6 +90,13 @@
           return true;
       }
   
  +    protected boolean beforeRemove() {
  +        // Remove all children (nested, recursively, udpates the second-level cache)
  +        getNodeDAO().removeChildren(getInstance());
  +
  +        return true;
  +    }
  +
       /* -------------------------- Internal Methods ------------------------------ */
   
       private void refreshChildNodes() {
  
  
  



More information about the jboss-cvs-commits mailing list