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 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 user invited to test particular restricted features.
043   */
044  INVITED_TESTER,
045
046  /**
047   * A registry administrator with all permissions, often used by internal GBIF applications and secretariat staff.
048   */
049  REGISTRY_ADMIN,
050
051  /**
052   * A registry editor with limited permissions.
053   * Exact permissions are handled by the registry itself.
054   * Often used for external applications.
055   */
056  REGISTRY_EDITOR,
057
058  /**
059   * A user that has permissions to create data packages.
060   */
061  DATA_REPO_USER,
062
063  /**
064   * A Catalogue of Life administrator with all permissions.
065   */
066  COL_ADMIN,
067
068  /**
069   * A Catalogue of Life editor with permissions to manage datasets and assemblies.
070   * Exact permissions are handled by the CoL itself.
071   */
072  COL_EDITOR,
073
074  /**
075   * A vocabulary administrator with all permissions.
076   */
077  VOCABULARY_ADMIN,
078
079  /**
080   * A vocabulary editor with limited permissions.
081   */
082  VOCABULARY_EDITOR,
083
084  /**
085   * A GRSciColl administrator with all permissions.
086   */
087  GRSCICOLL_ADMIN,
088
089  /**
090   * A GRSciColl editor with limited permissions.
091   */
092  GRSCICOLL_EDITOR,
093
094  /**
095   * A GRSciColl mediator with more permissions than an editor but less than an admin.
096   */
097  GRSCICOLL_MEDIATOR,
098
099  /**
100   * A grscicoll editor with permissions for some iDigBio-only operations.
101   */
102  @Deprecated
103  IDIGBIO_GRSCICOLL_EDITOR
104}