Class CollectionTemplateImpl

java.lang.Object
com.skava.oms.template.collection.CollectionTemplateImpl
All Implemented Interfaces:
CollectionTemplate

@Component public class CollectionTemplateImpl extends Object implements CollectionTemplate
The class OrderTemplateImpl extends OrderTemplate to handle get order based on different filters. The getSkuId will find the sku based on the collection id and the user id.
Author:
Infosys Equinox
  • Constructor Details

    • CollectionTemplateImpl

      public CollectionTemplateImpl()
  • Method Details

    • find

      @Cacheable(cacheNames="collectionByBusinessCache", key="\'businessId_\'+#businessId+\'_filters_\'+#filters+\'_page_\'+#page+\'_size_\'+#size") public org.springframework.data.domain.Page<Collection> find(List<SearchCriteria> fields, List<SortCriteria> sort, int page, int size, long businessId, String filters)
      Debug logger has been added to this method.
      Specified by:
      find in interface CollectionTemplate
      Parameters:
      fields - defines the filters.
      sort - defines the sort variable to be sorted
      page - defines the page number to be searched
      size - defines the number of entries to be listed in the page
      businessId - defines the business id
      filters - defines the filter variable to be filtered
      Returns:
      the Order response.
    • count

      public long count(List<SearchCriteria> fields)
      This method is used to get total count from DB
      Specified by:
      count in interface CollectionTemplate
      Parameters:
      fields - defines the filters.
      Returns:
      Returns count