Class AbstractRole
- java.lang.Object
-
- io.jenkins.plugins.folderauth.roles.AbstractRole
-
- All Implemented Interfaces:
Comparable<AbstractRole>
- Direct Known Subclasses:
AgentRole
,FolderRole
,GlobalRole
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public abstract class AbstractRole extends Object implements Comparable<AbstractRole>
A role as an immutable object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AbstractRole other)
boolean
equals(Object o)
String
getName()
The name of the RoleSortedSet<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 roleint
hashCode()
-
-
-
Method Detail
-
compareTo
public int compareTo(@Nonnull AbstractRole other)
- Specified by:
compareTo
in interfaceComparable<AbstractRole>
-
getPermissions
@Nonnull public SortedSet<PermissionWrapper> getPermissions()
The permissions assigned to the role.This method, however, does not return all permissions implied by this
AbstractRole
- Returns:
- the permissions assigned to the role.
- See Also:
when the permissions are not needed in a sorted order.
-
getPermissionsUnsorted
@Nonnull public Set<PermissionWrapper> getPermissionsUnsorted()
The permissions assigned to the role in an unsorted order.- Returns:
- permissions in an unsorted order.
- See Also:
when permissions are needed in a sorted order.
-
getSids
@Nonnull public Set<String> getSids()
List of sids on which the role is applicable.- Returns:
- list of sids on which this role is applicable.
-
-