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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(AbstractRole other) boolean
getName()
The name of the RoleThe permissions assigned to the role.The permissions assigned to the role in an unsorted order.getSids()
List of sids on which the role is applicable.Return a sorted comma separated list of sids assigned to this roleint
hashCode()
-
Field Details
-
name
The unique name of the role. -
sids
The sids on which this role is applicable.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AbstractRole>
-
equals
-
hashCode
public int hashCode() -
getName
The name of the Role- Returns:
- the name of the role
-
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:
-
getPermissionsUnsorted
The permissions assigned to the role in an unsorted order.- Returns:
- permissions in an unsorted order.
- See Also:
-
getSids
List of sids on which the role is applicable.- Returns:
- list of sids on which this role is applicable.
-
getSidsCommaSeparated
Return a sorted comma separated list of sids assigned to this role- Returns:
- a sorted comma separated list of sids assigned to this role
-