com.atlassian.jira.plugin.webwork
Class WebworkPluginSecurityServiceHelper

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

public class WebworkPluginSecurityServiceHelper
extends Object
implements Startable

WebworkPluginSecurityService configures Seraph based on Webwork plugin module atlassian-plugin.xml This allows for the roles-required attribute to be used within plugins.

Since:
v5.0

Constructor Summary
WebworkPluginSecurityServiceHelper(com.atlassian.plugin.PluginAccessor pluginAccesor, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest request)
          This finds the required roles for a given URL.
 void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
           
 void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebworkPluginSecurityServiceHelper

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

onPluginModuleEnabled

public void onPluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)

onPluginModuleDisabled

public void onPluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)

getRequiredRoles

public Set<String> getRequiredRoles(javax.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 wil 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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.