Package com.atlassian.jira.plugin.report
Interface ReportUrlProvider
- All Known Implementing Classes:
AlwaysNoneReportUrlProvider
@ExperimentalSpi
public interface ReportUrlProvider
Provides context-dependent URL for given report.
- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<String> getUrl(ReportModuleDescriptor reportModule, Map<String, Object> context) Generate Report URL for givenReportModuleDescriptor, within givencontext.
When givencontextdoes not satisfy report requirements, or Report should not show in particular context, it should returnOption.none()
-
Method Details
-
getUrl
io.atlassian.fugue.Option<String> getUrl(ReportModuleDescriptor reportModule, Map<String, Object> context) Generate Report URL for given
ReportModuleDescriptor, within givencontext.
When givencontextdoes not satisfy report requirements, or Report should not show in particular context, it should returnOption.none()- Parameters:
reportModule- Descriptor of Report Module which URL has to be generatedcontext- Context in which report will be displayed- Returns:
- Report URL or
Option.none()when report should not show in this context
-