Class DeleteBlackListServiceImpl

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

@Service @Transactional(propagation=REQUIRED, readOnly=false) public class DeleteBlackListServiceImpl extends Object implements DeleteBlackListService
This service class implements DeactivateUserService and handles the deactivate user service request, process it and save the details in DB. It also implements business logic required to deactivate user.
Author:
Infosys Equinox
  • Constructor Details

    • DeleteBlackListServiceImpl

      @Autowired public DeleteBlackListServiceImpl(UserCommonServices userCommonServices)
  • Method Details

    • process

      @HystrixCommand(commandKey="user-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public BlackListItemResponse process(BlackListItemRequest request)
      This method is used to deactivate the requested user whose status will be changed to INACTIVE. Deactivated user cannot login to the system and cannot do any other actions.
      Specified by:
      process in interface com.skava.core.EcommService<BlackListItemRequest,BlackListItemResponse>
      Parameters:
      request - Holds BlackListItemRequest object which is used for deactivating the user.
      Returns:
      The BlackListItemResponse object which returns the success response code and message on successful deactivation and if any validations fails, throws an validate exception.