Enum Class AvailabilityStrategy
java.lang.Object
java.lang.Enum<AvailabilityStrategy>
com.broadleafcommerce.search.provider.solr.util.AvailabilityStrategy
- All Implemented Interfaces:
Serializable
,Comparable<AvailabilityStrategy>
,Constable
Default inventory availability strategies.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProducts are searchable based on availability data from the catalog serviceProducts are searchable based on availability data from an external service, such as an inventory serviceProducts are always available in search results -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String strategy) Find the availability strategy based on its string representation.static AvailabilityStrategy
Returns the enum constant of this class with the specified name.static AvailabilityStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Products are always available in search results -
CATALOG_ONLY
Products are searchable based on availability data from the catalog service -
CHECK_AVAILABLE_INVENTORY
Products are searchable based on availability data from an external service, such as an inventory service
-
-
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
Find the availability strategy based on its string representation.- Parameters:
strategy
- The availability strategy.- Returns:
- The availability strategy if found, else null.
-