Class FindAllBlackListItemServiceImpl

java.lang.Object
com.skava.service.impl.FindAllBlackListItemServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<BlackListItemRequest,BlackListItemResponse>, FindAllBlackListItemService

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

  • Method Details

    • process

      @HystrixCommand(commandKey="user-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public BlackListItemResponse process(BlackListItemRequest blackListItemRequest)
      This service is used to search the user profile information of a particular collection either by applying filters or searching for all users irrespective of their status , type etc., within a range for the given page and size parameters.
      Specified by:
      process in interface com.skava.core.EcommService<BlackListItemRequest,BlackListItemResponse>
      Parameters:
      blackListItemRequest - Holds UserRequest object which is used to search the user details from database.
      Returns:
      The UserResponse object which returns the success response code and message on successful fetching of user details and if any validations fails, throws an validate exception.
    • search

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