public class MockProjectPermissionTypesManager extends Object implements ProjectPermissionTypesManager
Constructor and Description |
---|
MockProjectPermissionTypesManager() |
Modifier and Type | Method and Description |
---|---|
Collection<ProjectPermission> |
all() |
boolean |
exists(ProjectPermissionKey key)
Returns a boolean value indicating whether a project permission
with the given key exists.
|
Collection<ProjectPermission> |
withCategory(ProjectPermissionCategory category) |
io.atlassian.fugue.Option<ProjectPermission> |
withKey(ProjectPermissionKey key)
Returns a project permission matching the specified key.
|
public Collection<ProjectPermission> all()
all
in interface ProjectPermissionTypesManager
public Collection<ProjectPermission> withCategory(ProjectPermissionCategory category)
withCategory
in interface ProjectPermissionTypesManager
category
- project permission category.public io.atlassian.fugue.Option<ProjectPermission> withKey(ProjectPermissionKey key)
ProjectPermissionTypesManager
withKey
in interface ProjectPermissionTypesManager
key
- A project permission key.Option.none()
if there is no permission with this key.public boolean exists(ProjectPermissionKey key)
ProjectPermissionTypesManager
exists
in interface ProjectPermissionTypesManager
key
- A project permission key.Copyright © 2002-2019 Atlassian. All Rights Reserved.