public interface

AdminDecoratorSectionLinkItemHelper

com.atlassian.jira.web.sitemesh.AdminDecoratorSectionLinkItemHelper
Known Indirect Subclasses

Class Overview

Returns web-item that given web-section declares to use as its link.

Summary

Public Methods
Optional<SimpleLink> findSectionLink(SimpleLinkSection currentSection, ApplicationUser loggedInUser, JiraHelper jiraHelper)
Find the web-item associated with given web-section.

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