Package com.atlassian.jira.security
Class MockProjectPermissionTypesManager
java.lang.Object
com.atlassian.jira.security.MockProjectPermissionTypesManager
- All Implemented Interfaces:
ProjectPermissionTypesManager
public class MockProjectPermissionTypesManager
extends Object
implements ProjectPermissionTypesManager
- Since:
- v6.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()booleanReturns a boolean value indicating whether a project permission with the given key exists.withCategory(ProjectPermissionCategory category) io.atlassian.fugue.Option<ProjectPermission> Returns a project permission matching the specified key.
-
Constructor Details
-
MockProjectPermissionTypesManager
public MockProjectPermissionTypesManager()
-
-
Method Details
-
all
- Specified by:
allin interfaceProjectPermissionTypesManager- Returns:
- all project permissions.
-
withCategory
- Specified by:
withCategoryin interfaceProjectPermissionTypesManager- Parameters:
category- project permission category.- Returns:
- all project permissions of the specified category.
-
withKey
Description copied from interface:ProjectPermissionTypesManagerReturns a project permission matching the specified key.- Specified by:
withKeyin interfaceProjectPermissionTypesManager- Parameters:
key- A project permission key.- Returns:
- a project permission for the given permission key.
Option.none()if there is no permission with this key.
-
exists
Description copied from interface:ProjectPermissionTypesManagerReturns a boolean value indicating whether a project permission with the given key exists.- Specified by:
existsin interfaceProjectPermissionTypesManager- Parameters:
key- A project permission key.- Returns:
- true if the permission with the given key exists, otherwise false.
-