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.voidinit(ViewProfilePanelModuleDescriptor moduleDescriptor) This method is called on plugin initialization and provides the module with a reference to the parent module descriptor.booleanshowPanel(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:ViewProfilePanelThis method is called on plugin initialization and provides the module with a reference to the parent module descriptor.- Specified by:
initin interfaceViewProfilePanel- Parameters:
moduleDescriptor- the controlling class that doles out this module.
-
showPanel
Description copied from interface:OptionalUserProfilePanelWhether or not to show the panel for a given user to a given user.- Specified by:
showPanelin 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:ViewProfilePanelRenders the html to be used in this profile panel.- Specified by:
getHtmlin interfaceViewProfilePanel- Parameters:
profileUser- The user whose profile is being viewed. May be null.- Returns:
- the html content.
-
getXsrfToken
-