Class DefaultTmaBpoGuidedSellingFacade
java.lang.Object
de.hybris.platform.b2ctelcofacades.bpoguidedselling.impl.DefaultTmaBpoGuidedSellingFacade
- All Implemented Interfaces:
TmaBpoGuidedSellingFacade
Default implementation for
TmaBpoGuidedSellingFacade.- Since:
- 6.7
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaBpoGuidedSellingFacade(de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters, GuidedSellingDashBoardData> tmaGuidedSellingDashBoardDataPopulator, TmaPoService tmaPoService, de.hybris.platform.commercefacades.search.ProductSearchFacade<ProductData> productSearchFacade, EntryGroupFacade entryGroupFacade, TmaCartService cartService, DefaultTmaAbstractOrderEntryService abstractOrderEntryService) -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultTmaAbstractOrderEntryServicegetCalculatedStepsForBPO(String bpoCode) fetch the calculated steps to configure a BPOprotected TmaCartServicegetDashBoardForBPO(String bpoCode, Integer groupNumber) Fetch the dash board data For the BPO guided Selling JourneygetDashBoardForBPO(String bpoCode, String groupId, Integer groupNumber) Fetch the dash board data For the BPO guided Selling Journey for the corresponding groupIdprotected EntryGroupFacadegetFirstStepForBPO(String bpoCode) Fetch the first step for given BPO CodegetProductsAssociatedWithGroups(String groupId, PageableData pageableData, String searchQuery, String bpoId, Integer groupNumber) Initiate a new or refine an existing search for bundle products based on BPO id and Group id.protected de.hybris.platform.commercefacades.search.ProductSearchFacade<ProductData>protected de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters,GuidedSellingDashBoardData> Deprecated.since 2102protected de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters,GuidedSellingDashBoardData> protected TmaPoServiceprotected voidpatchQuery(SearchStateData searchState, String searchQuery, String groupId) protected StringpatchURLs(String urlPrefix, ProductSearchPageData<SearchStateData, ProductData> searchPageData) Query Builder for fetching bundle Data from solr.voidsetEntryGroupFacade(EntryGroupFacade entryGroupFacade) voidsetProductSearchFacade(de.hybris.platform.commercefacades.search.ProductSearchFacade<ProductData> productSearchFacade) voidsetTmaBpoGuidedSellingDashBoardDataPopulator(de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters, GuidedSellingDashBoardData> tmaBpoGuidedSellingDashBoardDataPopulator) Deprecated.since 2102voidsetTmaPoService(TmaPoService tmaPoService) validateAndGetBPOEntryGroup(String bpoCode, Integer groupNumber) validate and Fetch the EntryGroup data for the corresponding BPO
-
Constructor Details
-
DefaultTmaBpoGuidedSellingFacade
public DefaultTmaBpoGuidedSellingFacade(de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters, GuidedSellingDashBoardData> tmaGuidedSellingDashBoardDataPopulator, TmaPoService tmaPoService, de.hybris.platform.commercefacades.search.ProductSearchFacade<ProductData> productSearchFacade, EntryGroupFacade entryGroupFacade, TmaCartService cartService, DefaultTmaAbstractOrderEntryService abstractOrderEntryService)
-
-
Method Details
-
getCalculatedStepsForBPO
Description copied from interface:TmaBpoGuidedSellingFacadefetch the calculated steps to configure a BPO- Specified by:
getCalculatedStepsForBPOin interfaceTmaBpoGuidedSellingFacade- Parameters:
bpoCode- the bpoCode for which Journey needs to be calculated- Returns:
- the map with
GuidedSellingStepDataas value and calculated group Id as keys
-
getDashBoardForBPO
Fetch the dash board data For the BPO guided Selling Journey It retrieves the guided selling dashboard data for the BPO and group number provided. The group number can be the ID of the entry group (if exists) or the parent entry (if exists).- Specified by:
getDashBoardForBPOin interfaceTmaBpoGuidedSellingFacade- Parameters:
bpoCode- the bpoCode for which Journey needs to be calculatedgroupNumber- The group identifying the entry or entry group to whichTmaBundledProductOfferingModelis added to the cart , can be null if no entry is added for a particular journey- Returns:
GuidedSellingDashBoardDataThe guided selling dash board data for a the given BPO
-
getDashBoardForBPO
public GuidedSellingDashBoardData getDashBoardForBPO(String bpoCode, String groupId, Integer groupNumber) Fetch the dash board data For the BPO guided Selling Journey for the corresponding groupId It retrieves the guided selling dashboard data for the BPO, group ID and group number provided. The group number can be the ID of the entry group (if exists) or the parent entry (if exists).- Specified by:
getDashBoardForBPOin interfaceTmaBpoGuidedSellingFacade- Parameters:
bpoCode- the bpoCode for which Journey needs to be calculatedgroupId- the bpo groupId for which Journey needs to be calculatedgroupNumber- TheEntryGroupto whichTmaBundledProductOfferingModelis added to the cart , can be null if no entry is added for a particular journey- Returns:
GuidedSellingDashBoardDataThe guided selling dash board data for a the given BPO
-
getProductsAssociatedWithGroups
public ProductSearchPageData<SearchStateData,ProductData> getProductsAssociatedWithGroups(String groupId, PageableData pageableData, String searchQuery, String bpoId, Integer groupNumber) Description copied from interface:TmaBpoGuidedSellingFacadeInitiate a new or refine an existing search for bundle products based on BPO id and Group id.- Specified by:
getProductsAssociatedWithGroupsin interfaceTmaBpoGuidedSellingFacade- Parameters:
groupId- The calculated Group ofTmaBundledProductOfferingModelof the root Bundled Product Offering, from whereTmaSimpleProductOfferingModelis addedpageableData-PageableDatathe pageable datasearchQuery- the search query for the Search page databpoId- the BPO codeProductModel.CODEfor which guided selling journey is startedgroupNumber- The group identifying the entry or entry group to whichTmaBundledProductOfferingModelis added to the cart, can be empty- Returns:
ProductSearchPageData
-
getFirstStepForBPO
Description copied from interface:TmaBpoGuidedSellingFacadeFetch the first step for given BPO Code- Specified by:
getFirstStepForBPOin interfaceTmaBpoGuidedSellingFacade- Parameters:
bpoCode-TmaBundledProductOfferingModelcode- Returns:
- step name Return first key of hash map if Given bpoCode
TmaBundledProductOfferingModelhas list of child's or list of groups otherwise return theModelNotFoundExceptionif null empty is return by given BPO code
-
validateAndGetBPOEntryGroup
Description copied from interface:TmaBpoGuidedSellingFacadevalidate and Fetch the EntryGroup data for the corresponding BPO- Specified by:
validateAndGetBPOEntryGroupin interfaceTmaBpoGuidedSellingFacade- Parameters:
bpoCode- the bpoCode for which Journey needs to be calculatedgroupNumber- The group identifying the entry or entry group to whichTmaBundledProductOfferingModelis added to the cart , can be null if no entry is added for a particular journey- Returns:
EntryGroupThe EntryGroup data for a the given BPO
-
patchQuery
-
patchURLs
protected String patchURLs(String urlPrefix, ProductSearchPageData<SearchStateData, ProductData> searchPageData) Query Builder for fetching bundle Data from solr.- Parameters:
urlPrefix- the url prefixsearchPageData- the search page data- Returns:
- the url prefix
-
getTmaBpoGuidedSellingDashBoardDataPopulator
@Deprecated(since="2102") protected de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters,GuidedSellingDashBoardData> getTmaBpoGuidedSellingDashBoardDataPopulator()Deprecated.since 2102 -
setTmaBpoGuidedSellingDashBoardDataPopulator
@Deprecated(since="2102") public void setTmaBpoGuidedSellingDashBoardDataPopulator(de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters, GuidedSellingDashBoardData> tmaBpoGuidedSellingDashBoardDataPopulator) Deprecated.since 2102 -
getTmaPoService
-
setTmaPoService
-
getProductSearchFacade
protected de.hybris.platform.commercefacades.search.ProductSearchFacade<ProductData> getProductSearchFacade() -
setProductSearchFacade
public void setProductSearchFacade(de.hybris.platform.commercefacades.search.ProductSearchFacade<ProductData> productSearchFacade) -
getEntryGroupFacade
-
setEntryGroupFacade
-
getAbstractOrderEntryService
-
getCartService
-
getTmaGuidedSellingDashBoardDataPopulator
protected de.hybris.platform.converters.Populator<GuidedSellingDashBoardPopulatorParameters,GuidedSellingDashBoardData> getTmaGuidedSellingDashBoardDataPopulator()
-