Class FindMergedSkuServiceImpl

java.lang.Object
com.skava.catalog.service.impl.FindMergedSkuServiceImpl
All Implemented Interfaces:
FindMergedSkuService, com.skava.core.EcommService<SkuRequestInternal,ProductModel>

@Service public class FindMergedSkuServiceImpl extends Object implements FindMergedSkuService
The Class FindMergedSkuServiceImpl
Author:
Infosys Equinox
  • Constructor Details

    • FindMergedSkuServiceImpl

      public FindMergedSkuServiceImpl()
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method is used to validation the given request.
      Specified by:
      getValidator in interface com.skava.core.EcommService<SkuRequestInternal,ProductModel>
      Returns:
      It returns the ValidatorComponent.
    • process

      public ProductModel process(SkuRequestInternal request)
      This method is used to load single Sku based on given Sku identifier.
      Specified by:
      process in interface com.skava.core.EcommService<SkuRequestInternal,ProductModel>
      Parameters:
      request - It contains the attributes required for the load of Sku.
      Returns:
      It returns the SkuAPIResponse.
    • mergeProcess

      public ProductModel mergeProcess(Sku masterRequest, Sku salesRequest, String locale, long collectionId)
      This method is used to merge product from different catalogs (master and sales) based on their locale and priority given to default locale.
      Specified by:
      mergeProcess in interface FindMergedSkuService
      Parameters:
      masterRequest - It contains the sku details from master catalog with all the locale property details.
      salesRequest - It contains the sku details from sales catalog with all the locale property details.
      locale - It contains the given locale
      collectionId - used to retrieve the default locale
      Returns:
      It returns the sku merged Product Model response in SchemaOrg format.