Class DefaultStrategyService
java.lang.Object
com.hybris.merchandising.service.impl.DefaultStrategyService
- All Implemented Interfaces:
StrategyService
Default implementation of
StrategyService.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <R> RexecuteAndHandleException(Supplier<R> supplier) getStrategies(Integer pageNumber, Integer pageSize) getStrategies returns a list ofStrategyobjects for the configured tenant.getStrategy(String id) getStrategy return theStrategyfor the id
-
Field Details
-
apiRegistryClientService
@Autowired @Qualifier("apiRegistryClientService") protected ApiRegistryClientService apiRegistryClientService
-
-
Constructor Details
-
DefaultStrategyService
public DefaultStrategyService()
-
-
Method Details
-
getStrategies
getStrategies returns a list ofStrategyobjects for the configured tenant.- Specified by:
getStrategiesin interfaceStrategyService- Parameters:
pageNumber- - number of pages to include in the responsepageSize- - number of data in a single page- Returns:
- List of
Strategy- list of strategy
-
getStrategy
getStrategy return theStrategyfor the id- Specified by:
getStrategyin interfaceStrategyService- Parameters:
id- - identifier of the strategy- Returns:
- Strategy - a Strategy for the id provided
-
executeAndHandleException
-