Interface BucketService
- All Known Implementing Classes:
DefaultBucketService
public interface BucketService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateBucket(Bucket bucket) This method creates bucket in pros as well as shopping fare product and bundle type in hybrisThis method returns the bucket by bucket code and bucket username by calling pros service.getBuckets(Map<String, Object> searchFilterMap) This method returns the buckets by calling pros service.booleanremoveBucket(Bucket bucket) This method removes the BundleTemplate,BundleSelection Criteria reference from hybris for the given bucket and delete the corresponding bucket from the prosbooleanupdateBucket(Bucket bucket) This method updates bucket in pros
-
Method Details
-
getBuckets
This method returns the buckets by calling pros service.- Parameters:
searchFilterMap- the map of filters to apply to the request- Returns:
- list of bucket
-
createBucket
boolean createBucket(Bucket bucket) throws org.springframework.web.client.HttpServerErrorException, org.springframework.web.client.ResourceAccessException This method creates bucket in pros as well as shopping fare product and bundle type in hybris- Parameters:
bucket- the bucket- Returns:
- the boolean, return true if bucket is created in pros as well as in hybris 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
-
getBucket
This method returns the bucket by bucket code and bucket username by calling pros service.- Parameters:
bucket- the bucket- Returns:
- the Bucket
-
updateBucket
This method updates bucket in pros- Parameters:
bucket- the bucket- Returns:
- the boolean, return true if response from pros service is 200 else return false
-
removeBucket
This method removes the BundleTemplate,BundleSelection Criteria reference from hybris for the given bucket and delete the corresponding bucket from the pros- Parameters:
bucket-- Returns:
-