com.atlassian.jira.user.profile
Class PlugableUserProfileFragment

java.lang.Object
  extended by com.atlassian.jira.user.profile.AbstractUserProfileFragment
      extended by com.atlassian.jira.user.profile.PlugableUserProfileFragment
All Implemented Interfaces:
UserProfileFragment

public class PlugableUserProfileFragment
extends AbstractUserProfileFragment

Since:
v5.2

Field Summary
static com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
           
 
Fields inherited from class com.atlassian.jira.user.profile.AbstractUserProfileFragment
jiraAuthenticationContext
 
Constructor Summary
PlugableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext, VelocityTemplatingEngine templatingEngine, VelocityParamFactory velocityParamFactory, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
           
 
Method Summary
 String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
          Creates the HTML for this fragment.
 String getId()
          Returns a unique id for this fragment.
 
Methods inherited from class com.atlassian.jira.user.profile.AbstractUserProfileFragment
createVelocityParams, showFragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEIGHTED_DESCRIPTOR_COMPARATOR

public static final com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
Constructor Detail

PlugableUserProfileFragment

public PlugableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext,
                                   VelocityTemplatingEngine templatingEngine,
                                   VelocityParamFactory velocityParamFactory,
                                   com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
Method Detail

getId

public String getId()
Description copied from interface: UserProfileFragment
Returns a unique id for this fragment. The id should be HTML compliant for ids.

Returns:
a unique id for this fragment

getFragmentHtml

public String getFragmentHtml(com.atlassian.crowd.embedded.api.User profileUser,
                              com.atlassian.crowd.embedded.api.User currentUser)
Description copied from class: AbstractUserProfileFragment
Creates the HTML for this fragment.

This implementation renders the template based off of the fragment id - UserProfileFragment.getId()

Specified by:
getFragmentHtml in interface UserProfileFragment
Overrides:
getFragmentHtml in class AbstractUserProfileFragment
Parameters:
profileUser - The user whose profile the current user is looking at
currentUser - The current user
Returns:
The HTML of this fragment


Copyright © 2002-2013 Atlassian. All Rights Reserved.