All Known Implementing Classes:
DefaultBucketService

public interface BucketService
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method creates bucket in pros as well as shopping fare product and bundle type in hybris
    getBucket(Bucket bucket)
    This 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.
    boolean
    This method removes the BundleTemplate,BundleSelection Criteria reference from hybris for the given bucket and delete the corresponding bucket from the pros
    boolean
    This method updates bucket in pros
  • Method Details

    • getBuckets

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

      Bucket getBucket(Bucket bucket)
      This method returns the bucket by bucket code and bucket username by calling pros service.
      Parameters:
      bucket - the bucket
      Returns:
      the Bucket
    • updateBucket

      boolean updateBucket(Bucket bucket)
      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

      boolean removeBucket(Bucket bucket)
      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: