Interface MerchSnConfigService

All Known Implementing Classes:
DefaultMerchSnConfigService

public interface MerchSnConfigService
Service that provides basic functionality for merchandising configurations.
  • Method Details

    • getMerchConfigForIndexedType

      Optional<MerchSnConfigModel> getMerchConfigForIndexedType(String indexType)
      Returns the merchandising configuration for a specific index type.
      Parameters:
      indexType - - the index type identifier
      Returns:
      the merchandising configuration
    • getMerchConfigForIndexedType

      Optional<MerchSnConfigModel> getMerchConfigForIndexedType(SnIndexTypeModel indexType)
      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

      void updateMerchConfig(MerchSnConfigModel merchSnConfig)
      Updates persistence for provided MerchSnConfigModel.
      Parameters:
      merchSnConfig - the product directory config model to update.
    • deleteProductDirectory

      void deleteProductDirectory(MerchSnConfigModel merchSnConfig)
      Method deleting product directory related to given merchandising configuration (send delete request to catalog service)
      Parameters:
      merchSnConfig - - merchandising configuration
    • createOrUpdateProductDirectory

      void createOrUpdateProductDirectory(MerchSnConfigModel merchSnConfig, boolean saveModel)
      Method creating or updating product directory related to given merchandising configuration (send request to catalog service)
      Parameters:
      merchSnConfig - merchandising configuration
      saveModel - flag defining configuration model should be saved (after setting product directory identifier for it)