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,java.lang.Boolean>
getPermissions()
int
getPriority()
java.lang.String
getSystemName()
boolean
hasPermission(Permission permission)
boolean
isAdminRole()
boolean
isGuestRole()
boolean
isStandardUserRole()
boolean
isSystemRole()
void
setPermission(Permission permission, boolean enable)
-
-
-
Method Detail
-
getName
java.lang.String getName()
-
isSystemRole
boolean isSystemRole()
-
getPriority
int getPriority()
-
getSystemName
java.lang.String getSystemName()
-
getPermissions
java.util.Map<Permission,java.lang.Boolean> getPermissions()
-
hasPermission
boolean hasPermission(Permission permission)
-
setPermission
void setPermission(Permission permission, boolean enable)
-
isGuestRole
boolean isGuestRole()
-
isStandardUserRole
boolean isStandardUserRole()
-
isAdminRole
boolean isAdminRole()
-
-