Enum Class DefaultSubscriptionSourceType
java.lang.Object
java.lang.Enum<DefaultSubscriptionSourceType>
com.broadleafcommerce.subscription.domain.enums.DefaultSubscriptionSourceType
- All Implemented Interfaces:
Serializable,Comparable<DefaultSubscriptionSourceType>,Constable
Enumerates the types of subscription sources. Used in
Subscription.getSubscriptionSource() and other fields.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the subscription source for a subscription is a Broadleaf Order.Indicates that the subscription source for a subscription is a Broadleaf Order.Indicates that the subscription source for a subscription is a redemption code. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBroadleafOrder(String sourceType) static booleanisBroadleafOrderItem(String sourceType) static booleanisRedemptionCode(String sourceType) Returns the enum constant of this class with the specified name.static DefaultSubscriptionSourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLC_ORDER
Indicates that the subscription source for a subscription is a Broadleaf Order. Default out-of-box value. -
BLC_ORDER_ITEM
Indicates that the subscription source for a subscription is a Broadleaf Order. -
REDEMPTION_CODE
Indicates that the subscription source for a subscription is a redemption code.
-
-
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
-
isBroadleafOrder
-
isBroadleafOrderItem
-
isRedemptionCode
-