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 Summary
Modifier and TypeMethodDescriptionbooleancreateMarketBucket(MarketBucket marketBucket) This method creates market bucket in prosgetMarketBucket(MarketBucket marketBucket) This method returns the MarketBucket by marketBucketEntityId and username by calling pros service.getMarketBuckets(Map<String, Object> searchFilterMap) This method returns the market buckets by calling pros service.booleanremoveMarket(MarketBucket marketBucket) This method removes the market bucket by calling pros service.booleanupdateMarketBucket(MarketBucket marketBucket) This method updates marketBucket in pros
-
Method Details
-
getMarketBuckets
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 200org.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 5xxorg.springframework.web.client.HttpClientErrorException- the exception when http response is not 200 e.g. status 4xxorg.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-
getMarketBucket
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 5xxorg.springframework.web.client.HttpClientErrorException- the exception when http response is not 200 e.g. status 4xxorg.springframework.web.client.ResourceAccessException- the resource is not accessible exception
-