public class RssRenderItem<T> extends Object
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.
| Constructor and Description |
|---|
RssRenderItem(T entity,
FeedProperties feedProperties,
com.atlassian.user.User modifier,
com.atlassian.user.User user,
DateFormatter dateFormatter) |
| Modifier and Type | Method and Description |
|---|---|
DateFormatter |
getDateFormatter() |
Map<String,Object> |
getDefaultVelocityContext()
Provides a default Velocity context for rendering this item.
|
T |
getEntity() |
com.atlassian.user.User |
getModifier() |
com.atlassian.user.User |
getUser() |
boolean |
isShowContent() |
boolean |
isShowDifferences()
Deprecated.
Since 4.0. We no longer support diffs in RSS feeds.
|
void |
setDateFormatter(DateFormatter dateFormatter) |
void |
setEntity(T entity) |
void |
setShowContent(boolean showContent) |
void |
setShowDifferences(boolean showDifferences)
Deprecated.
Since 4.0. We no longer support diffs in RSS items so any setting here is ignored.
|
void |
setUser(com.atlassian.user.User user) |
public RssRenderItem(T entity, FeedProperties feedProperties, com.atlassian.user.User modifier, com.atlassian.user.User user, DateFormatter dateFormatter)
public T getEntity()
public boolean isShowContent()
@Deprecated public boolean isShowDifferences()
public com.atlassian.user.User getUser()
public com.atlassian.user.User getModifier()
public DateFormatter getDateFormatter()
public void setEntity(T entity)
public void setShowContent(boolean showContent)
@Deprecated public void setShowDifferences(boolean showDifferences)
showDifferences - public void setUser(com.atlassian.user.User user)
public void setDateFormatter(DateFormatter dateFormatter)
public Map<String,Object> getDefaultVelocityContext()
MacroUtils.defaultVelocityContext()
and adds the user and dateFormatter parameters.Copyright © 2003–2019 Atlassian. All rights reserved.