public interface HeroProductFacade
| Modifier and Type | Method and Description |
|---|---|
void |
addHeroProduct(String categoryCode,
String productCode)
Adds the product with the specified product code to the
SolrHeroProductDefinitionModel which contains the
category with the specified category code. |
List<String> |
getHeroProductsForCategory(String categoryCode)
Retrieves all products that are included in the
SolrHeroProductDefinitionModel which is specified by the
given category. |
void |
moveHeroProductDown(String categoryCode,
String productCode)
Moves the specified product code one position down in the list of (hero) products in the
SolrHeroProductDefinitionModel which contains the category with the specified category code. |
void |
moveHeroProductToPosition(String categoryCode,
String productCode,
int position)
Moves the specified product code to the given position in the list of (hero) products in the
SolrHeroProductDefinitionModel which contains the category with the specified category code. |
void |
moveHeroProductUp(String categoryCode,
String productCode)
Moves the specified product code one position up in the list of (hero) products in the
SolrHeroProductDefinitionModel which contains the category with the specified category code. |
void |
removeHeroProduct(String categoryCode,
String productCode)
Removes the product with the specified product code from the
SolrHeroProductDefinitionModel which contains
the category with the specified category code. |
List<String> getHeroProductsForCategory(String categoryCode)
SolrHeroProductDefinitionModel which is specified by the
given category.categoryCode - the category code of the category which is contained by the SolrHeroProductDefinitionModelvoid addHeroProduct(String categoryCode, String productCode)
SolrHeroProductDefinitionModel which contains the
category with the specified category code. If no such SolrHeroProductDefinitionModel exists, a new one
will be created. If the product has already been added to the SolrHeroProductDefinitionModel, no action
will be taken, otherwise the product will be added.categoryCode - the category code of the category which is contained by the SolrHeroProductDefinitionModelproductCode - the product code of the product to be added to the SolrHeroProductDefinitionModelvoid removeHeroProduct(String categoryCode, String productCode)
SolrHeroProductDefinitionModel which contains
the category with the specified category code. If no such SolrHeroProductDefinitionModel exists, no action
will be taken. If the SolrHeroProductDefinitionModel doesn't contain the product, no action will be taken,
otherwise the product will be removed from the SolrHeroProductDefinitionModel.categoryCode - the category code of the category which is contained by the SolrHeroProductDefinitionModelproductCode - the product code of the product to be removed from the SolrHeroProductDefinitionModelvoid moveHeroProductUp(String categoryCode, String productCode)
SolrHeroProductDefinitionModel which contains the category with the specified category code. If no such
SolrHeroProductDefinitionModel exists, no action will be taken. If the
SolrHeroProductDefinitionModel doesn't contain the product, or if the product is already at the first
position, no action will be taken.categoryCode - the category code of the category which is contained by the SolrHeroProductDefinitionModelproductCode - the product code of the product to be removed from the SolrHeroProductDefinitionModelvoid moveHeroProductDown(String categoryCode, String productCode)
SolrHeroProductDefinitionModel which contains the category with the specified category code. If no such
SolrHeroProductDefinitionModel exists, no action will be taken. If the
SolrHeroProductDefinitionModel doesn't contain the product, or if the product is already at the last
position, no action will be taken.categoryCode - the category code of the category which is contained by the SolrHeroProductDefinitionModelproductCode - the product code of the product to be removed from the SolrHeroProductDefinitionModelvoid moveHeroProductToPosition(String categoryCode, String productCode, int position)
SolrHeroProductDefinitionModel which contains the category with the specified category code. If no such
SolrHeroProductDefinitionModel exists, no action will be taken. If the
SolrHeroProductDefinitionModel doesn't contain the product, no action will be taken.categoryCode - the category code of the category which is contained by the SolrHeroProductDefinitionModelproductCode - the product code of the product to be removed from the SolrHeroProductDefinitionModelposition - the position in the list of hero products within the given category, stored in the
SolrHeroProductDefinitionModel. 0 is the first position; If the position exceeds the list's
length, the product will be added at the end of the list.Copyright © 2017 SAP SE. All Rights Reserved.