com.atlassian.jira.security
Class MockGlobalPermissionTypeManager
java.lang.Object
com.atlassian.jira.security.MockGlobalPermissionTypeManager
- All Implemented Interfaces:
- GlobalPermissionTypesManager
public class MockGlobalPermissionTypeManager
- extends Object
- implements GlobalPermissionTypesManager
Pretends we only have system global permissions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_PERMISSIONS
public static List<GlobalPermissionType> SYSTEM_PERMISSIONS
MockGlobalPermissionTypeManager
public MockGlobalPermissionTypeManager()
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.