Package com.skava.service.impl
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 Summary
ConstructorsConstructorDescriptionFindAllBlackListItemServiceImpl
(UserCommonServices userCommonServices, BlackListedItemsRepository blackListedItemsRepository) The class constructor. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(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.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.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, getValidator
-
Constructor Details
-
FindAllBlackListItemServiceImpl
@Autowired public FindAllBlackListItemServiceImpl(UserCommonServices userCommonServices, BlackListedItemsRepository blackListedItemsRepository) The class constructor.
-
-
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 interfacecom.skava.core.EcommService<BlackListItemRequest,
BlackListItemResponse> - Parameters:
blackListItemRequest
- HoldsUserRequest
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
ofCollectionEntity
object.
-