com.atlassian.jira.user.profile
Class DetailsUserProfileFragment

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

public class DetailsUserProfileFragment
extends AbstractUserProfileFragment

User Profile Fragment that displays the users core details

Since:
v4.1

Field Summary
 
Fields inherited from class com.atlassian.jira.user.profile.AbstractUserProfileFragment
applicationProperties, jiraAuthenticationContext
 
Constructor Summary
DetailsUserProfileFragment(ApplicationProperties applicationProperties, JiraAuthenticationContext jiraAuthenticationContext, com.atlassian.velocity.VelocityManager velocityManager, VelocityParamFactory velocityParamFactory, EmailFormatter emailFormatter, GroupPermissionChecker groupPermissionChecker, PermissionManager permissionManager, com.atlassian.crowd.embedded.api.CrowdService crowdService, UserPropertyManager userPropertyManager, com.atlassian.plugin.webresource.WebResourceManager webResourceManager, AvatarManager avatarManager, UserManager userManager, VelocityRequestContextFactory velocityRequestContextFactory)
           
 
Method Summary
protected  Map<String,Object> createVelocityParams(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
          Creates the parameters passed to the velocity template.
 String getBaseUrl()
           
 String getId()
          Returns a unique id for this fragment.
 
Methods inherited from class com.atlassian.jira.user.profile.AbstractUserProfileFragment
getFragmentHtml, showFragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailsUserProfileFragment

public DetailsUserProfileFragment(ApplicationProperties applicationProperties,
                                  JiraAuthenticationContext jiraAuthenticationContext,
                                  com.atlassian.velocity.VelocityManager velocityManager,
                                  VelocityParamFactory velocityParamFactory,
                                  EmailFormatter emailFormatter,
                                  GroupPermissionChecker groupPermissionChecker,
                                  PermissionManager permissionManager,
                                  com.atlassian.crowd.embedded.api.CrowdService crowdService,
                                  UserPropertyManager userPropertyManager,
                                  com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
                                  AvatarManager avatarManager,
                                  UserManager userManager,
                                  VelocityRequestContextFactory velocityRequestContextFactory)
Method Detail

createVelocityParams

protected Map<String,Object> createVelocityParams(com.atlassian.crowd.embedded.api.User profileUser,
                                                  com.atlassian.crowd.embedded.api.User currentUser)
Description copied from class: AbstractUserProfileFragment
Creates the parameters passed to the velocity template.

By default this contains "fragId", "profileUser", "currentUser"

Implmentors of this abstract class can override this method to provide their own params.

Overrides:
createVelocityParams in class AbstractUserProfileFragment
Parameters:
profileUser - The user whose profile the current user is looking at
currentUser - The current user
Returns:
a map of the params passed to the velocity template.

getBaseUrl

public String getBaseUrl()

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.