Enum Class ParameterRetrievalSettings

java.lang.Object
java.lang.Enum<ParameterRetrievalSettings>
pl.edu.icm.unity.types.registration.ParameterRetrievalSettings
All Implemented Interfaces:
Serializable, Comparable<ParameterRetrievalSettings>, Constable

public enum ParameterRetrievalSettings extends Enum<ParameterRetrievalSettings>
Defines in what mode the parameter should be collected
Author:
K. Benedyczak
  • Enum Constant Details

    • interactive

      public static final ParameterRetrievalSettings interactive
      user must enter the value manually
    • automatic

      public static final ParameterRetrievalSettings automatic
      system must set the value automatically, e.g. by extracting DN from TLS authenticated session or by taking attribute from external idp.
    • automaticHidden

      public static final ParameterRetrievalSettings automaticHidden
      as automatic, but the automatically collected value is not shown in the registration form
    • automaticOrInteractive

      public static final ParameterRetrievalSettings automaticOrInteractive
      if system does not set value user can enter value manually, otherwise remote value is used but not shown
    • automaticAndInteractive

      public static final ParameterRetrievalSettings automaticAndInteractive
      system sets default value automatically but user can edit it
  • Method Details

    • values

      public static ParameterRetrievalSettings[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ParameterRetrievalSettings valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isAutomaticOnly

      public boolean isAutomaticOnly()
      Returns:
      true only if the parameter can be obtained from remote source only
    • isPotentiallyAutomaticAndVisible

      public boolean isPotentiallyAutomaticAndVisible()
      Returns:
      true only if the parameter can be obtained from remote source and should be shown.
    • isInteractivelyEntered

      public boolean isInteractivelyEntered(boolean hasRemoteValue)