[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/plugin/tags ...

Christian Bauer christian at hibernate.org
Tue Dec 18 23:29:34 EST 2007


  User: cbauer  
  Date: 07/12/18 23:29:34

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/plugin/tags 
                        TagsAggregator.java
  Log:
  Major rewrite of the most of the application
  
  Revision  Changes    Path
  1.2       +7 -6      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/plugin/tags/TagsAggregator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TagsAggregator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/plugin/tags/TagsAggregator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- TagsAggregator.java	1 Oct 2007 19:08:06 -0000	1.1
  +++ TagsAggregator.java	19 Dec 2007 04:29:34 -0000	1.2
  @@ -3,8 +3,9 @@
   import org.jboss.seam.annotations.*;
   import org.jboss.seam.annotations.datamodel.DataModel;
   import org.jboss.seam.ScopeType;
  -import org.jboss.seam.wiki.core.model.Document;
  -import org.jboss.seam.wiki.core.model.Directory;
  +import org.jboss.seam.wiki.core.model.WikiDirectory;
  +import org.jboss.seam.wiki.core.model.WikiDocument;
  +import org.jboss.seam.wiki.core.model.DisplayTagCount;
   import org.jboss.seam.wiki.core.dao.TagDAO;
   
   import java.util.*;
  @@ -15,20 +16,20 @@
   public class TagsAggregator implements Serializable {
   
       @DataModel
  -    List<TagDAO.TagCount> tagsSortedByCount = new ArrayList<TagDAO.TagCount>();
  +    List<DisplayTagCount> tagsSortedByCount = new ArrayList<DisplayTagCount>();
   
       @In
       TagDAO tagDAO;
   
       @In
  -    Directory currentDirectory;
  +    WikiDirectory currentDirectory;
   
       @In
  -    Document currentDocument;
  +    WikiDocument currentDocument;
   
       @Factory("tagsSortedByCount")
       public void aggregateTags() {
  -        tagsSortedByCount = tagDAO.findTagsAggregatedSorted(currentDirectory, currentDocument, 0);
  +        tagsSortedByCount = tagDAO.findTagCounts(currentDirectory, currentDocument, 0);
       }
   
   }
  
  
  



More information about the jboss-cvs-commits mailing list