Package com.hybris.merchandising.service
Interface MerchSnConfigService
- All Known Implementing Classes:
DefaultMerchSnConfigService
public interface MerchSnConfigService
Service that provides basic functionality for merchandising configurations.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateOrUpdateProductDirectory(MerchSnConfigModel merchSnConfig, boolean saveModel) Method creating or updating product directory related to given merchandising configuration (send request to catalog service)voiddeleteProductDirectory(MerchSnConfigModel merchSnConfig) Method deleting product directory related to given merchandising configuration (send delete request to catalog service)Returns the merchandising configuration being used by the current base site.getMerchConfigForIndexedType(SnIndexTypeModel indexType) Returns the merchandising configuration for a specific index type.getMerchConfigForIndexedType(String indexType) Returns the merchandising configuration for a specific index type.voidupdateMerchConfig(MerchSnConfigModel merchSnConfig) Updates persistence for providedMerchSnConfigModel.
-
Method Details
-
getMerchConfigForIndexedType
Returns the merchandising configuration for a specific index type.- Parameters:
indexType- - the index type identifier- Returns:
- the merchandising configuration
-
getMerchConfigForIndexedType
Returns the merchandising configuration for a specific index type.- Parameters:
indexType- - the index type model- Returns:
- the merchandising configuration
-
getMerchConfigForCurrentBaseSite
Optional<MerchSnConfigModel> getMerchConfigForCurrentBaseSite()Returns the merchandising configuration being used by the current base site.- Returns:
- the product directory configuration being used by the current base site.
-
updateMerchConfig
Updates persistence for providedMerchSnConfigModel.- Parameters:
merchSnConfig- the product directory config model to update.
-
deleteProductDirectory
Method deleting product directory related to given merchandising configuration (send delete request to catalog service)- Parameters:
merchSnConfig- - merchandising configuration
-
createOrUpdateProductDirectory
Method creating or updating product directory related to given merchandising configuration (send request to catalog service)- Parameters:
merchSnConfig- merchandising configurationsaveModel- flag defining configuration model should be saved (after setting product directory identifier for it)
-