public class

InlineActivityUserProfileFragment

extends Object
implements UserProfileFragment
java.lang.Object
   ↳ com.atlassian.jira.user.profile.InlineActivityUserProfileFragment

Class Overview

Uses the new inline activity stream to render a user's activity.

Summary

Constants
String INLINE_ACTIVITY_STREAM_FEATURE_KEY
Public Constructors
InlineActivityUserProfileFragment(PluginAccessor pluginAccessor, I18nHelper.BeanFactory i18nFactory, SoyTemplateRenderer soyTemplateRenderer)
Public Methods
String getFragmentHtml(ApplicationUser profileUser, ApplicationUser currentUser)
Creates the HTML for this fragment.
String getId()
Returns a unique id for this fragment.
boolean showFragment(ApplicationUser profileUser, ApplicationUser currentUser)
Whether or not we display this fragment.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.user.profile.UserProfileFragment

Constants

public static final String INLINE_ACTIVITY_STREAM_FEATURE_KEY

Constant Value: "com.atlassian.streams.InlineActivityStream"

Public Constructors

public InlineActivityUserProfileFragment (PluginAccessor pluginAccessor, I18nHelper.BeanFactory i18nFactory, SoyTemplateRenderer soyTemplateRenderer)

Public Methods

public String getFragmentHtml (ApplicationUser profileUser, ApplicationUser currentUser)

Creates the HTML for this fragment.

Parameters
profileUser The user whose profile the current user is looking at
currentUser The current user
Returns
  • The HTML of this fragment

public String getId ()

Returns a unique id for this fragment. The id should be HTML compliant for ids.

Returns
  • a unique id for this fragment

public boolean showFragment (ApplicationUser profileUser, ApplicationUser currentUser)

Whether or not we display this fragment.

Parameters
profileUser The user whose profile the current user is looking at
currentUser The current user
Returns
  • true if we should display this fragment, otherwise false