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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockProjectPermissionTypesManager
public MockProjectPermissionTypesManager()
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.