|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LicenseRoleAdminService
Provides access to license role management functionality.
Field Summary | |
---|---|
static String |
ERROR_GROUPS
The key for any group related errors reported. |
static String |
ERROR_PRIMARY
The key for any primaryGroup related errors reported. |
Method Summary | |
---|---|
ServiceOutcome<LicenseRole> |
getRole(LicenseRoleId licenseRoleId)
Return the LicenseRole identified by the passed
LicenseRoleId . |
ServiceOutcome<Set<LicenseRole>> |
getRoles()
Return the collection 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. |
Field Detail |
---|
static final String ERROR_GROUPS
static final String ERROR_PRIMARY
Method Detail |
---|
@Nonnull ServiceOutcome<Set<LicenseRole>> getRoles()
@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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |