Class SummaryContextProvider
java.lang.Object
com.atlassian.jira.projectconfig.contextproviders.SummaryContextProvider
- All Implemented Interfaces:
CacheableContextProvider,com.atlassian.plugin.web.ContextProvider
Provides context for the main summary page, in particular the list of
SimplePanel columns via leftColumn and
rightColumn objects.- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionSummaryContextProvider(com.atlassian.plugin.web.api.DynamicWebInterfaceManager dynamicWebInterfaceManager, ContextProviderUtils contextProviderUtils, ModuleWebComponent moduleWebComponent, JiraAuthenticationContext authenticationContext, ProjectDescriptionRenderer projectDescriptionRenderer, EditWorkflowDiscoverHelper editWorkflowDiscoverHelper) -
Method Summary
Modifier and TypeMethodDescriptiongetContextMap(Map<String, Object> appProvidedContext) Gets the context used when rendering the summary web panel.getUniqueContextKey(Map<String, Object> context) Return a key that is unique for the scope that this context should be scoped.void
-
Constructor Details
-
SummaryContextProvider
public SummaryContextProvider(com.atlassian.plugin.web.api.DynamicWebInterfaceManager dynamicWebInterfaceManager, ContextProviderUtils contextProviderUtils, ModuleWebComponent moduleWebComponent, JiraAuthenticationContext authenticationContext, ProjectDescriptionRenderer projectDescriptionRenderer, EditWorkflowDiscoverHelper editWorkflowDiscoverHelper)
-
-
Method Details
-
init
- Specified by:
initin interfacecom.atlassian.plugin.web.ContextProvider- Throws:
com.atlassian.plugin.PluginParseException
-
getContextMap
Gets the context used when rendering the summary web panel. In particular, contains:- simpleProject
-
A wrapped
Projectthat has a subset of methods and renames description descriptionHtml to allow anti-xss escaping - leftColumn
- Rendered web panels that should go on the left. Determined by the location SummaryContextProvider.SUMMARY_LEFT_PANELS_LOCATION
- rightColumn
- Rendered web panels that should go on the right. Determined by the location SummaryContextProvider.SUMMARY_RIGHT_PANELS_LOCATION
- Specified by:
getContextMapin interfacecom.atlassian.plugin.web.ContextProvider- Parameters:
appProvidedContext- The application provided context- Returns:
- The context used when rendering the summary web panel
-
getUniqueContextKey
Description copied from interface:CacheableContextProviderReturn a key that is unique for the scope that this context should be scoped. E.g. If the context is unique per issue, per user return "JRA-11234:nmenere"- Specified by:
getUniqueContextKeyin interfaceCacheableContextProvider- Parameters:
context- the context passed into the getContextMap method.- Returns:
- a key that is unique for the scope that this context
-