public class GlobalPermissionTypesManagerImpl extends Object implements Startable, GlobalPermissionTypesManager
Constructor and Description |
---|
GlobalPermissionTypesManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
ApplicationRoleManager applicationRoleManager) |
Modifier and Type | Method and Description |
---|---|
Collection<GlobalPermissionType> |
getAll()
Returns all global permissions defined in this JIRA instance.
|
io.atlassian.fugue.Option<GlobalPermissionType> |
getGlobalPermission(GlobalPermissionKey permissionKey)
Returns the details of the given Global Permission.
|
io.atlassian.fugue.Option<GlobalPermissionType> |
getGlobalPermission(String permissionKey)
Returns the details of the given Global Permission.
|
void |
onClearCache(ClearCacheEvent event) |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public GlobalPermissionTypesManagerImpl(@Nonnull com.atlassian.plugin.PluginAccessor pluginAccessor, @Nonnull com.atlassian.plugin.event.PluginEventManager pluginEventManager, @Nonnull ApplicationRoleManager applicationRoleManager)
@EventListener public void onClearCache(ClearCacheEvent event)
public void start() throws Exception
Startable
public Collection<GlobalPermissionType> getAll()
GlobalPermissionTypesManager
getAll
in interface GlobalPermissionTypesManager
public io.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@Nonnull String permissionKey)
GlobalPermissionTypesManager
getGlobalPermission
in interface GlobalPermissionTypesManager
permissionKey
- the String based permission keypublic io.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@Nonnull GlobalPermissionKey permissionKey)
GlobalPermissionTypesManager
getGlobalPermission
in interface GlobalPermissionTypesManager
permissionKey
- the GlobalPermissionKey representing this Global Permission.Copyright © 2002-2021 Atlassian. All Rights Reserved.