com.atlassian.jira.security.plugin
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
 Collection<ProjectPermission> all()
           
 boolean exists(ProjectPermissionKey permissionKey)
          Returns a boolean value indicating whether a project permission with the given key exists.
 Collection<ProjectPermission> withCategory(ProjectPermissionCategory category)
           
 com.atlassian.fugue.Option<ProjectPermission> withKey(ProjectPermissionKey permissionKey)
          Returns a project permission matching the specified key.
 

Method Detail

all

Collection<ProjectPermission> all()
Returns:
all project permissions.

withCategory

Collection<ProjectPermission> withCategory(ProjectPermissionCategory category)
Parameters:
category - project permission category.
Returns:
all project permissions of the specified category.

withKey

com.atlassian.fugue.Option<ProjectPermission> withKey(ProjectPermissionKey permissionKey)
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

boolean exists(ProjectPermissionKey permissionKey)
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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.