com.atlassian.jira.web.sitemesh
Class AdminDecoratorHelper

java.lang.Object
  extended by com.atlassian.jira.web.sitemesh.AdminDecoratorHelper

public class AdminDecoratorHelper
extends Object

Class that holds all the logic for the projectconfig decorator.

Since:
v4.4

Nested Class Summary
static class AdminDecoratorHelper.Header
           
 
Field Summary
static String ACTIVE_SECTION_KEY
           
static String ACTIVE_TAB_LINK_KEY
           
static String SYSTEM_ADMIN_TOP
           
static String SYSTEM_ADMIN_TOP_NAVIGATION_BAR
           
 
Constructor Summary
AdminDecoratorHelper(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager, ProjectService projectService, JiraAuthenticationContext authenticationContext, SimpleLinkManager linkManager, SoyTemplateRendererProvider soyTemplateRendererProvider)
           
 
Method Summary
protected  String encode(String string)
           
 List<SimpleLinkSection> getChildSectionsForSection(String location)
           
 String getHeaderHtml()
           
 List<AdminDecoratorHelper.Header> getHeaders()
           
 javax.servlet.http.HttpServletRequest getHttpRequest()
           
 List<SimpleLink> getLinksForSection(String parentSection, String section)
           
 List<SimpleLinkSection> getMainAdminSections()
           
 LinkedList<com.atlassian.jira.web.sitemesh.AdminDecoratorHelper.PathSegment> getPathToLink(SimpleLink simpleLink)
           
 boolean getSectionContainsAtleastOneLink(String parentSection, String section)
           
 String getSelectedMenuSection()
           
 String getSideMenuHtml(String sectionId)
           
 boolean hasKey()
           
 boolean isAdminMenusAllHidden()
           
 boolean isHasHeader()
           
 AdminDecoratorHelper setCurrentSection(String currentSection)
           
 AdminDecoratorHelper setCurrentTab(String currentTab)
           
 AdminDecoratorHelper setProject(String projectKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_ADMIN_TOP_NAVIGATION_BAR

public static final String SYSTEM_ADMIN_TOP_NAVIGATION_BAR
See Also:
Constant Field Values

SYSTEM_ADMIN_TOP

public static final String SYSTEM_ADMIN_TOP
See Also:
Constant Field Values

ACTIVE_SECTION_KEY

public static final String ACTIVE_SECTION_KEY
See Also:
Constant Field Values

ACTIVE_TAB_LINK_KEY

public static final String ACTIVE_TAB_LINK_KEY
See Also:
Constant Field Values
Constructor Detail

AdminDecoratorHelper

public AdminDecoratorHelper(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager,
                            ProjectService projectService,
                            JiraAuthenticationContext authenticationContext,
                            SimpleLinkManager linkManager,
                            SoyTemplateRendererProvider soyTemplateRendererProvider)
Method Detail

isAdminMenusAllHidden

public boolean isAdminMenusAllHidden()

setProject

public AdminDecoratorHelper setProject(String projectKey)

setCurrentTab

public AdminDecoratorHelper setCurrentTab(String currentTab)

setCurrentSection

public AdminDecoratorHelper setCurrentSection(String currentSection)

getSelectedMenuSection

public String getSelectedMenuSection()

hasKey

public boolean hasKey()

getHeaders

public List<AdminDecoratorHelper.Header> getHeaders()

getHeaderHtml

public String getHeaderHtml()

isHasHeader

public boolean isHasHeader()

getSideMenuHtml

public String getSideMenuHtml(String sectionId)

getHttpRequest

public javax.servlet.http.HttpServletRequest getHttpRequest()

encode

protected String encode(String string)

getMainAdminSections

public List<SimpleLinkSection> getMainAdminSections()

getChildSectionsForSection

public List<SimpleLinkSection> getChildSectionsForSection(String location)

getLinksForSection

public List<SimpleLink> getLinksForSection(String parentSection,
                                           String section)

getSectionContainsAtleastOneLink

public boolean getSectionContainsAtleastOneLink(String parentSection,
                                                String section)

getPathToLink

public LinkedList<com.atlassian.jira.web.sitemesh.AdminDecoratorHelper.PathSegment> getPathToLink(SimpleLink simpleLink)


Copyright © 2002-2014 Atlassian. All Rights Reserved.