Enum RoleDefinition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RoleDefinition>

    public enum RoleDefinition
    extends java.lang.Enum<RoleDefinition>
    This declares all tenant roles known to the controller. A role contains one or more Policys which decide what actions a member of a role can perform, given a Context for the action. Optionally, some role definitions also inherit all policies from a "lower ranking" role. See Role for roles bound to a context, where policies can be evaluated.
    Author:
    mpolden, jonmv
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RoleDefinition valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RoleDefinition[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • hostedOperator

        public static final RoleDefinition hostedOperator
        Deus ex machina.
      • hostedSupporter

        public static final RoleDefinition hostedSupporter
        Machina autem exspiravit.
      • everyone

        public static final RoleDefinition everyone
        Base role which every user is part of.
      • buildService

        public static final RoleDefinition buildService
        Build service which may submit new applications for continuous deployment.
      • reader

        public static final RoleDefinition reader
        Reader — the base role for all tenant users
      • developer

        public static final RoleDefinition developer
        User — the dev.ops. role for normal Vespa tenant users
      • administrator

        public static final RoleDefinition administrator
        Admin — the administrative function for user management etc.
      • headless

        public static final RoleDefinition headless
        Headless — the application specific role identified by deployment keys for production
      • athenzTenantAdmin

        public static final RoleDefinition athenzTenantAdmin
        Tenant administrator with full access to all child resources.
      • systemFlagsDeployer

        public static final RoleDefinition systemFlagsDeployer
      • systemFlagsDryrunner

        public static final RoleDefinition systemFlagsDryrunner
      • paymentProcessor

        public static final RoleDefinition paymentProcessor
      • hostedAccountant

        public static final RoleDefinition hostedAccountant
    • Method Detail

      • values

        public static RoleDefinition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RoleDefinition c : RoleDefinition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RoleDefinition valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null