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 Type
    Method
    Description
    boolean
    This method creates a market in pros
    getMarket(Market market)
    This 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.
    boolean
    This method removes the market by calling pros service.
    boolean
    This method updates marked in pros
  • Method Details

    • getMarkets

      List<Market> getMarkets(Map<String,Object> searchFilterMap)
      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 200
      org.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 200
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception
    • updateMarket

      boolean updateMarket(Market market)
      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

      Market getMarket(Market market)
      This method returns the market by market code and username by calling pros service.
      Parameters:
      market - the market
      Returns:
      the market