com.atlassian.jira.plugin.profile
Class DarkFeaturesUserProfilePanel

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

public class DarkFeaturesUserProfilePanel
extends Object
implements ViewProfilePanel, OptionalUserProfilePanel

A panel for viewing and editing Dark Features. Best pretend you never saw this.

Since:
v5.0

Field Summary
 
Fields inherited from interface com.atlassian.jira.plugin.profile.ViewProfilePanel
VIEW_TEMPLATE
 
Constructor Summary
DarkFeaturesUserProfilePanel(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, FeatureManager featureManager)
           
 
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)
          Whether or not to show the panel for a given user to a given user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DarkFeaturesUserProfilePanel

public DarkFeaturesUserProfilePanel(JiraAuthenticationContext authenticationContext,
                                    PermissionManager permissionManager,
                                    FeatureManager featureManager)
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)
Description copied from interface: OptionalUserProfilePanel
Whether or not to show the panel for a given user to a given user.

Specified by:
showPanel in interface OptionalUserProfilePanel
Parameters:
profileUser - The profile being requested
currentUser - The current user
Returns:
true if the panel should be show, 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-2013 Atlassian. All Rights Reserved.