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 org.broadleafcommerce.profile.core.service.CustomerAddressServiceprotected org.broadleafcommerce.profile.core.service.CustomerPaymentServiceprotected org.springframework.core.env.Environment -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.profile.core.domain.CustomerList<org.broadleafcommerce.profile.core.domain.CustomerAddress>List<org.broadleafcommerce.profile.core.domain.CustomerPayment>getName()booleanprotected voidsortCustomerPaymentsByDefault(List<org.broadleafcommerce.profile.core.domain.CustomerPayment> savedPayments)
-
Field Details
-
customerAddressService
protected org.broadleafcommerce.profile.core.service.CustomerAddressService customerAddressService -
customerPaymentService
protected org.broadleafcommerce.profile.core.service.CustomerPaymentService 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
public org.broadleafcommerce.profile.core.domain.Customer getCurrent() -
getCustomerAddresses
-
savedPaymentsAreEnabled
public boolean savedPaymentsAreEnabled() -
getCustomerPayments
-
sortCustomerPaymentsByDefault
protected void sortCustomerPaymentsByDefault(List<org.broadleafcommerce.profile.core.domain.CustomerPayment> savedPayments)
-