public class PluggableUserProfileFragment extends AbstractUserProfileFragment
Modifier and Type | Field and Description |
---|---|
static com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator |
WEIGHTED_DESCRIPTOR_COMPARATOR |
CURRENT_USER, jiraAuthenticationContext, PROFILE_USER
Constructor and Description |
---|
PluggableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext,
VelocityTemplatingEngine templatingEngine,
VelocityParamFactory velocityParamFactory,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager) |
Modifier and Type | Method and Description |
---|---|
String |
getFragmentHtml(ApplicationUser profileUser,
ApplicationUser currentUser)
Creates the HTML for this fragment.
|
String |
getId()
Returns a unique id for this fragment.
|
createVelocityParams, showFragment
public static final com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
public PluggableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext, VelocityTemplatingEngine templatingEngine, VelocityParamFactory velocityParamFactory, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
public String getId()
UserProfileFragment
public String getFragmentHtml(ApplicationUser profileUser, ApplicationUser currentUser)
AbstractUserProfileFragment
This implementation renders the template based off of the fragment id - UserProfileFragment.getId()
getFragmentHtml
in interface UserProfileFragment
getFragmentHtml
in class AbstractUserProfileFragment
profileUser
- The user whose profile the current user is looking atcurrentUser
- The current userCopyright © 2002-2024 Atlassian. All Rights Reserved.