Enum FramingOption
- java.lang.Object
-
- java.lang.Enum<FramingOption>
-
- com.inductiveautomation.perspective.common.auth.FramingOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FramingOption>
public enum FramingOption extends java.lang.Enum<FramingOption>
An enumeration of the supported methods for presenting the authentication challenge UI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FramingOption.GsonAdapter
AJsonSerializer
andJsonDeserializer
implementation for serializing and de-serializingFramingOption
objects to / from JSON using GSON APIs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FramingOption
fromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement)
Attempts to parse aFramingOption
from aJsonElement
static java.util.Optional<FramingOption>
parse(java.lang.String str)
com.inductiveautomation.ignition.common.gson.JsonElement
toJsonTree()
static FramingOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FramingOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELF
public static final FramingOption SELF
Open the authentication UI using the current tab / window
-
NEW
public static final FramingOption NEW
Open the authentication UI in a new tab / window
-
EMBEDDED
public static final FramingOption EMBEDDED
Open the authentication UI within an embedded iframe
-
-
Method Detail
-
values
public static FramingOption[] 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 (FramingOption c : FramingOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FramingOption 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 namejava.lang.NullPointerException
- if the argument is null
-
parse
public static java.util.Optional<FramingOption> parse(@Nullable java.lang.String str)
- Parameters:
str
- a string to parse into aFramingOption
- Returns:
- an
Optional
containing theFramingOption
parsed from the provided string, or an empty Optional if the string is null or if the string could not be parsed into one of the FramingOptions
-
fromJsonTree
public static FramingOption fromJsonTree(com.inductiveautomation.ignition.common.gson.JsonElement jsonElement)
Attempts to parse aFramingOption
from aJsonElement
- Parameters:
jsonElement
- theJsonElement
to parse- Returns:
- the
FramingOption
parsed from the providedJsonElement
- Throws:
com.inductiveautomation.ignition.common.gson.JsonParseException
- if aFramingOption
cannot be parsed from the providedJsonElement
- See Also:
parse(String)
-
toJsonTree
public com.inductiveautomation.ignition.common.gson.JsonElement toJsonTree()
- Returns:
- this
FramingOption
as aJsonElement
-
-