Package com.atlassian.confluence.rss
Class RssRenderItem<T>
java.lang.Object
com.atlassian.confluence.rss.RssRenderItem<T>
Contains the configuration necessary for an implementation of
RssRenderSupport
to render an RSS item. Typically constructed by the SyndFeedService
.
This bean includes fields that some implementations may not care about. For example, showContent and showDifferences won't be relevant for attachments.
-
Constructor Summary
ConstructorDescriptionRssRenderItem
(T entity, FeedProperties feedProperties, com.atlassian.user.User modifier, com.atlassian.user.User user, DateFormatter dateFormatter) -
Method Summary
Modifier and TypeMethodDescriptionProvides a default Velocity context for rendering this item.com.atlassian.user.User
com.atlassian.user.User
getUser()
boolean
void
setDateFormatter
(DateFormatter dateFormatter) void
void
setShowContent
(boolean showContent) void
setUser
(com.atlassian.user.User user)
-
Constructor Details
-
RssRenderItem
public RssRenderItem(T entity, FeedProperties feedProperties, com.atlassian.user.User modifier, com.atlassian.user.User user, DateFormatter dateFormatter)
-
-
Method Details
-
getEntity
-
isShowContent
public boolean isShowContent() -
getUser
public com.atlassian.user.User getUser()- Returns:
- the user who authorised the feed if a private feed, or null for a public feed.
-
getModifier
public com.atlassian.user.User getModifier() -
getDateFormatter
-
setEntity
-
setShowContent
public void setShowContent(boolean showContent) -
setUser
public void setUser(com.atlassian.user.User user) -
setDateFormatter
-
getDefaultVelocityContext
Provides a default Velocity context for rendering this item. It pulls the default context fromMacroUtils.defaultVelocityContext()
and adds the user and dateFormatter parameters.- Returns:
- a velocity context for this item
-