Enum DefaultProductType
java.lang.Object
java.lang.Enum<DefaultProductType>
com.broadleafcommerce.cartoperation.domain.type.DefaultProductType
- All Implemented Interfaces:
Serializable,Comparable<DefaultProductType>
The possible types of targets a
Product can have.- Author:
- Bongani Mbigi (bongani-m)
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDenotes that this product is meant to represent a simple bundle of other products, with each bundle item represented as anIncludedProduct.Denotes a product that serves as a container for a singleItem Choiceand which can be used to produce a promotional landing page.Denotes a simple product which has no variants or complex configuration such as a Hot Sauce.Denotes a configurable product that hasVariantsdetermined byProductOptionslike color and size for a T-Shirt. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBundleProduct(String productType) static booleanisMerchandisingProduct(String productType) static booleanisSelectorProduct(String productType) static booleanisStandardProduct(String productType) static booleanisVariantBasedProduct(String productType) static DefaultProductTypeReturns the enum constant of this type with the specified name.static DefaultProductType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STANDARD
Denotes a simple product which has no variants or complex configuration such as a Hot Sauce. Standard products may be added to the cart on their own or they may have add-ons that get added with them. -
VARIANT_BASED
Denotes a configurable product that hasVariantsdetermined byProductOptionslike color and size for a T-Shirt. It is theVariantswhich are added to the cart after the user selects the options. -
SELECTOR
Denotes a product that serves as a container for a singleItem Choiceand which can be used to produce a promotional landing page. The selector product does not have a related price or inventory, and cannot be purchased. Instead, only the selected item from its Item Choice can be purchased. -
BUNDLE
Denotes that this product is meant to represent a simple bundle of other products, with each bundle item represented as anIncludedProduct. -
MERCHANDISING_PRODUCT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
isStandardProduct
-
isVariantBasedProduct
-
isBundleProduct
-
isSelectorProduct
-
isMerchandisingProduct
-