Class CustomerVariableExpression
java.lang.Object
org.broadleafcommerce.profile.web.core.expression.CustomerVariableExpression
- All Implemented Interfaces:
org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
@Service("blCustomerVariableExpression")
@ConditionalOnTemplating
public class CustomerVariableExpression
extends Object
implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
This Thymeleaf variable expression class serves to expose elements from the BroadleafRequestContext
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CustomerAddressServiceprotected CustomerPaymentServiceprotected org.springframework.core.env.Environment -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanprotected voidsortCustomerPaymentsByDefault(List<CustomerPayment> savedPayments)
-
Field Details
-
customerAddressService
-
customerPaymentService
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Constructor Details
-
CustomerVariableExpression
public CustomerVariableExpression()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.broadleafcommerce.common.web.expression.BroadleafVariableExpression
-
getCurrent
-
getCustomerAddresses
-
savedPaymentsAreEnabled
public boolean savedPaymentsAreEnabled() -
getCustomerPayments
-
sortCustomerPaymentsByDefault
-