public interface

UserProfileFragment

com.atlassian.jira.user.profile.UserProfileFragment
Known Indirect Subclasses

Class Overview

A class that respresents a small piece of a screen on a User Profile Tab that is fragment based.

Summary

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.

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