Skip to content
Snippets Groups Projects

Generify roles

3 files
+ 117
1
Compare changes
  • Side-by-side
  • Inline

Files

/*
* Librador - A utilities library for Labrador
* Copyright (C) 2020- Delft University of Technology
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package nl.tudelft.librador.enums;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* The type of the role a person might have in a course. Each of the roles represents a real-life function
* within the organization of a course.
*
* There is one special RoleType used to denote a person is not allowed to enrol in a course; the BLOCKED
* type.
*/
@Schema(enumAsRef = true)
public enum RoleType {
/**
* The Student role. Students are those users that partake in a course edition, typically for credits.
*/
STUDENT,
/**
* The TA role. TA stands for Teaching Assistant/Teacher Assistant. A person who is TA in a course is
* typically allowed to give feedback to students.
*/
TA,
/**
* The Head TA role. This is an elevated version of the TA role. A head TA has slightly more permissions
* than the TA and is considered to be the 'second-in-command' after teachers.
*/
HEAD_TA,
/**
* The teacher role. A user is the teacher of a course edition if they are the current manager of the
* course or if they need to have all editing rights to a course edition.
*/
TEACHER,
/**
* The same role as a teacher, but with read-only permissions only.
*/
TEACHER_RO,
/**
* Role used to denote an admin of the Labrador system. This role type is typically only found in the
* field, and not as the type of a role relation between an edition and a person.
*/
ADMIN,
/**
* Designated to people that are blocked from entering a course in any way.
*/
BLOCKED;
}
Loading