Class DefaultStrategyService

java.lang.Object
com.hybris.merchandising.service.impl.DefaultStrategyService
All Implemented Interfaces:
StrategyService

public class DefaultStrategyService extends Object implements StrategyService
Default implementation of StrategyService.
  • Field Details

    • apiRegistryClientService

      @Autowired @Qualifier("apiRegistryClientService") protected ApiRegistryClientService apiRegistryClientService
  • Constructor Details

    • DefaultStrategyService

      public DefaultStrategyService()
  • Method Details

    • getStrategies

      public List<Strategy> getStrategies(Integer pageNumber, Integer pageSize)
      getStrategies returns a list of Strategy objects for the configured tenant.
      Specified by:
      getStrategies in interface StrategyService
      Parameters:
      pageNumber - - number of pages to include in the response
      pageSize - - number of data in a single page
      Returns:
      List of Strategy - list of strategy
    • getStrategy

      public Strategy getStrategy(String id)
      getStrategy return the Strategy for the id
      Specified by:
      getStrategy in interface StrategyService
      Parameters:
      id - - identifier of the strategy
      Returns:
      Strategy - a Strategy for the id provided
    • executeAndHandleException

      protected <R> R executeAndHandleException(Supplier<R> supplier)