Class FooterDataProvider
java.lang.Object
com.atlassian.jira.plugin.navigation.FooterDataProvider
Provides data for the standard footer.
- Since:
- 7.4
-
Method Summary
Modifier and TypeMethodDescriptionTakes existing map and adds data needed to render standard footerasJSON()
Assembles data needed to render the footerasMap()
Assembles data needed to render the footerstatic FooterDataProvider
getInstance
(String contextPath) Create an instance of FooterDataProvider.
-
Method Details
-
getInstance
Create an instance of FooterDataProvider. This footer may be rendered at any given time. However not all required Compontents are available at any given time in the PICO Container. As long as the PICO Container is not fully initialized we can not be sure it can provide all needed Components. Therefore we take care of creating our own instance and handling non existing Components gracefully rather than getting our Dependencies injected.- Since:
- 7.4
-
asJSON
Assembles data needed to render the footer- Returns:
- JSONObject containing data needed to render standard footer
-
asMap
Assembles data needed to render the footer- Returns:
- map containing data to render the standard footer
-
addToMap
Takes existing map and adds data needed to render standard footer- Parameters:
footerModel
- the map to add the footer data to- Returns:
- map containing data to render the standard footer
-