001/*
002 * Copyright 2020 Global Biodiversity Information Facility (GBIF)
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.gbif.api.vocabulary;
017
018/**
019 * Roles here shall not be defined in {@link AppRole} (validated by unit test).
020 */
021public enum UserRole {
022  /**
023   * A regular, registered GBIF drupal user.
024   */
025  USER,
026
027  /**
028   * A drupal system administrator.
029   * To be removed when Drupal is decommissioned.
030   */
031  @Deprecated
032  ADMIN,
033
034  /**
035   * A drupal news and content editor.
036   * To be removed when Drupal is decommissioned.
037   */
038  @Deprecated
039  EDITOR,
040
041  /**
042   * A registry administrator with all permissions, often used by internal GBIF applications.
043   */
044  REGISTRY_ADMIN,
045
046  /**
047   * A registry editor with limited permissions.
048   * Exact permissions are handled by the registry itself.
049   * Often used for external applications.
050   */
051  REGISTRY_EDITOR,
052
053  /**
054   * A user that has permissions to create data packages.
055   */
056  DATA_REPO_USER,
057
058  /**
059   * A Catalogue of Life administrator with all permissions.
060   */
061  COL_ADMIN,
062
063  /**
064   * A Catalogue of Life editor with permissions to manage datasets and assemblies.
065   * Exact permissions are handled by the CoL itself.
066   */
067  COL_EDITOR,
068
069  /**
070   * A vocabulary administrator with all permissions.
071   */
072  VOCABULARY_ADMIN,
073
074  /**
075   * A vocabulary editor with limited permissions.
076   */
077  VOCABULARY_EDITOR,
078
079  /**
080   * A grscicoll administrator with all permissions.
081   */
082  GRSCICOLL_ADMIN,
083
084  /**
085   * A grscicoll editor with limited permissions.
086   */
087  GRSCICOLL_EDITOR,
088
089  /**
090   * A grscicoll mediator with more permissions than an editor but less than an admin.
091   */
092  GRSCICOLL_MEDIATOR,
093
094  /**
095   * A grscicoll editor with permissions for some iDigBio-only operations.
096   */
097  @Deprecated
098  IDIGBIO_GRSCICOLL_EDITOR
099}