com.atlassian.jira.user.profile
Class PlugableUserProfileFragment
java.lang.Object
com.atlassian.jira.user.profile.AbstractUserProfileFragment
com.atlassian.jira.user.profile.PlugableUserProfileFragment
- All Implemented Interfaces:
- UserProfileFragment
public class PlugableUserProfileFragment
- extends AbstractUserProfileFragment
- Since:
- v5.2
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEIGHTED_DESCRIPTOR_COMPARATOR
public static final com.atlassian.plugin.web.descriptors.WeightedDescriptorComparator WEIGHTED_DESCRIPTOR_COMPARATOR
PlugableUserProfileFragment
public PlugableUserProfileFragment(JiraAuthenticationContext jiraAuthenticationContext,
VelocityTemplatingEngine templatingEngine,
VelocityParamFactory velocityParamFactory,
com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
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 atcurrentUser
- The current user
- Returns:
- The HTML of this fragment
Copyright © 2002-2014 Atlassian. All Rights Reserved.