@Internal public class

DefaultAdminDecoratorSectionLinkItemHelper

extends Object
implements AdminDecoratorSectionLinkItemHelper
java.lang.Object
   ↳ com.atlassian.jira.web.sitemesh.DefaultAdminDecoratorSectionLinkItemHelper

@Internal

This class is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

This implementation only works in Cloud, for Server it always returns empty.

Summary

Public Constructors
DefaultAdminDecoratorSectionLinkItemHelper(SimpleLinkManager linkManager, FeatureManager featureManager, ApplicationRoleManager applicationRoleManager)
Public Methods
Optional<SimpleLink> findSectionLink(SimpleLinkSection currentSection, ApplicationUser loggedInUser, JiraHelper jiraHelper)
Find the web-item associated with given web-section.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.sitemesh.AdminDecoratorSectionLinkItemHelper

Public Constructors

public DefaultAdminDecoratorSectionLinkItemHelper (SimpleLinkManager linkManager, FeatureManager featureManager, ApplicationRoleManager applicationRoleManager)

Public Methods

public Optional<SimpleLink> findSectionLink (SimpleLinkSection currentSection, ApplicationUser loggedInUser, JiraHelper jiraHelper)

Find the web-item associated with given web-section. This works by adding additional param to the section with name 'webfragments.cloud.link.item' and value equal to location and id of the item.

Parameters
currentSection current section
loggedInUser logged in user
jiraHelper jira helper
Returns
  • the web-item associated with the section or empty if it's not found