public class

ActivityUserProfileFragment

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

Class Overview

Creates a fragment containing the User's activity stream

Summary

Public Constructors
ActivityUserProfileFragment(PluginAccessor pluginAccessor, GadgetRequestContextFactory gadgetRequestContextFactory, I18nHelper.BeanFactory i18nFactory)
Public Methods
String getFragmentHtml(ApplicationUser profileUser, ApplicationUser currentUser)
Get the HTML Fragement.
String getId()
Returns a unique id for this fragment.
boolean showFragment(ApplicationUser profileUser, ApplicationUser currentUser)
We only display this is both the Activity Stream Plugin and Gadget Plugin are installed
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.user.profile.UserProfileFragment

Public Constructors

public ActivityUserProfileFragment (PluginAccessor pluginAccessor, GadgetRequestContextFactory gadgetRequestContextFactory, I18nHelper.BeanFactory i18nFactory)

Public Methods

public String getFragmentHtml (ApplicationUser profileUser, ApplicationUser currentUser)

Get the HTML Fragement.

Parameters
profileUser The user whose profile the current user is looking at
currentUser The current user
Returns
  • html

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)

We only display this is both the Activity Stream Plugin and Gadget Plugin are installed

Parameters
profileUser The user whose profile the current user is looking at
currentUser The current user
Returns
  • true if both the Activity Stream Plugin and Gadget Plugin are installed, otherwise false