Package com.atlassian.jira.user.profile
Class PluggableUserProfileFragment
java.lang.Object
com.atlassian.jira.user.profile.AbstractUserProfileFragment
com.atlassian.jira.user.profile.PluggableUserProfileFragment
- All Implemented Interfaces:
UserProfileFragment
- Since:
- v5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.atlassian.plugin.web.descriptors.WeightedDescriptorComparatorFields inherited from class com.atlassian.jira.user.profile.AbstractUserProfileFragment
CURRENT_USER, jiraAuthenticationContext, PROFILE_USER -
Constructor Summary
ConstructorsConstructorDescriptionPluggableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext, VelocityTemplatingEngine templatingEngine, VelocityParamFactory velocityParamFactory, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager) -
Method Summary
Modifier and TypeMethodDescriptiongetFragmentHtml(ApplicationUser profileUser, ApplicationUser currentUser) Creates the HTML for this fragment.getId()Returns a unique id for this fragment.Methods inherited from class com.atlassian.jira.user.profile.AbstractUserProfileFragment
createVelocityParams, showFragment
-
Field Details
-
WEIGHTED_DESCRIPTOR_COMPARATOR
public static final com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
-
-
Constructor Details
-
PluggableUserProfileFragment
public PluggableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext, VelocityTemplatingEngine templatingEngine, VelocityParamFactory velocityParamFactory, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
-
-
Method Details
-
getId
Description copied from interface:UserProfileFragmentReturns a unique id for this fragment. The id should be HTML compliant for ids.- Returns:
- a unique id for this fragment
-
getFragmentHtml
Description copied from class:AbstractUserProfileFragmentCreates the HTML for this fragment.This implementation renders the template based off of the fragment id -
UserProfileFragment.getId()- Specified by:
getFragmentHtmlin interfaceUserProfileFragment- Overrides:
getFragmentHtmlin classAbstractUserProfileFragment- Parameters:
profileUser- The user whose profile the current user is looking atcurrentUser- The current user- Returns:
- The HTML of this fragment
-