@Service(value="blCustomerVariableExpression") @ConditionalOnTemplating public class CustomerVariableExpression extends Object implements org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
| Modifier and Type | Field and Description |
|---|---|
protected CustomerAddressService |
customerAddressService |
protected CustomerPaymentService |
customerPaymentService |
protected org.springframework.core.env.Environment |
env |
| Constructor and Description |
|---|
CustomerVariableExpression() |
| Modifier and Type | Method and Description |
|---|---|
Customer |
getCurrent() |
List<CustomerAddress> |
getCustomerAddresses() |
List<CustomerPayment> |
getCustomerPayments() |
String |
getName() |
boolean |
savedPaymentsAreEnabled() |
protected void |
sortCustomerPaymentsByDefault(List<CustomerPayment> savedPayments) |
protected CustomerAddressService customerAddressService
protected CustomerPaymentService customerPaymentService
@Autowired protected org.springframework.core.env.Environment env
public String getName()
getName in interface org.broadleafcommerce.common.web.expression.BroadleafVariableExpressionpublic Customer getCurrent()
public List<CustomerAddress> getCustomerAddresses()
public boolean savedPaymentsAreEnabled()
public List<CustomerPayment> getCustomerPayments()
protected void sortCustomerPaymentsByDefault(List<CustomerPayment> savedPayments)
Copyright © 2021. All rights reserved.