public class MockApplicationRoleAdminService extends Object implements ApplicationRoleAdminService
Modifier and Type | Field and Description |
---|---|
static String |
NOT_FOUND |
ERROR_DEFAULT_GROUPS, ERROR_GROUPS
Constructor and Description |
---|
MockApplicationRoleAdminService() |
Modifier and Type | Method and Description |
---|---|
MockApplicationRole |
addApplicationRole(String id) |
ServiceOutcome<ApplicationRole> |
getRole(com.atlassian.application.api.ApplicationKey key)
Return the
ApplicationRole backed by a (potentially exceeded) license. |
ServiceOutcome<Set<ApplicationRole>> |
getRoles()
Returns an immutable
Set of all ApplicationRole s
that are backed by a (potentially exceeded) license. |
ServiceOutcome<ApplicationRole> |
setRole(ApplicationRole role)
Save the passed
ApplicationRole information to the database. |
ServiceOutcome<Set<ApplicationRole>> |
setRoles(Collection<ApplicationRole> rolesList)
Save the passed list of
ApplicationRole information to the database. |
public static final String NOT_FOUND
@Nonnull public ServiceOutcome<Set<ApplicationRole>> getRoles()
ApplicationRoleAdminService
Set
of all ApplicationRole
s
that are backed by a (potentially exceeded) license.getRoles
in interface ApplicationRoleAdminService
Set
of all ApplicationRole
s that are backed by a (potentially exceeded) license
or an error.@Nonnull public ServiceOutcome<ApplicationRole> getRole(@Nonnull com.atlassian.application.api.ApplicationKey key)
ApplicationRoleAdminService
ApplicationRole
backed by a (potentially exceeded) license.getRole
in interface ApplicationRoleAdminService
key
- the key that identifies the ApplicationRole
.ApplicationRole
that is backed by a (potentially exceeded)
license or an error if not possible.@Nonnull public ServiceOutcome<ApplicationRole> setRole(@Nonnull ApplicationRole role)
ApplicationRoleAdminService
ApplicationRole
information to the database.
This method will only accept the passed role if:
setRole
in interface ApplicationRoleAdminService
role
- the role to save.@Nonnull public ServiceOutcome<Set<ApplicationRole>> setRoles(@Nonnull Collection<ApplicationRole> rolesList)
ApplicationRoleAdminService
ApplicationRole
information to the database.
This method will only accept the passed role if:
setRoles
in interface ApplicationRoleAdminService
rolesList
- the roles to savepublic MockApplicationRole addApplicationRole(String id)
Copyright © 2002-2017 Atlassian. All Rights Reserved.