Index: pom.xml =================================================================== --- pom.xml (revision 145) +++ pom.xml (working copy) @@ -59,7 +59,7 @@ - 2.03.01 + 2.03.02-SNAPSHOT 1.2.1 2.6 Index: site/src/main/java/org/example/beans/TextDocument.java =================================================================== --- site/src/main/java/org/example/beans/TextDocument.java (revision 145) +++ site/src/main/java/org/example/beans/TextDocument.java (working copy) @@ -1,19 +1,37 @@ package org.example.beans; +import java.util.Calendar; + import org.hippoecm.hst.content.beans.Node; import org.hippoecm.hst.content.beans.standard.HippoHtml; +import org.onehippo.forge.feed.api.FeedType; +import org.onehippo.forge.feed.api.annot.SyndicationElement; +import org.onehippo.forge.feed.api.annot.SyndicationRefs; +import org.onehippo.forge.feed.api.transform.CalendarToDateConverter; +import org.onehippo.forge.feed.api.transform.atom.StringToContentConverter; +import org.onehippo.forge.feed.api.transform.rss.HippoHtmlToDescriptionTransformer; @Node(jcrType="myhippoproject:textdocument") public class TextDocument extends BaseDocument{ - + + @SyndicationElement(type = FeedType.RSS, name = "pubDate", converter = CalendarToDateConverter.class) + public Calendar getDate() { + return getProperty("hippostdpubwf:publicationDate"); + } + + @SyndicationElement(type = FeedType.RSS, name = "description", transformer = HippoHtmlToDescriptionTransformer.class) public HippoHtml getHtml(){ - return getHippoHtml("myhippoproject:body"); + return getHippoHtml("myhippoproject:body"); } public String getSummary() { return getProperty("myhippoproject:summary"); } - + + @SyndicationRefs({ + @SyndicationElement(type = FeedType.RSS, name = "title"), + @SyndicationElement(type = FeedType.ATOM, name = "title", converter = StringToContentConverter.class) + }) public String getTitle() { return getProperty("myhippoproject:title"); }