Package com.skava.service.impl
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess
(BlackListItemRequest request) This method is used to deactivate the requested user whose status will be changed to INACTIVE.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
-
DeleteBlackListServiceImpl
-
-
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 interfacecom.skava.core.EcommService<BlackListItemRequest,
BlackListItemResponse> - Parameters:
request
- HoldsBlackListItemRequest
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.
-