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 Details

    • customerAddressService

      protected CustomerAddressService customerAddressService
    • customerPaymentService

      protected CustomerPaymentService customerPaymentService
    • env

      @Autowired protected org.springframework.core.env.Environment env
  • Constructor Details

    • CustomerVariableExpression

      public CustomerVariableExpression()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.broadleafcommerce.common.web.expression.BroadleafVariableExpression
    • getCurrent

      public Customer getCurrent()
    • getCustomerAddresses

      public List<CustomerAddress> getCustomerAddresses()
    • savedPaymentsAreEnabled

      public boolean savedPaymentsAreEnabled()
    • getCustomerPayments

      public List<CustomerPayment> getCustomerPayments()
    • sortCustomerPaymentsByDefault

      protected void sortCustomerPaymentsByDefault(List<CustomerPayment> savedPayments)