Class DefaultProductDirectoryProcessor
java.lang.Object
com.hybris.merchandising.processor.impl.DefaultProductDirectoryProcessor
- All Implemented Interfaces:
ProductDirectoryProcessor
Default implementation of
ProductDirectoryProcessor-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUpdate(MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) ProcessMerchProductDirectoryConfigModelwhich is encapsulates MerchProductDirectoryConfigvoiddelete(MerchProductDirectoryConfigModel merchProductDirectoryConfigModel) protected ProductDirectoryConverts anMerchProductDirectoryConfigModelobject to aProductDirectoryobject.protected StringgetProductDirectoryId(com.hybris.charon.RawResponse directoryResponse) Returns the productDirectoryId from the location header of the directory response.voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCatalogServiceClient(MerchCatalogServiceProductDirectoryClient catalogServiceClient) voidsetMerchProductDirectoryConfigService(MerchProductDirectoryConfigService merchProductDirectoryConfigService)
-
Constructor Details
-
DefaultProductDirectoryProcessor
public DefaultProductDirectoryProcessor()
-
-
Method Details
-
createUpdate
Description copied from interface:ProductDirectoryProcessorProcessMerchProductDirectoryConfigModelwhich is encapsulates MerchProductDirectoryConfig- Specified by:
createUpdatein interfaceProductDirectoryProcessor
-
delete
- Specified by:
deletein interfaceProductDirectoryProcessor
-
getProductDirectory
Converts anMerchProductDirectoryConfigModelobject to aProductDirectoryobject.- Parameters:
model- the inbound model to convert.- Returns:
- a ProductDirectory represneting this.
-
getProductDirectoryId
Returns the productDirectoryId from the location header of the directory response.- Parameters:
directoryResponse- theRawResponsereturned by the API call.- Returns:
- a String representation of the ID.
-
setCatalogServiceClient
-
setMerchProductDirectoryConfigService
public void setMerchProductDirectoryConfigService(MerchProductDirectoryConfigService merchProductDirectoryConfigService) -
getBaseSiteService
-
setBaseSiteService
-