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 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

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

      public org.broadleafcommerce.profile.core.domain.Customer getCurrent()
    • getCustomerAddresses

      public List<org.broadleafcommerce.profile.core.domain.CustomerAddress> getCustomerAddresses()
    • savedPaymentsAreEnabled

      public boolean savedPaymentsAreEnabled()
    • getCustomerPayments

      public List<org.broadleafcommerce.profile.core.domain.CustomerPayment> getCustomerPayments()
    • sortCustomerPaymentsByDefault

      protected void sortCustomerPaymentsByDefault(List<org.broadleafcommerce.profile.core.domain.CustomerPayment> savedPayments)