Package jmri
Interface Permission
- All Superinterfaces:
Comparator<PermissionValue>
- All Known Subinterfaces:
BooleanPermission,EnumPermission<E>
- All Known Implementing Classes:
EditorPermissions.EditorPermission,LoadAndStorePermissionOwner.LoadXmlFilePermission,LoadAndStorePermissionOwner.StoreXmlFilePermission,PermissionsProgrammer.PermissionProgrammingOnMain,PermissionsProgrammer.PermissionProgrammingTrack,PermissionsSystemAdmin.PermissionEditOwnPassword,PermissionsSystemAdmin.PermissionEditPermissions,PermissionsSystemAdmin.PermissionEditPreferences
Defines a permission.
-
Method Summary
Modifier and TypeMethodDescriptionGet the default permission if the user has no role.getDefaultPermission(Role role) Get the default permission for a role.getName()Get the name of the permissiongetOwner()Get the ownergetValue(PermissionValue value) Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
getOwner
Get the owner- Returns:
- the owner
-
getName
Get the name of the permission- Returns:
- the name
-
getValue
-
valueOf
-
getDefaultPermission
Get the default permission if the user has no role.- Returns:
- the default
-
getDefaultPermission
Get the default permission for a role.- Parameters:
role- the role- Returns:
- the default
-