Interface ConfigurationServiceLayerHelper
- All Known Implementing Classes:
DefaultConfigurationServiceLayerHelper
public interface ConfigurationServiceLayerHelper
helper class providing common operations for the servie layer of sap.hybris.cpq module
-
Method Summary
Modifier and TypeMethodDescriptionvoidensureBaseSiteSetAndExecuteConfigurationAction(AbstractOrderModel order, 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.extracts the CPQ related product infos from the given entry<T> voidprocessPageWise(IntFunction<SearchPageData<T>> searchFunction, Consumer<List<T>> searchResultConsumer) default UserModelRetrieves order user if this case is relevant for impersonation
-
Method Details
-
getCPQInfo
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, 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(IntFunction<SearchPageData<T>> searchFunction, Consumer<List<T>> searchResultConsumer) - Parameters:
searchFunction- function to deliver pageable resultssearchResultConsumer- consumer for processing the results page wise
-
retrieveUserForAbstractOrderEntryIfRelevant
Retrieves order user if this case is relevant for impersonation- Parameters:
entry- abstract order entry- Returns:
- order user
-