public class CustomerServiceImpl extends java.lang.Object implements CustomerService
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CUSTOMER_ROUTE |
private static java.lang.String |
CUSTOMERS_PATH |
private InvocationBuilder |
invocationBuilder |
private LinkBuilder<Customer> |
linkBuilder |
Constructor and Description |
---|
CustomerServiceImpl(InvocationBuilder invocationBuilder,
LinkBuilder<Customer> linkBuilder) |
Modifier and Type | Method and Description |
---|---|
Customer |
create(ShopRequestContext shopRequestContext,
Customer customer) |
Customer |
get(ShopRequestContext shopRequestContext,
GUID customerId) |
PageEP6<Customer> |
getAll(ShopRequestContext shopRequestContext) |
Customer |
patch(ShopRequestContext shopRequestContext,
GUID customerId,
JsonPatch jsonPatch) |
private static final java.lang.String CUSTOMERS_PATH
private static final java.lang.String CUSTOMER_ROUTE
private final InvocationBuilder invocationBuilder
private final LinkBuilder<Customer> linkBuilder
@Inject public CustomerServiceImpl(InvocationBuilder invocationBuilder, LinkBuilder<Customer> linkBuilder)
public Customer get(ShopRequestContext shopRequestContext, GUID customerId)
get
in interface CustomerService
public Customer patch(ShopRequestContext shopRequestContext, GUID customerId, JsonPatch jsonPatch)
patch
in interface CustomerService
public Customer create(ShopRequestContext shopRequestContext, Customer customer)
create
in interface CustomerService
public PageEP6<Customer> getAll(ShopRequestContext shopRequestContext)
getAll
in interface CustomerService