Package com.atlassian.jira.web.component
Class ModuleWebComponentImpl
java.lang.Object
com.atlassian.jira.web.component.ModuleWebComponentImpl
- All Implemented Interfaces:
ModuleWebComponent
-
Constructor Summary
ConstructorsConstructorDescriptionModuleWebComponentImpl(com.atlassian.event.api.EventPublisher eventPublisher, JiraAuthenticationContext jiraAuthenticationContext, ModuleWebComponentFields mwcFields) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.atlassian.soy.renderer.SoyTemplateRendererrenderModule(ApplicationUser user, jakarta.servlet.http.HttpServletRequest request, com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor<? extends com.atlassian.plugin.web.api.model.WebPanel> webPanelModuleDescriptor, Map<String, Object> params) renderModules(ApplicationUser user, jakarta.servlet.http.HttpServletRequest request, List<? extends com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor<? extends com.atlassian.plugin.web.api.model.WebPanel>> webPanelModuleDescriptors, Map<String, Object> params) A convienence method that iterates over of the list of WebPanels and renders each.
-
Constructor Details
-
ModuleWebComponentImpl
public ModuleWebComponentImpl(com.atlassian.event.api.EventPublisher eventPublisher, JiraAuthenticationContext jiraAuthenticationContext, ModuleWebComponentFields mwcFields)
-
-
Method Details
-
renderModules
public String renderModules(ApplicationUser user, jakarta.servlet.http.HttpServletRequest request, List<? extends com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor<? extends com.atlassian.plugin.web.api.model.WebPanel>> webPanelModuleDescriptors, Map<String, Object> params) Description copied from interface:ModuleWebComponentA convienence method that iterates over of the list of WebPanels and renders each.- Specified by:
renderModulesin interfaceModuleWebComponent- Parameters:
user- The user that we are rendering these forrequest- The request that these web panels are being rendered inwebPanelModuleDescriptors- The list of WebPanels being renderedparams- The params to pass to the render- Returns:
- The rendered HTML
-
renderModule
public String renderModule(ApplicationUser user, jakarta.servlet.http.HttpServletRequest request, com.atlassian.plugin.web.api.descriptors.WebPanelModuleDescriptor<? extends com.atlassian.plugin.web.api.model.WebPanel> webPanelModuleDescriptor, Map<String, Object> params) - Specified by:
renderModulein interfaceModuleWebComponent- Parameters:
user- The user that we are rendering these forrequest- The request that these web panels are being rendered inwebPanelModuleDescriptor- The WebPanel to renderparams- The params to pass to the render- Returns:
- The rendered HTML
-
getSoyRenderer
protected com.atlassian.soy.renderer.SoyTemplateRenderer getSoyRenderer()
-