com.atlassian.jira.security.plugin
Class GlobalPermissionTypesManagerImpl

java.lang.Object
  extended by com.atlassian.jira.security.plugin.GlobalPermissionTypesManagerImpl
All Implemented Interfaces:
Startable, GlobalPermissionTypesManager

public class GlobalPermissionTypesManagerImpl
extends Object
implements Startable, GlobalPermissionTypesManager


Constructor Summary
GlobalPermissionTypesManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
           
 
Method Summary
 Collection<GlobalPermissionType> getAll()
           
 com.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(String permissionKey)
           
 void onClearCache(ClearCacheEvent 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

GlobalPermissionTypesManagerImpl

public GlobalPermissionTypesManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                        com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Method Detail

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

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.

getAll

public Collection<GlobalPermissionType> getAll()
Specified by:
getAll in interface GlobalPermissionTypesManager
Returns:
all global permissions defined by plugins.

getGlobalPermission

public com.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@NotNull
                                                                            String permissionKey)
Specified by:
getGlobalPermission in interface GlobalPermissionTypesManager
Parameters:
permissionKey - the complete key of global-permission module.
Returns:
the global permission object for the provided permissionKey.


Copyright © 2002-2014 Atlassian. All Rights Reserved.