Package com.atlassian.jira.security
Class MockGlobalPermissionTypeManager
java.lang.Object
com.atlassian.jira.security.MockGlobalPermissionTypeManager
- All Implemented Interfaces:
GlobalPermissionTypesManager
Pretends we only have system global permissions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()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.
-
Field Details
-
SYSTEM_PERMISSIONS
-
-
Constructor Details
-
MockGlobalPermissionTypeManager
public MockGlobalPermissionTypeManager()
-
-
Method Details
-
getAll
Description copied from interface:GlobalPermissionTypesManagerReturns all global permissions defined in this JIRA instance.- Specified by:
getAllin interfaceGlobalPermissionTypesManager- Returns:
- all global permissions defined by plugins including system permissions.
-
getGlobalPermission
public io.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@Nonnull String permissionKey) Description copied from interface:GlobalPermissionTypesManagerReturns the details of the given Global Permission.- Specified by:
getGlobalPermissionin interfaceGlobalPermissionTypesManager- Parameters:
permissionKey- the String based permission key- Returns:
- the global permission object for the provided permissionKey.
-
getGlobalPermission
public io.atlassian.fugue.Option<GlobalPermissionType> getGlobalPermission(@Nonnull GlobalPermissionKey permissionKey) Description copied from interface:GlobalPermissionTypesManagerReturns the details of the given Global Permission.- Specified by:
getGlobalPermissionin interfaceGlobalPermissionTypesManager- Parameters:
permissionKey- the GlobalPermissionKey representing this Global Permission.- Returns:
- the global permission object for the provided permissionKey.
-