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 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 site
      action - action to execute
    • processPageWise

      <T> void processPageWise(IntFunction<SearchPageData<T>> searchFunction, Consumer<List<T>> searchResultConsumer)
      Parameters:
      searchFunction - function to deliver pageable results
      searchResultConsumer - consumer for processing the results page wise
    • retrieveUserForAbstractOrderEntryIfRelevant

      default UserModel retrieveUserForAbstractOrderEntryIfRelevant(AbstractOrderEntryModel entry)
      Retrieves order user if this case is relevant for impersonation
      Parameters:
      entry - abstract order entry
      Returns:
      order user