final class ProductServiceDecorator extends java.lang.Object implements ProductService
Modifier and Type | Field and Description |
---|---|
private ProductService |
delegate |
private java.util.Set<ProductLinkAppenderService> |
linkServices |
private ProductService |
restDelegate |
Constructor and Description |
---|
ProductServiceDecorator(ProductService delegate,
java.util.Set<ProductLinkAppenderService> linkServices,
ProductService restDelegate) |
Modifier and Type | Method and Description |
---|---|
private void |
addLinksTo(Product product) |
private void |
addLinksTo(Products products) |
Product |
get(ShopRequestContext shopRequestContext,
GUID productGuid)
Provides a product in a given shop request context
|
Products |
getAll(ShopRequestContext reqCtx,
Product.SortAttribute attribute,
SortDirection direction,
java.lang.String query,
GUID categoryId)
Provides all products in a given shop request context
|
Products |
getByIds(ShopRequestContext shopRequestContext,
java.util.List<GUID> guids) |
CustomAttributes |
getCustomAttributes(ShopRequestContext shopRequestContext,
GUID productGuid) |
private final ProductService delegate
private final ProductService restDelegate
private final java.util.Set<ProductLinkAppenderService> linkServices
@Inject public ProductServiceDecorator(ProductService delegate, java.util.Set<ProductLinkAppenderService> linkServices, @Named(value="ep6") ProductService restDelegate)
public Product get(ShopRequestContext shopRequestContext, GUID productGuid)
ProductService
get
in interface ProductService
public Products getAll(ShopRequestContext reqCtx, Product.SortAttribute attribute, SortDirection direction, java.lang.String query, GUID categoryId)
ProductService
getAll
in interface ProductService
public Products getByIds(ShopRequestContext shopRequestContext, java.util.List<GUID> guids)
getByIds
in interface ProductService
private void addLinksTo(Products products)
private void addLinksTo(Product product)
public CustomAttributes getCustomAttributes(ShopRequestContext shopRequestContext, GUID productGuid)
getCustomAttributes
in interface ProductService