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 ApplicationRoles
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()
ApplicationRoleAdminServiceSet of all ApplicationRoles
that are backed by a (potentially exceeded) license.getRoles in interface ApplicationRoleAdminServiceSet of all ApplicationRoles that are backed by a (potentially exceeded) license
or an error.@Nonnull public ServiceOutcome<ApplicationRole> getRole(@Nonnull com.atlassian.application.api.ApplicationKey key)
ApplicationRoleAdminServiceApplicationRole backed by a (potentially exceeded) license.getRole in interface ApplicationRoleAdminServicekey - 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)
ApplicationRoleAdminServiceApplicationRole information to the database.
This method will only accept the passed role if:
setRole in interface ApplicationRoleAdminServicerole - the role to save.@Nonnull public ServiceOutcome<Set<ApplicationRole>> setRoles(@Nonnull Collection<ApplicationRole> rolesList)
ApplicationRoleAdminServiceApplicationRole information to the database.
This method will only accept the passed role if:
setRoles in interface ApplicationRoleAdminServicerolesList - the roles to savepublic MockApplicationRole addApplicationRole(String id)
Copyright © 2002-2021 Atlassian. All Rights Reserved.