|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ExperimentalApi public interface LicenseRoleService
Provides authorisation-related methods around the provision and consumption of license roles.
JiraLicenseManager
Field Summary | |
---|---|
static String |
ERROR_GROUPS
The key for any group 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)
Set the groups associated with the passed LicenseRoleId . |
boolean |
userHasRole(ApplicationUser user,
LicenseRoleId licenseRoleId)
Returns true if the given user has the given license role. |
Field Detail |
---|
static final String ERROR_GROUPS
Method Detail |
---|
boolean userHasRole(@Nullable ApplicationUser user, @Nonnull LicenseRoleId licenseRoleId)
user
- the user to checklicenseRoleId
- the license role to check
@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> setGroups(@Nonnull LicenseRoleId licenseRoleId, @Nonnull Iterable<String> groups)
LicenseRoleId
.
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 |