@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public abstract class AbstractRole extends Object implements Comparable<AbstractRole>
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The unique name of the role.
|
protected Set<String> |
sids
The sids on which this role is applicable.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AbstractRole other) |
boolean |
equals(Object o) |
String |
getName()
The name of the Role
|
SortedSet<PermissionWrapper> |
getPermissions()
The permissions assigned to the role.
|
Set<PermissionWrapper> |
getPermissionsUnsorted()
The permissions assigned to the role in an unsorted order.
|
Set<String> |
getSids()
List of sids on which the role is applicable.
|
String |
getSidsCommaSeparated()
Return a sorted comma separated list of sids assigned to this role
|
int |
hashCode() |
public int compareTo(@Nonnull AbstractRole other)
compareTo in interface Comparable<AbstractRole>@Nonnull public SortedSet<PermissionWrapper> getPermissions()
This method, however, does not return all permissions implied by this AbstractRole
when the permissions are not needed in a sorted order.@Nonnull public Set<PermissionWrapper> getPermissionsUnsorted()
when permissions are needed in a sorted order.@Nonnull public Set<String> getSids()
Copyright © 2016–2020. All rights reserved.