final class ProductWriteServiceEP6 extends java.lang.Object implements ProductWriteService
Modifier and Type | Field and Description |
---|---|
private InvocationBuilderFactory |
invocationBuilderFactory |
RESOURCE_ID_URI_BUILDER, RESOURCE_PATH, SUBRESOURCE_URI_BUILDER
Constructor and Description |
---|
ProductWriteServiceEP6(InvocationBuilderFactory invocationBuilderFactory) |
Modifier and Type | Method and Description |
---|---|
void |
delete(ShopRequestContext shopRequestContext,
GUID productId) |
private <T> T |
doRestCall(javax.ws.rs.client.Invocation invocation,
java.lang.Class<T> class1) |
StockLevel |
getStockLevel(ShopRequestContext shopReqCtx,
GUID productId) |
private <T> T |
invoke(java.lang.String shopId,
java.lang.String resource,
javax.ws.rs.client.Entity<JsonPatch> entity,
java.lang.Class<T> returnType,
java.util.Map<java.lang.String,java.lang.Object[]> params) |
ProductApi |
patch(ShopRequestContext shopRequestContext,
GUID productId,
JsonPatch jsonPatch) |
StockLevel |
updateStockLevel(ShopRequestContext shopReqCtx,
GUID productId,
StockLevelUpdate stockLevelUpdate) |
private final InvocationBuilderFactory invocationBuilderFactory
@Inject public ProductWriteServiceEP6(InvocationBuilderFactory invocationBuilderFactory)
public void delete(ShopRequestContext shopRequestContext, GUID productId)
delete
in interface ProductWriteService
private <T> T doRestCall(javax.ws.rs.client.Invocation invocation, java.lang.Class<T> class1)
public StockLevel getStockLevel(ShopRequestContext shopReqCtx, GUID productId)
getStockLevel
in interface ProductWriteService
public StockLevel updateStockLevel(ShopRequestContext shopReqCtx, GUID productId, StockLevelUpdate stockLevelUpdate)
updateStockLevel
in interface ProductWriteService
public ProductApi patch(ShopRequestContext shopRequestContext, GUID productId, JsonPatch jsonPatch)
patch
in interface ProductWriteService
private <T> T invoke(java.lang.String shopId, java.lang.String resource, javax.ws.rs.client.Entity<JsonPatch> entity, java.lang.Class<T> returnType, java.util.Map<java.lang.String,java.lang.Object[]> params)