Class WebworkPluginSecurityServiceHelper

java.lang.Object
com.atlassian.jira.plugin.webwork.WebworkPluginSecurityServiceHelper
All Implemented Interfaces:
Startable

public class WebworkPluginSecurityServiceHelper extends Object implements Startable
This allows for the roles-required attribute to be used within plugins.
Since:
v5.0
  • Constructor Details

    • WebworkPluginSecurityServiceHelper

      public WebworkPluginSecurityServiceHelper(com.atlassian.plugin.PluginAccessor pluginAccesor, com.atlassian.event.api.EventPublisher eventPublisher)
  • Method Details

    • onJiraPluginCacheResetEvent

      @EventListener public void onJiraPluginCacheResetEvent(JiraPluginCacheResetEvent event)
    • getRequiredRoles

      public Set<String> getRequiredRoles(jakarta.servlet.http.HttpServletRequest request)
      This finds the required roles for a given URL. Uses the same method as the WebworkService
      Parameters:
      request -
      Returns:
      Set of required roles
    • start

      public void start() throws Exception
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable
      Throws:
      Exception - Allows implementations to throw an Exception.