public interface LicenseRoleAdminService
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_GROUPS
The key for any group related errors reported.
|
static String |
ERROR_PRIMARY
The key for any primaryGroup related errors reported.
|
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<LicenseRole> |
getRole(LicenseRoleId licenseRoleId)
Return the
LicenseRole identified by the passed
LicenseRoleId . |
ServiceOutcome<Set<LicenseRole>> |
getRoles()
Return the
Set of all the roles defined
in the system or an error. |
ServiceOutcome<LicenseRole> |
setGroups(LicenseRoleId licenseRoleId,
Iterable<String> groups)
Deprecated.
Use
setRole(com.atlassian.jira.license.LicenseRole) instead. |
ServiceOutcome<LicenseRole> |
setRole(LicenseRole role)
Save the passed
LicenseRole information to the database. |
static final String ERROR_GROUPS
static final String ERROR_PRIMARY
@Nonnull ServiceOutcome<Set<LicenseRole>> getRoles()
Set
of all the roles defined
in the system or an error.@Nonnull ServiceOutcome<LicenseRole> getRole(@Nonnull LicenseRoleId licenseRoleId)
LicenseRole
identified by the passed
LicenseRoleId
.licenseRoleId
- the id of the role to find.LicenseRole
with the passed LicenseRoleId
or an error if such a LicenseRole
is not currently installed in JIRA.@Nonnull ServiceOutcome<LicenseRole> setRole(@Nonnull LicenseRole role)
LicenseRole
information to the database. This method will
only accept the passed role if:
role
- the role to save.@Nonnull @Deprecated ServiceOutcome<LicenseRole> setGroups(@Nonnull LicenseRoleId licenseRoleId, @Nonnull Iterable<String> groups)
setRole(com.atlassian.jira.license.LicenseRole)
instead.LicenseRoleId
. The primary group for the role will be unset.licenseRoleId
- the id of the license role to update.groups
- the groups to associated with the passed license role.LicenseRole
or an error.Copyright © 2002-2015 Atlassian. All Rights Reserved.