Class GetAllCollectionServiceImpl

java.lang.Object
com.skava.service.impl.GetAllCollectionServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<CollectionRequest,CollectionsResponse>, GetAllCollectionService

@Service @Transactional(propagation=REQUIRED, readOnly=true, noRollbackFor=java.lang.Exception.class) public class GetAllCollectionServiceImpl extends Object implements GetAllCollectionService
This service class implements GetAllCollectionService and handles the get all collection service request, process it and save the details in DB. It also implements business logic required to retrieve all collections.
Author:
Infosys Equinox
  • Constructor Summary

    Constructors
    Constructor
    Description
    The default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.skava.core.validation.ValidatorComponent>
    This method is used to get the respective validator class for this get all collection service.
    This service is used to load all collections for the requested business and load collections based on pagination parameters like page and size.
    org.springframework.data.domain.Page<CollectionEntity>
    search(String filters, org.springframework.data.domain.Pageable pageable, String locale)
    This method is used to search the collection based on the given filter and pageable request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.skava.core.EcommService

    getValidateException, getValidator
  • Constructor Details

    • GetAllCollectionServiceImpl

      public GetAllCollectionServiceImpl()
      The default constructor.
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method is used to get the respective validator class for this get all collection service.
      Specified by:
      getValidator in interface com.skava.core.EcommService<CollectionRequest,CollectionsResponse>
      Returns:
      The list of ValidatorComponent object.
    • process

      public CollectionsResponse process(CollectionRequest input)
      This service is used to load all collections for the requested business and load collections based on pagination parameters like page and size.
      Specified by:
      process in interface com.skava.core.EcommService<CollectionRequest,CollectionsResponse>
      Parameters:
      input - Holds CollectionRequest object for loading all collections within a business id.
      Returns:
      The CollectionsResponse object which returns the success response code and message and if any validations fails, throws an validate exception.
    • search

      public org.springframework.data.domain.Page<CollectionEntity> search(String filters, org.springframework.data.domain.Pageable pageable, String locale)
      This method is used to search the collection based on the given filter and pageable request.
      Parameters:
      filters - Indicates the filters.
      pageable - Holds Pageable object created based on the given size and page.
      locale - Indicates the locale object for resoponse message
      Returns:
      The Page of CollectionEntity object.