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

Christian Bauer christian at hibernate.org
Mon Apr 9 04:43:53 EDT 2007


  User: cbauer  
  Date: 07/04/09 04:43:53

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/model 
                        FeedEntry.java
  Log:
  Plugin for feed teaser preview
  
  Revision  Changes    Path
  1.2       +7 -2      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FeedEntry.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- FeedEntry.java	8 Apr 2007 15:10:36 -0000	1.1
  +++ FeedEntry.java	9 Apr 2007 08:43:53 -0000	1.2
  @@ -6,10 +6,11 @@
   import java.util.Date;
   import java.util.HashSet;
   import java.util.Set;
  +import java.io.Serializable;
   
   @Entity
   @Table(name = "FEEDENTRY")
  -public class FeedEntry {
  +public class FeedEntry implements Serializable {
   
       @Id
       @GeneratedValue
  @@ -35,7 +36,7 @@
       @Column(name = "PUBLISHED_ON", nullable = false)
       private Date publishedDate = new Date();
   
  -    @Column(name = "UPDATED_ON", nullable = true)
  +    @Column(name = "UPDATED_ON", nullable = false)
       private Date updatedDate;
   
       @Column(name = "DESCRIPTION_TYPE", nullable = false)
  @@ -123,6 +124,10 @@
           this.descriptionValue = descriptionValue;
       }
   
  +    public String getDescriptionValueStripped() {
  +        return getDescriptionValue().replaceAll("\\<.*?\\>","");
  +    }
  +
       public Document getDocument() {
           return document;
       }
  
  
  



More information about the jboss-cvs-commits mailing list