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()
          Returns all global permissions defined in this JIRA instance.
 com.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(GlobalPermissionKey permissionKey)
          Returns the details of the given Global Permission.
 com.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(String permissionKey)
          Returns the details of the given Global Permission.
 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()
Description copied from interface: GlobalPermissionTypesManager
Returns all global permissions defined in this JIRA instance.

Specified by:
getAll in interface GlobalPermissionTypesManager
Returns:
all global permissions defined by plugins including system permissions.

getGlobalPermission

public com.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@Nonnull
                                                                            String permissionKey)
Description copied from interface: GlobalPermissionTypesManager
Returns the details of the given Global Permission.

Specified by:
getGlobalPermission in interface GlobalPermissionTypesManager
Parameters:
permissionKey - the String based permission key
Returns:
the global permission object for the provided permissionKey.

getGlobalPermission

public com.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@Nonnull
                                                                            GlobalPermissionKey permissionKey)
Description copied from interface: GlobalPermissionTypesManager
Returns the details of the given Global Permission.

Specified by:
getGlobalPermission in interface GlobalPermissionTypesManager
Parameters:
permissionKey - the GlobalPermissionKey representing this Global Permission.
Returns:
the global permission object for the provided permissionKey.


Copyright © 2002-2014 Atlassian. All Rights Reserved.