Interface MarketService
- All Known Implementing Classes:
DefaultMarketService
public interface MarketService
This interface will provide integration with the pros api to call markets related api's and create respective type in hybris
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateMarket(Market market) This method creates a market in prosThis method returns the market by market code and username by calling pros service.getMarkets(Map<String, Object> searchFilterMap) This method returns the markets by calling pros service.booleanremoveMarket(Market market) This method removes the market by calling pros service.booleanupdateMarket(Market market) This method updates marked in pros
-
Method Details
-
getMarkets
This method returns the markets by calling pros service.- Parameters:
searchFilterMap- the map of filters to apply to the request the list of markets- Returns:
- list of markets
-
removeMarket
boolean removeMarket(Market market) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.ResourceAccessException This method removes the market by calling pros service.- Parameters:
market- the market- Returns:
- the boolean, return true if market is removed in pros
- Throws:
org.springframework.web.client.HttpServerErrorException- the exception when http response is not 200org.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-
createMarket
boolean createMarket(Market market) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.ResourceAccessException This method creates a market in pros- Parameters:
market- the market- Returns:
- the boolean, return true if market is created in pros else return false
- Throws:
org.springframework.web.client.HttpServerErrorException- the exception when http response is not 200org.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-
updateMarket
This method updates marked in pros- Parameters:
market- the market- Returns:
- the boolean, return true if market is updated in pros else return false
-
getMarket
This method returns the market by market code and username by calling pros service.- Parameters:
market- the market- Returns:
- the market
-