001/*
002 * Copyright 2014 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}