public class DarkFeaturesUserProfilePanel extends Object implements ViewProfilePanel, OptionalUserProfilePanel
VIEW_TEMPLATE
Constructor and Description |
---|
DarkFeaturesUserProfilePanel(JiraAuthenticationContext authenticationContext,
PermissionManager permissionManager,
FeatureManager featureManager,
XsrfTokenGenerator xsrfTokenGenerator) |
Modifier and Type | Method and Description |
---|---|
String |
getHtml(ApplicationUser profileUser)
Renders the html to be used in this profile panel.
|
String |
getXsrfToken() |
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(ApplicationUser profileUser,
ApplicationUser currentUser)
Whether or not to show the panel for a given user to a given user.
|
public DarkFeaturesUserProfilePanel(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, FeatureManager featureManager, XsrfTokenGenerator xsrfTokenGenerator)
public void init(ViewProfilePanelModuleDescriptor moduleDescriptor)
ViewProfilePanel
init
in interface ViewProfilePanel
moduleDescriptor
- the controlling class that doles out this module.public boolean showPanel(ApplicationUser profileUser, ApplicationUser currentUser)
OptionalUserProfilePanel
showPanel
in interface OptionalUserProfilePanel
profileUser
- The profile being requestedcurrentUser
- The current userpublic String getHtml(ApplicationUser profileUser)
ViewProfilePanel
getHtml
in interface ViewProfilePanel
profileUser
- The user whose profile is being viewed. May be null.public String getXsrfToken()
Copyright © 2002-2022 Atlassian. All Rights Reserved.