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() |
void |
setDateFormatter(DateFormatter dateFormatter) |
void |
setEntity(T entity) |
void |
setShowContent(boolean showContent) |
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()
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)
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–2020 Atlassian. All rights reserved.