Interface RoleType

All Known Implementing Classes:
Role

public interface RoleType
Identifies a role with a name and an access level.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Roles level of the role, a role with a higher access level gains the privilegies of all roles with a lesser level.
    Returns the name of the role, must be unique.
  • Method Details

    • getName

      String getName()
      Returns the name of the role, must be unique.
      Returns:
      the name fo the role.
    • getLevel

      int getLevel()
      Roles level of the role, a role with a higher access level gains the privilegies of all roles with a lesser level.

      To disable this feature set all levels to 0.

      Returns:
      the access level of the role.