final class ProductWriteServiceEP6 extends java.lang.Object implements ProductWriteService
Modifier and Type | Field and Description |
---|---|
private Converter<java.util.List<Link>,java.util.List<Link>> |
converter |
private InvocationBuilder |
invocationBuilder |
private ProductReadService |
productReadService |
RESOURCE_ID_URI_BUILDER, RESOURCE_PATH, RESOURCE_URI_BUILDER, SUBRESOURCE_URI_BUILDER
Constructor and Description |
---|
ProductWriteServiceEP6(InvocationBuilder invocationBuilder,
Converter<java.util.List<Link>,java.util.List<Link>> converter,
ProductReadService productReadService) |
Modifier and Type | Method and Description |
---|---|
private <T extends ResourceSupport> |
convertLinks(T obj) |
private void |
convertProductLinks(ProductApi result) |
ProductDetailsApi |
create(ShopRequestContext shopRequestContext,
ProductTemplate productTemplate) |
void |
delete(ShopRequestContext shopRequestContext,
GUID productId) |
StockLevel |
getStockLevel(ShopRequestContext shopRequestContext,
GUID productId)
Deprecated.
|
ProductDetailsApi |
patch(ShopRequestContext shopRequestContext,
GUID productId,
JsonPatch jsonPatch) |
StockLevel |
updateStockLevel(ShopRequestContext shopRequestContext,
GUID productId,
StockLevelUpdate stockLevelUpdate)
Deprecated.
|
private final InvocationBuilder invocationBuilder
private final ProductReadService productReadService
@Inject public ProductWriteServiceEP6(InvocationBuilder invocationBuilder, Converter<java.util.List<Link>,java.util.List<Link>> converter, ProductReadService productReadService)
public void delete(ShopRequestContext shopRequestContext, GUID productId)
delete
in interface ProductWriteService
@Deprecated public StockLevel getStockLevel(ShopRequestContext shopRequestContext, GUID productId)
getStockLevel
in interface ProductWriteService
@Deprecated public StockLevel updateStockLevel(ShopRequestContext shopRequestContext, GUID productId, StockLevelUpdate stockLevelUpdate)
updateStockLevel
in interface ProductWriteService
public ProductDetailsApi patch(ShopRequestContext shopRequestContext, GUID productId, JsonPatch jsonPatch)
patch
in interface ProductWriteService
public ProductDetailsApi create(ShopRequestContext shopRequestContext, ProductTemplate productTemplate)
create
in interface ProductWriteService
private void convertProductLinks(ProductApi result)
private <T extends ResourceSupport> void convertLinks(T obj)