Package com.skava.catalog.service.impl
Class FindMergedSkuServiceImpl
java.lang.Object
com.skava.catalog.service.impl.FindMergedSkuServiceImpl
- All Implemented Interfaces:
FindMergedSkuService
,com.skava.core.EcommService<SkuRequestInternal,
ProductModel>
The Class FindMergedSkuServiceImpl
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to validation the given request.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.process
(SkuRequestInternal request) This method is used to load single Sku based on given Sku identifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
FindMergedSkuServiceImpl
public FindMergedSkuServiceImpl()
-
-
Method Details
-
getValidator
This method is used to validation the given request.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<SkuRequestInternal,
ProductModel> - Returns:
- It returns the
ValidatorComponent
.
-
process
This method is used to load single Sku based on given Sku identifier.- Specified by:
process
in interfacecom.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 interfaceFindMergedSkuService
- 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 localecollectionId
- used to retrieve the default locale- Returns:
- It returns the sku merged Product Model response in SchemaOrg format.
-