Enum Config.Scope

    • Enum Constant Detail

      • SERVICE

        public static final Config.Scope SERVICE
        This scope is a special scope only to be used for defining services. It does not define service configuration, but rather acts as a container for service configuration which is intended to then hold GLOBAL, REALM or REALM_AND_GLOBAL configuration definitions.
      • REALM_AND_GLOBAL

        public static final Config.Scope REALM_AND_GLOBAL
        This scope means the service can be created at the Global level and at the Realm level.

        Note: To the question of why not introduce a Set/Array of Scopes to capture this concept, the reason was that Config was supported API by this point and it was deemed simpler to introduce a new enumeration to capture this concept.

      • GLOBAL

        public static final Config.Scope GLOBAL
        This scope means the service definition applies at the Global level of AM.
      • REALM

        public static final Config.Scope REALM
        This scope means the service will be defined at the Realm level of AM.
      • IDENTITY

        public static final Config.Scope IDENTITY
        This scope means the service will be defined in a service assignable.
    • Method Detail

      • values

        public static Config.Scope[] 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 (Config.Scope c : Config.Scope.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Config.Scope valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null