Enum Class InternalsConfig.ShadowCachingDefault
java.lang.Object
java.lang.Enum<InternalsConfig.ShadowCachingDefault>
com.evolveum.midpoint.schema.internals.InternalsConfig.ShadowCachingDefault
- All Implemented Interfaces:
Serializable
,Comparable<InternalsConfig.ShadowCachingDefault>
,Constable
- Enclosing class:
- InternalsConfig
public static enum InternalsConfig.ShadowCachingDefault
extends Enum<InternalsConfig.ShadowCachingDefault>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault shadow caching settings should be taken from the system configuration.The default is caching of all data, with long TTL.Emulates the default out-of-the-box settings in 4.9, with the following differences: .The default is no caching, just like it was in 4.8 and earlier. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull InternalsConfig.ShadowCachingDefault
fromString
(@Nullable String valueToFind) boolean
toString()
Returns the enum constant of this class with the specified name.static InternalsConfig.ShadowCachingDefault[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FROM_SYSTEM_CONFIGURATION
Default shadow caching settings should be taken from the system configuration. -
NONE
The default is no caching, just like it was in 4.8 and earlier. -
FULL
The default is caching of all data, with long TTL. -
FULL_BUT_USING_FRESH
Emulates the default out-of-the-box settings in 4.9, with the following differences: . TTL is long, to avoid breaking tests that manipulate the clock (note that the standard TTL is 1 day for practical reasons); . caches all attributes, not only the defined ones (but this may change in the future). Effectively, it is quite similar toFULL
, with a crucial difference in that it uses fresh data, not cached ones. This is the default value for tests.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromString
@NotNull public static @NotNull InternalsConfig.ShadowCachingDefault fromString(@Nullable @Nullable String valueToFind) -
toString
- Overrides:
toString
in classEnum<InternalsConfig.ShadowCachingDefault>
-
isStandardForTests
@TestOnly public boolean isStandardForTests()
-