Class DarkFeaturesUserProfilePanel
java.lang.Object
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
ConstructorsConstructorDescriptionDarkFeaturesUserProfilePanel
(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, FeatureManager featureManager, XsrfTokenGenerator xsrfTokenGenerator) -
Method Summary
Modifier and TypeMethodDescriptiongetHtml
(ApplicationUser 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
(ApplicationUser profileUser, ApplicationUser currentUser) Whether or not to show the panel for a given user to a given user.
-
Constructor Details
-
DarkFeaturesUserProfilePanel
public DarkFeaturesUserProfilePanel(JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, FeatureManager featureManager, XsrfTokenGenerator xsrfTokenGenerator)
-
-
Method Details
-
init
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 interfaceViewProfilePanel
- Parameters:
moduleDescriptor
- the controlling class that doles out this module.
-
showPanel
Description copied from interface:OptionalUserProfilePanel
Whether or not to show the panel for a given user to a given user.- Specified by:
showPanel
in interfaceOptionalUserProfilePanel
- Parameters:
profileUser
- The profile being requestedcurrentUser
- The current user- Returns:
- true if the panel should be show, otherwise false
-
getHtml
Description copied from interface:ViewProfilePanel
Renders the html to be used in this profile panel.- Specified by:
getHtml
in interfaceViewProfilePanel
- Parameters:
profileUser
- The user whose profile is being viewed. May be null.- Returns:
- the html content.
-
getXsrfToken
-