Class DefaultStrategyService
- java.lang.Object
-
- com.hybris.merchandising.service.impl.DefaultStrategyService
-
- All Implemented Interfaces:
StrategyService
public class DefaultStrategyService extends java.lang.Object implements StrategyService
Default implementation ofStrategyService
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ApiRegistryClientService
apiRegistryClientService
-
Constructor Summary
Constructors Constructor Description DefaultStrategyService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Strategy>
getStrategies(java.lang.Integer pageNumber, java.lang.Integer pageSize)
getStrategies returns a list ofStrategy
objects for the configured tenant.Strategy
getStrategy(java.lang.String id)
getStrategy return theStrategy
for the id
-
-
-
Field Detail
-
apiRegistryClientService
@Autowired @Qualifier("apiRegistryClientService") protected ApiRegistryClientService apiRegistryClientService
-
-
Method Detail
-
getStrategies
public java.util.List<Strategy> getStrategies(java.lang.Integer pageNumber, java.lang.Integer pageSize)
getStrategies returns a list ofStrategy
objects for the configured tenant.- Specified by:
getStrategies
in 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
public Strategy getStrategy(java.lang.String id)
getStrategy return theStrategy
for the id- Specified by:
getStrategy
in interfaceStrategyService
- Parameters:
id
- - identifier of the strategy- Returns:
- Strategy - a Strategy for the id provided
-
-