public class

RssRenderItem

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.rss.RssRenderItem

Class Overview

Contains the configuration necessary for an implementation of RssRenderSupport to render an RSS item. Typically constructed by the FeedBuilder.

This bean includes fields that some implementations may not care about. For example, showContent and showDifferences won't be relevant for attachments.

Summary

Public Constructors
RssRenderItem(ConfluenceEntityObject entity, FeedProperties feedProperties, User modifier, User user, DateFormatter dateFormatter)
Public Methods
DateFormatter getDateFormatter()
Map<StringObject> getDefaultVelocityContext()
Provides a default Velocity context for rendering this item.
ConfluenceEntityObject getEntity()
User getModifier()
User getUser()
boolean isShowContent()
boolean isShowDifferences()
This method is deprecated. Since 4.0. We no longer support diffs in RSS feeds.
void setDateFormatter(DateFormatter dateFormatter)
void setEntity(ConfluenceEntityObject entity)
void setShowContent(boolean showContent)
void setShowDifferences(boolean showDifferences)
This method is deprecated. Since 4.0. We no longer support diffs in RSS items so any setting here is ignored.
void setUser(User user)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RssRenderItem (ConfluenceEntityObject entity, FeedProperties feedProperties, User modifier, User user, DateFormatter dateFormatter)

Public Methods

public DateFormatter getDateFormatter ()

public Map<StringObject> getDefaultVelocityContext ()

Provides a default Velocity context for rendering this item. It pulls the default context from defaultVelocityContext() and adds the user and dateFormatter parameters.

Returns
  • a velocity context for this item

public ConfluenceEntityObject getEntity ()

public User getModifier ()

public User getUser ()

Returns
  • the user who authorised the feed if a private feed, or null for a public feed.

public boolean isShowContent ()

public boolean isShowDifferences ()

This method is deprecated.
Since 4.0. We no longer support diffs in RSS feeds.

@return

public void setDateFormatter (DateFormatter dateFormatter)

public void setEntity (ConfluenceEntityObject entity)

public void setShowContent (boolean showContent)

public void setShowDifferences (boolean showDifferences)

This method is deprecated.
Since 4.0. We no longer support diffs in RSS items so any setting here is ignored.

public void setUser (User user)