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 |
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) |
Modifier and Type | Method and Description |
---|---|
void |
assign(ShopRequestContext shopRequestContext,
java.util.List<GUID> productId,
java.util.List<GUID> categoryId) |
private <T extends ResourceSupport> |
convertLinks(T obj) |
private void |
convertProductLinks(ProductApi result) |
ProductDetailsApi |
create(ShopRequestContext shopRequestContext,
ProductTemplate productTemplate) |
void |
delete(ShopRequestContext shopRequestContext,
GUID productId) |
private javax.ws.rs.core.Form |
getForm(java.util.List<GUID> productId,
java.util.List<GUID> categoryId) |
private java.util.Map<java.lang.String,java.lang.Object[]> |
getQueryParams(java.util.List<GUID> productId,
java.util.List<GUID> categoryId) |
ProductDetailsApi |
patch(ShopRequestContext shopRequestContext,
GUID productId,
JsonPatch jsonPatch) |
void |
unassign(ShopRequestContext shopRequestContext,
java.util.List<GUID> productId,
java.util.List<GUID> categoryId) |
private final InvocationBuilder invocationBuilder
@Inject public ProductWriteServiceEP6(InvocationBuilder invocationBuilder, Converter<java.util.List<Link>,java.util.List<Link>> converter)
public void delete(ShopRequestContext shopRequestContext, GUID productId)
delete
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)
public void assign(ShopRequestContext shopRequestContext, java.util.List<GUID> productId, java.util.List<GUID> categoryId)
assign
in interface ProductWriteService
private javax.ws.rs.core.Form getForm(java.util.List<GUID> productId, java.util.List<GUID> categoryId)
public void unassign(ShopRequestContext shopRequestContext, java.util.List<GUID> productId, java.util.List<GUID> categoryId)
unassign
in interface ProductWriteService