Enum Class DefaultOwningUserType
java.lang.Object
java.lang.Enum<DefaultOwningUserType>
com.broadleafcommerce.creditaccount.domain.enums.DefaultOwningUserType
- All Implemented Interfaces:
OwningUserType
,Serializable
,Comparable<DefaultOwningUserType>
,Constable
The default owning user types for the credit accounts.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeclares that theCreditAccount
is not owned by a known Broadleaf customer or account.Declares that theCreditAccount
is owned by an anonymous customer, but we have the user's email address.Declares that theCreditAccount
is owned by an anonymous customer, but we have the user's phone number.Declares that theCreditAccount
is owned by a Broadleaf account.Declares that theCreditAccount
is owned by a Broadleaf customer. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAnonymousUser
(String owningUserType) static boolean
isAnonymousUserEmail
(String owningUserType) static boolean
isAnonymousUserPhone
(String owningUserType) static boolean
isBroadleafAccount
(String owningUserType) static boolean
isBroadleafCustomer
(String owningUserType) static DefaultOwningUserType
Returns the enum constant of this class with the specified name.static DefaultOwningUserType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.broadleafcommerce.creditaccount.domain.enums.OwningUserType
name
-
Enum Constant Details
-
BLC_CUSTOMER
Declares that theCreditAccount
is owned by a Broadleaf customer. -
BLC_ACCOUNT
Declares that theCreditAccount
is owned by a Broadleaf account. -
ANONYMOUS
Declares that theCreditAccount
is not owned by a known Broadleaf customer or account. Typically, this is used with a gift card-typed (DefaultCreditAccountType.GIFT_CARD
) credit account, and theCreditAccount.getOwningUserRef()
is an email address or is blank. -
ANONYMOUS_USER_EMAIL
Declares that theCreditAccount
is owned by an anonymous customer, but we have the user's email address. -
ANONYMOUS_USER_PHONE
Declares that theCreditAccount
is owned by an anonymous customer, but we have the user's phone number.
-
-
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
-
isBroadleafCustomer
-
isBroadleafAccount
-
isAnonymousUser
-
isAnonymousUserEmail
-
isAnonymousUserPhone
-