Interface ConfigurationServiceLayerHelper
-
- All Known Implementing Classes:
DefaultConfigurationServiceLayerHelper
public interface ConfigurationServiceLayerHelperhelper class providing common operations for the servie layer of sap.hybris.cpq module
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidensureBaseSiteSetAndExecuteConfigurationAction(AbstractOrderModel order, java.util.function.Consumer<BaseSiteModel> action)Executes an action ensuring that that base site of the provided document is set as current base site.
After action execution, the previous current base site is restored.CloudCPQOrderEntryProductInfoModelgetCPQInfo(AbstractOrderEntryModel entry)extracts the CPQ related product infos from the given entry<T> voidprocessPageWise(java.util.function.IntFunction<SearchPageData<T>> searchFunction, java.util.function.Consumer<java.util.List<T>> searchResultConsumer)
-
-
-
Method Detail
-
getCPQInfo
CloudCPQOrderEntryProductInfoModel getCPQInfo(AbstractOrderEntryModel entry)
extracts the CPQ related product infos from the given entry- Parameters:
entry- entry- Returns:
- CPQ related product infos, or null if not existing
-
ensureBaseSiteSetAndExecuteConfigurationAction
void ensureBaseSiteSetAndExecuteConfigurationAction(AbstractOrderModel order, java.util.function.Consumer<BaseSiteModel> action)
Executes an action ensuring that that base site of the provided document is set as current base site.
After action execution, the previous current base site is restored.- Parameters:
order- document providing the base siteaction- action to execute
-
processPageWise
<T> void processPageWise(java.util.function.IntFunction<SearchPageData<T>> searchFunction, java.util.function.Consumer<java.util.List<T>> searchResultConsumer)
- Parameters:
searchFunction- function to deliver pageable resultssearchResultConsumer- consumer for processing the results page wise
-
-