@FrameworkRestController
@FrameworkMapping(value="/customer",
produces={"application/json","application/xml"})
public class CustomerEndpoint
extends BaseEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.core.web.controller.account.validator.ChangePasswordValidator |
changePasswordValidator |
protected org.broadleafcommerce.profile.core.service.CustomerAddressService |
customerAddressService |
protected org.broadleafcommerce.profile.core.service.CustomerPaymentService |
customerPaymentService |
protected org.broadleafcommerce.profile.core.service.CustomerService |
customerService |
context, messageSource| Constructor and Description |
|---|
CustomerEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
CustomerAddressWrapper |
addAddress(javax.servlet.http.HttpServletRequest request,
CustomerAddressWrapper wrapper) |
CustomerAddressWrapper |
addAddress(javax.servlet.http.HttpServletRequest request,
Long customerId,
CustomerAddressWrapper wrapper) |
CustomerWrapper |
addAttribute(javax.servlet.http.HttpServletRequest request,
CustomerAttributeWrapper wrapper) |
CustomerWrapper |
addAttribute(javax.servlet.http.HttpServletRequest request,
Long customerId,
CustomerAttributeWrapper wrapper) |
CustomerWrapper |
addCustomer(javax.servlet.http.HttpServletRequest request,
CustomerWrapper wrapper) |
CustomerPaymentWrapper |
addCustomerPayment(javax.servlet.http.HttpServletRequest request,
CustomerPaymentWrapper wrapper) |
CustomerPaymentWrapper |
addCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long customerId,
CustomerPaymentWrapper wrapper) |
CustomerWrapper |
changePassword(javax.servlet.http.HttpServletRequest request,
org.broadleafcommerce.core.web.controller.account.ChangePasswordForm changePasswordForm,
org.springframework.validation.BindingResult result) |
CustomerAddressWrapper |
findAddress(javax.servlet.http.HttpServletRequest request,
Long customerId,
String addressName) |
CustomerAddressWrapper |
findAddress(javax.servlet.http.HttpServletRequest request,
String addressName) |
List<CustomerAddressWrapper> |
findAllAddresses(javax.servlet.http.HttpServletRequest request) |
List<CustomerAddressWrapper> |
findAllAddresses(javax.servlet.http.HttpServletRequest request,
Long customerId) |
List<CustomerPaymentWrapper> |
findAllCustomerPayments(javax.servlet.http.HttpServletRequest request) |
List<CustomerPaymentWrapper> |
findAllCustomerPayments(javax.servlet.http.HttpServletRequest request,
Long customerId) |
CustomerWrapper |
findCustomer(javax.servlet.http.HttpServletRequest request,
Long customerId)
Returns the current customer via
CustomerState |
CustomerWrapper |
findCustomerByEmail(javax.servlet.http.HttpServletRequest request,
String emailAddress) |
CustomerPaymentWrapper |
findCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long paymentId) |
CustomerPaymentWrapper |
findCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long customerId,
Long paymentId) |
protected org.broadleafcommerce.profile.core.domain.Customer |
getCustomer(Long customerId) |
List<CustomerAddressWrapper> |
removeAddress(javax.servlet.http.HttpServletRequest request,
Long customerId,
String addressName) |
List<CustomerAddressWrapper> |
removeAddress(javax.servlet.http.HttpServletRequest request,
String addressName) |
CustomerWrapper |
removeAllAddresses(javax.servlet.http.HttpServletRequest request) |
CustomerWrapper |
removeAllAddresses(javax.servlet.http.HttpServletRequest request,
Long customerId) |
CustomerWrapper |
removeAllAttributes(javax.servlet.http.HttpServletRequest request) |
CustomerWrapper |
removeAllAttributes(javax.servlet.http.HttpServletRequest request,
Long customerId) |
CustomerWrapper |
removeAllCustomerPayments(javax.servlet.http.HttpServletRequest request) |
CustomerWrapper |
removeAllCustomerPayments(javax.servlet.http.HttpServletRequest request,
Long customerId) |
CustomerWrapper |
removeAttribute(javax.servlet.http.HttpServletRequest request,
Long customerId,
String attributeName) |
CustomerWrapper |
removeAttribute(javax.servlet.http.HttpServletRequest request,
String attributeName) |
List<CustomerPaymentWrapper> |
removeCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long paymentId) |
List<CustomerPaymentWrapper> |
removeCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long customerId,
Long paymentId) |
CustomerAddressWrapper |
updateAddress(javax.servlet.http.HttpServletRequest request,
Long customerAddressId,
CustomerAddressWrapper wrapper) |
CustomerAddressWrapper |
updateAddress(javax.servlet.http.HttpServletRequest request,
Long customerId,
Long customerAddressId,
CustomerAddressWrapper wrapper) |
CustomerWrapper |
updateCustomer(javax.servlet.http.HttpServletRequest request,
CustomerWrapper wrapper) |
CustomerPaymentWrapper |
updateCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long paymentId,
CustomerPaymentWrapper wrapper) |
CustomerPaymentWrapper |
updateCustomerPayment(javax.servlet.http.HttpServletRequest request,
Long customerId,
Long paymentId,
CustomerPaymentWrapper wrapper) |
getApplicationContext, getMessageSource, setApplicationContext, setMessageSourceprotected org.broadleafcommerce.profile.core.service.CustomerService customerService
protected org.broadleafcommerce.core.web.controller.account.validator.ChangePasswordValidator changePasswordValidator
protected org.broadleafcommerce.profile.core.service.CustomerAddressService customerAddressService
protected org.broadleafcommerce.profile.core.service.CustomerPaymentService customerPaymentService
@FrameworkMapping(method=GET) public CustomerWrapper findCustomerByEmail(javax.servlet.http.HttpServletRequest request, @RequestParam(value="email",required=true) String emailAddress)
public CustomerWrapper findCustomer(javax.servlet.http.HttpServletRequest request, Long customerId)
CustomerStaterequest - @FrameworkMapping(method=POST,
consumes={"application/json","application/xml"})
public CustomerWrapper addCustomer(javax.servlet.http.HttpServletRequest request,
@RequestBody
CustomerWrapper wrapper)
@FrameworkMapping(method=PUT,
consumes={"application/json","application/xml"})
public CustomerWrapper updateCustomer(javax.servlet.http.HttpServletRequest request,
@RequestBody
CustomerWrapper wrapper)
@FrameworkMapping(method=POST,
value="/password",
consumes={"application/json","application/xml"})
public CustomerWrapper changePassword(javax.servlet.http.HttpServletRequest request,
@RequestBody
org.broadleafcommerce.core.web.controller.account.ChangePasswordForm changePasswordForm,
org.springframework.validation.BindingResult result)
@FrameworkMapping(value="/attributes",
method=DELETE)
public CustomerWrapper removeAllAttributes(javax.servlet.http.HttpServletRequest request)
public CustomerWrapper removeAllAttributes(javax.servlet.http.HttpServletRequest request, Long customerId)
@FrameworkMapping(value="/attribute",
method=PUT,
consumes={"application/json","application/xml"})
public CustomerWrapper addAttribute(javax.servlet.http.HttpServletRequest request,
@RequestBody
CustomerAttributeWrapper wrapper)
public CustomerWrapper addAttribute(javax.servlet.http.HttpServletRequest request, Long customerId, CustomerAttributeWrapper wrapper)
@FrameworkMapping(value="/attribute/{attributeName}",
method=DELETE)
public CustomerWrapper removeAttribute(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="attributeName")
String attributeName)
public CustomerWrapper removeAttribute(javax.servlet.http.HttpServletRequest request, Long customerId, String attributeName)
@FrameworkMapping(value="/address",
method=GET)
public CustomerAddressWrapper findAddress(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="addressName")
String addressName)
public CustomerAddressWrapper findAddress(javax.servlet.http.HttpServletRequest request, Long customerId, String addressName)
@FrameworkMapping(value="/addresses",
method=GET)
public List<CustomerAddressWrapper> findAllAddresses(javax.servlet.http.HttpServletRequest request)
public List<CustomerAddressWrapper> findAllAddresses(javax.servlet.http.HttpServletRequest request, Long customerId)
@FrameworkMapping(value="/address",
method=PUT,
consumes={"application/json","application/xml"})
public CustomerAddressWrapper addAddress(javax.servlet.http.HttpServletRequest request,
@RequestBody
CustomerAddressWrapper wrapper)
public CustomerAddressWrapper addAddress(javax.servlet.http.HttpServletRequest request, Long customerId, CustomerAddressWrapper wrapper)
@FrameworkMapping(value="/address/{addressId}",
method=PUT,
consumes={"application/json","application/xml"})
public CustomerAddressWrapper updateAddress(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="addressId")
Long customerAddressId,
@RequestBody
CustomerAddressWrapper wrapper)
public CustomerAddressWrapper updateAddress(javax.servlet.http.HttpServletRequest request, Long customerId, Long customerAddressId, CustomerAddressWrapper wrapper)
@FrameworkMapping(value="/addresses",
method=DELETE)
public CustomerWrapper removeAllAddresses(javax.servlet.http.HttpServletRequest request)
public CustomerWrapper removeAllAddresses(javax.servlet.http.HttpServletRequest request, Long customerId)
@FrameworkMapping(value="/address/{addressName}",
method=DELETE)
public List<CustomerAddressWrapper> removeAddress(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="addressName")
String addressName)
public List<CustomerAddressWrapper> removeAddress(javax.servlet.http.HttpServletRequest request, Long customerId, String addressName)
@FrameworkMapping(value="/payment",
method=GET)
public CustomerPaymentWrapper findCustomerPayment(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="paymentId")
Long paymentId)
public CustomerPaymentWrapper findCustomerPayment(javax.servlet.http.HttpServletRequest request, Long customerId, Long paymentId)
@FrameworkMapping(value="/payments",
method=GET)
public List<CustomerPaymentWrapper> findAllCustomerPayments(javax.servlet.http.HttpServletRequest request)
public List<CustomerPaymentWrapper> findAllCustomerPayments(javax.servlet.http.HttpServletRequest request, Long customerId)
@FrameworkMapping(value="/payment",
method=POST,
consumes={"application/json","application/xml"})
public CustomerPaymentWrapper addCustomerPayment(javax.servlet.http.HttpServletRequest request,
@RequestBody
CustomerPaymentWrapper wrapper)
public CustomerPaymentWrapper addCustomerPayment(javax.servlet.http.HttpServletRequest request, Long customerId, CustomerPaymentWrapper wrapper)
@FrameworkMapping(value="/payment/{paymentId}",
method=PUT,
consumes={"application/json","application/xml"})
public CustomerPaymentWrapper updateCustomerPayment(javax.servlet.http.HttpServletRequest request,
@PathVariable
Long paymentId,
@RequestBody
CustomerPaymentWrapper wrapper)
public CustomerPaymentWrapper updateCustomerPayment(javax.servlet.http.HttpServletRequest request, Long customerId, Long paymentId, CustomerPaymentWrapper wrapper)
@FrameworkMapping(value="/payments",
method=DELETE)
public CustomerWrapper removeAllCustomerPayments(javax.servlet.http.HttpServletRequest request)
public CustomerWrapper removeAllCustomerPayments(javax.servlet.http.HttpServletRequest request, Long customerId)
@FrameworkMapping(value="/payment/{paymentId}",
method=DELETE)
public List<CustomerPaymentWrapper> removeCustomerPayment(javax.servlet.http.HttpServletRequest request,
@PathVariable(value="paymentId")
Long paymentId)
public List<CustomerPaymentWrapper> removeCustomerPayment(javax.servlet.http.HttpServletRequest request, Long customerId, Long paymentId)
protected org.broadleafcommerce.profile.core.domain.Customer getCustomer(Long customerId)
Copyright © 2020. All rights reserved.