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