Class PermissionEntry
java.lang.Object
com.michelin.cio.hudson.plugins.rolestrategy.PermissionEntry
- All Implemented Interfaces:
Comparable<PermissionEntry>
Combines sid with
type
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static PermissionEntry
fromString
(String permissionEntryString) Creates aPermissionEntry
from a string.getSid()
getType()
static PermissionEntry
int
hashCode()
protected boolean
isApplicable
(boolean principal) Utility method checking whether this entry applies based on whether we're looking for a principal.toString()
static PermissionEntry
-
Constructor Details
-
PermissionEntry
-
-
Method Details
-
getType
-
getSid
-
isApplicable
protected boolean isApplicable(boolean principal) Utility method checking whether this entry applies based on whether we're looking for a principal. -
fromString
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public static PermissionEntry fromString(@NonNull String permissionEntryString) Creates aPermissionEntry
from a string.- Parameters:
permissionEntryString
- String from which to create the entry- Returns:
- the PermissinoEntry
-
user
-
group
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PermissionEntry>
-