Interface ProjectPermissionTypesManager
- All Known Implementing Classes:
MockProjectPermissionTypesManager
,ProjectPermissionTypesManagerImpl
public interface ProjectPermissionTypesManager
Manages project permissions defined by plugins (including system project permissions).
- Since:
- v6.3
-
Method Summary
Modifier and TypeMethodDescriptionall()
boolean
exists
(ProjectPermissionKey permissionKey) Returns a boolean value indicating whether a project permission with the given key exists.withCategory
(ProjectPermissionCategory category) io.atlassian.fugue.Option<ProjectPermission>
withKey
(ProjectPermissionKey permissionKey) Returns a project permission matching the specified key.
-
Method Details
-
all
Collection<ProjectPermission> all()- Returns:
- all project permissions.
-
withCategory
- Parameters:
category
- project permission category.- Returns:
- all project permissions of the specified category.
-
withKey
Returns a project permission matching the specified key.- Parameters:
permissionKey
- A project permission key.- Returns:
- a project permission for the given permission key.
Option.none()
if there is no permission with this key.
-
exists
Returns a boolean value indicating whether a project permission with the given key exists.- Parameters:
permissionKey
- A project permission key.- Returns:
- true if the permission with the given key exists, otherwise false.
-