public class DefaultApplicationRoleAdminService extends Object implements ApplicationRoleAdminService
ERROR_DEFAULT_GROUPS, ERROR_GROUPS
Constructor and Description |
---|
DefaultApplicationRoleAdminService(GroupManager groupManager,
ApplicationRoleManager applicationRoleManager,
JiraAuthenticationContext ctx,
GlobalPermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
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> roles)
Save the passed list of
ApplicationRole information to the database. |
public DefaultApplicationRoleAdminService(@Nonnull GroupManager groupManager, @Nonnull ApplicationRoleManager applicationRoleManager, @Nonnull JiraAuthenticationContext ctx, @Nonnull GlobalPermissionManager permissionManager)
@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> roles)
ApplicationRoleAdminService
ApplicationRole
information to the database.
This method will only accept the passed role if:
setRoles
in interface ApplicationRoleAdminService
roles
- the roles to saveCopyright © 2002-2019 Atlassian. All Rights Reserved.