Interface MarketBucketService

All Known Implementing Classes:
DefaultMarketBucketService

public interface MarketBucketService
This interface will provide integration with the pros api to call market buckets related api's
  • Method Details

    • getMarketBuckets

      List<MarketBucket> getMarketBuckets(Map<String,Object> searchFilterMap)
      This method returns the market buckets by calling pros service.
      Parameters:
      searchFilterMap - the map of filters to apply to the request
      Returns:
      list of market bucket
    • removeMarket

      boolean removeMarket(MarketBucket marketBucket) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.ResourceAccessException
      This method removes the market bucket by calling pros service.
      Parameters:
      marketBucket - the marketBucket
      Returns:
      the boolean, return true if market bucket 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
    • createMarketBucket

      boolean createMarketBucket(MarketBucket marketBucket) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException
      This method creates market bucket in pros
      Parameters:
      marketBucket - the marketBucket
      Returns:
      the boolean, return true if market bucket is created in pros else return false
      Throws:
      org.springframework.web.client.HttpServerErrorException - the exception when http response is not 200 e.g. status 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception
    • getMarketBucket

      MarketBucket getMarketBucket(MarketBucket marketBucket)
      This method returns the MarketBucket by marketBucketEntityId and username by calling pros service.
      Parameters:
      marketBucket - the marketBucket
      Returns:
      the MarketBucket
    • updateMarketBucket

      boolean updateMarketBucket(MarketBucket marketBucket) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.HttpClientErrorException, org.springframework.web.client.ResourceAccessException
      This method updates marketBucket in pros
      Parameters:
      marketBucket - the marketBucket
      Returns:
      the boolean, return true if marketBucket is updated in pros
      Throws:
      org.springframework.web.client.HttpServerErrorException - the exception when http response is not 200 e.g. status 5xx
      org.springframework.web.client.HttpClientErrorException - the exception when http response is not 200 e.g. status 4xx
      org.springframework.web.client.ResourceAccessException - the resource is not accessible exception