Package jmri
Interface BooleanPermission
-
- All Superinterfaces:
java.util.Comparator<PermissionValue>
,Permission
- All Known Implementing Classes:
LoadAndStorePermissionOwner.LoadXmlFilePermission
,LoadAndStorePermissionOwner.StoreXmlFilePermission
,PermissionsSystemAdmin.PermissionEditOwnPassword
,PermissionsSystemAdmin.PermissionEditPermissions
,PermissionsSystemAdmin.PermissionEditPreferences
public interface BooleanPermission extends Permission
Defines a permission based on a boolean.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BooleanPermission.BooleanValue
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compare(PermissionValue o1, PermissionValue o2)
default BooleanPermission.BooleanValue
getDefaultPermission()
Get the default permission for a role.BooleanPermission.BooleanValue
getDefaultPermission(Role role)
Get the default permission for a role.default java.lang.String
getValue(PermissionValue value)
default PermissionValue
valueOf(java.lang.String value)
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface jmri.Permission
getName, getOwner
-
-
-
-
Method Detail
-
getValue
default java.lang.String getValue(PermissionValue value)
- Specified by:
getValue
in interfacePermission
-
valueOf
default PermissionValue valueOf(java.lang.String value)
- Specified by:
valueOf
in interfacePermission
-
getDefaultPermission
default BooleanPermission.BooleanValue getDefaultPermission()
Get the default permission for a role.- Specified by:
getDefaultPermission
in interfacePermission
- Returns:
- the default
-
getDefaultPermission
BooleanPermission.BooleanValue getDefaultPermission(Role role)
Get the default permission for a role.- Specified by:
getDefaultPermission
in interfacePermission
- Parameters:
role
- the role- Returns:
- the default
-
compare
default int compare(PermissionValue o1, PermissionValue o2)
- Specified by:
compare
in interfacejava.util.Comparator<PermissionValue>
-
-