com.atlassian.jira.security
Class MockGlobalPermissionTypeManager

java.lang.Object
  extended by com.atlassian.jira.security.MockGlobalPermissionTypeManager
All Implemented Interfaces:
GlobalPermissionTypesManager

public class MockGlobalPermissionTypeManager
extends Object
implements GlobalPermissionTypesManager

Pretends we only have system global permissions


Field Summary
static List<GlobalPermissionType> SYSTEM_PERMISSIONS
           
 
Constructor Summary
MockGlobalPermissionTypeManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_PERMISSIONS

public static List<GlobalPermissionType> SYSTEM_PERMISSIONS
Constructor Detail

MockGlobalPermissionTypeManager

public MockGlobalPermissionTypeManager()
Method Detail

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(@NotNull
                                                                            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(@NotNull
                                                                            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.