com.atlassian.jira.security
Class MockProjectPermissionTypesManager

java.lang.Object
  extended by com.atlassian.jira.security.MockProjectPermissionTypesManager
All Implemented Interfaces:
ProjectPermissionTypesManager

public class MockProjectPermissionTypesManager
extends Object
implements ProjectPermissionTypesManager

Since:
v6.3

Constructor Summary
MockProjectPermissionTypesManager()
           
 
Method Summary
 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)
           
 com.atlassian.fugue.Option<ProjectPermission> withKey(ProjectPermissionKey key)
          Returns a project permission matching the specified key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockProjectPermissionTypesManager

public MockProjectPermissionTypesManager()
Method Detail

all

public Collection<ProjectPermission> all()
Specified by:
all in interface ProjectPermissionTypesManager
Returns:
all project permissions.

withCategory

public Collection<ProjectPermission> withCategory(ProjectPermissionCategory category)
Specified by:
withCategory in interface ProjectPermissionTypesManager
Parameters:
category - project permission category.
Returns:
all project permissions of the specified category.

withKey

public com.atlassian.fugue.Option<ProjectPermission> withKey(ProjectPermissionKey key)
Description copied from interface: ProjectPermissionTypesManager
Returns a project permission matching the specified key.

Specified by:
withKey in interface ProjectPermissionTypesManager
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

public boolean exists(ProjectPermissionKey key)
Description copied from interface: ProjectPermissionTypesManager
Returns a boolean value indicating whether a project permission with the given key exists.

Specified by:
exists in interface ProjectPermissionTypesManager
Parameters:
key - A project permission key.
Returns:
true if the permission with the given key exists, otherwise false.


Copyright © 2002-2014 Atlassian. All Rights Reserved.