Package jmri.jmrit.display
Class EditorPermissions.EditorPermission
java.lang.Object
jmri.jmrit.display.EditorPermissions.EditorPermission
- All Implemented Interfaces:
Comparator<PermissionValue>,EnumPermission<EditorPermissions.EditorPermissionEnum>,Permission
- Enclosing class:
- EditorPermissions
public static class EditorPermissions.EditorPermission
extends Object
implements EnumPermission<EditorPermissions.EditorPermissionEnum>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(PermissionValue o1, PermissionValue o2) Get 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) Get the values of the enum.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
EditorPermission
public EditorPermission()
-
-
Method Details
-
getValues
Description copied from interface:EnumPermissionGet the values of the enum.- Specified by:
getValuesin interfaceEnumPermission<EditorPermissions.EditorPermissionEnum>- Returns:
- an array of the enums
-
getOwner
Description copied from interface:PermissionGet the owner- Specified by:
getOwnerin interfacePermission- Returns:
- the owner
-
getName
Description copied from interface:PermissionGet the name of the permission- Specified by:
getNamein interfacePermission- Returns:
- the name
-
getValue
- Specified by:
getValuein interfacePermission
-
valueOf
- Specified by:
valueOfin interfacePermission
-
getDefaultPermission
Description copied from interface:PermissionGet the default permission if the user has no role.- Specified by:
getDefaultPermissionin interfacePermission- Returns:
- the default
-
getDefaultPermission
Description copied from interface:PermissionGet the default permission for a role.- Specified by:
getDefaultPermissionin interfacePermission- Parameters:
role- the role- Returns:
- the default
-
compare
- Specified by:
comparein interfaceComparator<PermissionValue>
-