Class UserRoles

    • Constructor Detail

      • UserRoles

        public UserRoles()
    • Method Detail

      • isAdmin

        public boolean isAdmin()
        Whether the user is a global admin, who has access to everything.
      • getRegistrarRoles

        public java.util.Map<java.lang.String,​RegistrarRole> getRegistrarRoles()
        Any per-registrar roles that this user may have.
      • hasPermission

        public boolean hasPermission​(java.lang.String registrarId,
                                     ConsolePermission permission)
        If the user has the given permission either globally or on the given registrar.
      • hasGlobalPermission

        public boolean hasGlobalPermission​(ConsolePermission permission)
        If the user has the given permission globally across all registrars.