Class FindAllBinServiceImpl

java.lang.Object
com.skava.inventory.service.impl.CommonDependencies
com.skava.inventory.service.impl.bin.FindAllBinServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<FindAllBinRequest,BinsResponse>, FindAllBinService, CustomEcommService<FindAllBinRequest,BinsResponse>

@Service public class FindAllBinServiceImpl extends CommonDependencies implements FindAllBinService
This class implements FindAllBinService and defines the implementations to find all bins in a collection. If the search term is empty, then all bin(s) are returned based on the collection ID. A bin is a place where you can organize the bin items or the child bin(s) to one specific group. The bins can be grouped under a particular bin called the parent bin. The response of this request is given through the Bin model array.

Note: A user with the privilege to view bins can retrieve and view the details of the bins. Below are the validations applied to find all bin.
  • Collection must be valid.
Author:
Infosys Equinox
  • Constructor Details

    • FindAllBinServiceImpl

      public FindAllBinServiceImpl()
  • Method Details

    • process

      @HystrixCommand(commandKey="inventory-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public BinsResponse process(FindAllBinRequest request)
      This method is used to load all Bins based on request. The filter/search query is applied to find a set bins. The bins are loaded based on the collections.
      Specified by:
      process in interface com.skava.core.EcommService<FindAllBinRequest,BinsResponse>
      Parameters:
      request - It contains the search/filter attributes for querying set of bins.
      Returns:
      It returns the BinsResponse.
    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator(FindAllBinRequest request)
      Specified by:
      getValidator in interface com.skava.core.EcommService<FindAllBinRequest,BinsResponse>