Enum Class DefaultProductVariantHydrationBehavior
java.lang.Object
java.lang.Enum<DefaultProductVariantHydrationBehavior>
com.broadleafcommerce.catalog.domain.product.commerce.DefaultProductVariantHydrationBehavior
- All Implemented Interfaces:
Serializable,Comparable<DefaultProductVariantHydrationBehavior>,Constable
public enum DefaultProductVariantHydrationBehavior
extends Enum<DefaultProductVariantHydrationBehavior>
Defines the default supported behaviors for hydrating the direct
Variants of a
requested Product when constructing a ProductDetails or CategoryDetails
response. This does not affect hydrating Variants for SpecificItemChoices or IncludedProducts.- Since:
- Catalog Service 2.3.0-GA, Release Train 2.3.0-GA
- Author:
- Nathan Moore (nathandmoore)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll direct variants will be hydrated.Only theLiteVariantswill be hydrated.No variants will be hydrated unless explicitly requested by way ofProductDetailsRequest.getVariantIds(). -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHydrateAll(String value) static booleanisHydrateLiteOnly(String value) static booleanisHydrateNone(String value) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
All direct variants will be hydrated. -
LITE_ONLY
Only theLiteVariantswill be hydrated. -
NONE
No variants will be hydrated unless explicitly requested by way ofProductDetailsRequest.getVariantIds().
-
-
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
-
isHydrateAll
-
isHydrateLiteOnly
-
isHydrateNone
-