public class

RssRenderItem

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.rss.RssRenderItem<T>

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(T 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.
T getEntity()
User getModifier()
User getUser()
boolean isShowContent()
@Deprecated boolean isShowDifferences()
This method is deprecated. Since 4.0. We no longer support diffs in RSS feeds.
void setDateFormatter(DateFormatter dateFormatter)
void setEntity(T entity)
void setShowContent(boolean showContent)
@Deprecated 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 (T 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 T 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 ()

@Deprecated 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 (T entity)

public void setShowContent (boolean showContent)

@Deprecated 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)