Package jmri
Interface Role
-
- All Known Implementing Classes:
DefaultRole
public interface Role
A role in the permission system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
java.util.Map<Permission,PermissionValue>
getPermissions()
PermissionValue
getPermissionValue(Permission permission)
int
getPriority()
java.lang.String
getSystemName()
boolean
isAdminRole()
boolean
isGuestRole()
boolean
isStandardUserRole()
boolean
isSystemRole()
void
setPermission(Permission permission, PermissionValue value)
-
-
-
Method Detail
-
isSystemRole
boolean isSystemRole()
-
getPriority
int getPriority()
-
getSystemName
@Nonnull java.lang.String getSystemName()
-
getPermissions
@Nonnull java.util.Map<Permission,PermissionValue> getPermissions()
-
getPermissionValue
@Nonnull PermissionValue getPermissionValue(@Nonnull Permission permission)
-
setPermission
void setPermission(@Nonnull Permission permission, @Nonnull PermissionValue value)
-
isGuestRole
boolean isGuestRole()
-
isStandardUserRole
boolean isStandardUserRole()
-
isAdminRole
boolean isAdminRole()
-
-