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

Christian Bauer christian at hibernate.org
Sun Apr 22 06:15:33 EDT 2007


  User: cbauer  
  Date: 07/04/22 06:15:33

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs 
                        WikiPreferences.java
  Log:
  Fixed atom feed updating/purging logic
  
  Revision  Changes    Path
  1.6       +9 -0      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/WikiPreferences.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: WikiPreferences.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/action/prefs/WikiPreferences.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- WikiPreferences.java	19 Apr 2007 09:32:07 -0000	1.5
  +++ WikiPreferences.java	22 Apr 2007 10:15:33 -0000	1.6
  @@ -8,6 +8,7 @@
   import org.jboss.seam.wiki.preferences.PreferenceSupport;
   import org.jboss.seam.ScopeType;
   import org.hibernate.validator.Length;
  +import org.hibernate.validator.Range;
   
   import java.io.Serializable;
   
  @@ -39,6 +40,10 @@
       @org.hibernate.validator.Pattern(regex="\\.[a-zA-z]+")
       private String permlinkSuffix;
   
  +    @Preference(description = "07. Purge feed entries after N days", visibility = PreferenceVisibility.SYSTEM)
  +    @Range(min = 1l, max = 999l)
  +    private Long purgeFeedEntriesAfterDays;
  +
       public String getBaseUrl() {
           return baseUrl;
       }
  @@ -62,4 +67,8 @@
       public String getPermlinkSuffix() {
           return permlinkSuffix;
       }
  +
  +    public Long getPurgeFeedEntriesAfterDays() {
  +        return purgeFeedEntriesAfterDays;
  +    }
   }
  
  
  



More information about the jboss-cvs-commits mailing list