com.atlassian.jira.plugin.profile
Class RoadmapUserProfilePanel

java.lang.Object
  extended by com.atlassian.jira.plugin.profile.RoadmapUserProfilePanel
All Implemented Interfaces:
OptionalUserProfilePanel, ViewProfilePanel

public class RoadmapUserProfilePanel
extends Object
implements ViewProfilePanel, OptionalUserProfilePanel

A user profile panel that displays the users personal roadmap

Since:
v4.1

Field Summary
 
Fields inherited from interface com.atlassian.jira.plugin.profile.ViewProfilePanel
VIEW_TEMPLATE
 
Constructor Summary
RoadmapUserProfilePanel(VersionDrillDownRenderer panelRenderer, JiraAuthenticationContext authenticationContext, VersionManager versionManager, VelocityRequestContextFactory requestContextFactory, ProjectManager projectManager, UserProjectHistoryManager projectHistoryManager, PermissionManager permissionManager, com.atlassian.plugin.webresource.WebResourceManager webResourceManager, FieldVisibilityManager fieldVisibilityManager)
           
 
Method Summary
 String getHtml(com.atlassian.crowd.embedded.api.User profileUser)
          Renders the html to be used in this profile panel.
 void init(ViewProfilePanelModuleDescriptor moduleDescriptor)
          This method is called on plugin initialization and provides the module with a reference to the parent module descriptor.
 boolean showPanel(com.atlassian.crowd.embedded.api.User profileUser, com.atlassian.crowd.embedded.api.User currentUser)
          Only displaythe panel if the it is the current user looking at their own profile, and assignee and fix for are visable in a project that has versions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoadmapUserProfilePanel

public RoadmapUserProfilePanel(VersionDrillDownRenderer panelRenderer,
                               JiraAuthenticationContext authenticationContext,
                               VersionManager versionManager,
                               VelocityRequestContextFactory requestContextFactory,
                               ProjectManager projectManager,
                               UserProjectHistoryManager projectHistoryManager,
                               PermissionManager permissionManager,
                               com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
                               FieldVisibilityManager fieldVisibilityManager)
Method Detail

init

public void init(ViewProfilePanelModuleDescriptor moduleDescriptor)
Description copied from interface: ViewProfilePanel
This method is called on plugin initialization and provides the module with a reference to the parent module descriptor.

Specified by:
init in interface ViewProfilePanel
Parameters:
moduleDescriptor - the controlling class that doles out this module.

showPanel

public boolean showPanel(com.atlassian.crowd.embedded.api.User profileUser,
                         com.atlassian.crowd.embedded.api.User currentUser)
Only displaythe panel if the it is the current user looking at their own profile, and assignee and fix for are visable in a project that has versions

Specified by:
showPanel in interface OptionalUserProfilePanel
Parameters:
profileUser - The profile being requested
currentUser - The current user
Returns:
true if pofile user equals current user, otherwise false

getHtml

public String getHtml(com.atlassian.crowd.embedded.api.User profileUser)
Description copied from interface: ViewProfilePanel
Renders the html to be used in this profile panel.

Specified by:
getHtml in interface ViewProfilePanel
Parameters:
profileUser - The user whose profile is being viewed. May be null.
Returns:
the html content.


Copyright © 2002-2012 Atlassian. All Rights Reserved.