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 Detail

      • 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 site
        action - 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 results
        searchResultConsumer - consumer for processing the results page wise