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 theCreditAccountis not owned by a known Broadleaf customer or account.Declares that theCreditAccountis owned by an anonymous customer, but we have the user's email address.Declares that theCreditAccountis owned by an anonymous customer, but we have the user's phone number.Declares that theCreditAccountis owned by a Broadleaf account.Declares that theCreditAccountis owned by a Broadleaf customer. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAnonymousUser(String owningUserType) static booleanisAnonymousUserEmail(String owningUserType) static booleanisAnonymousUserPhone(String owningUserType) static booleanisBroadleafAccount(String owningUserType) static booleanisBroadleafCustomer(String owningUserType) static DefaultOwningUserTypeReturns 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, valueOfMethods inherited from interface com.broadleafcommerce.creditaccount.domain.enums.OwningUserType
name
-
Enum Constant Details
-
BLC_CUSTOMER
Declares that theCreditAccountis owned by a Broadleaf customer. -
BLC_ACCOUNT
Declares that theCreditAccountis owned by a Broadleaf account. -
ANONYMOUS
Declares that theCreditAccountis 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 theCreditAccountis owned by an anonymous customer, but we have the user's email address. -
ANONYMOUS_USER_PHONE
Declares that theCreditAccountis 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
-