Package com.skava.service.impl
Class SendActivationServiceImpl
java.lang.Object
com.skava.service.impl.SendActivationServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<UserActivationRequest,
,UsersResponse> SendActivationService
@Service
@Transactional
public class SendActivationServiceImpl
extends Object
implements SendActivationService
This service class implements SendActivationService and handles the send activation service request, process it
and save the details in DB. It also implements business logic required to send notification request.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this send activation service.methodFallback
(UserActivationRequest request) Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly - Method fallback.process
(@Valid UserActivationRequest request) This service is used to generate an activation param for users who are not in ACTIVE status.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
-
SendActivationServiceImpl
public SendActivationServiceImpl()Default Constructor
-
-
Method Details
-
process
@SendEvent(eventType="userservice/activation/create", identifier="response_users.id") @HystrixCommand(commandKey="user-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public UsersResponse process(@Valid @Valid UserActivationRequest request) This service is used to generate an activation param for users who are not in ACTIVE status.- Specified by:
process
in interfacecom.skava.core.EcommService<UserActivationRequest,
UsersResponse> - Parameters:
request
- HoldsUserActivationRequest
object for deactivating the user.- Returns:
- The
UsersResponse
which returns the success. response code and message on success of sending activation param to that particular identity and if any validations fails, throws an validate exception.
-
methodFallback
Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly - Method fallback.- Parameters:
request
- HoldsUserActivationRequest
object.- Returns:
- The
UsersResponse
object.
-
getValidator
This method is used to get the respective validator class for this send activation service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<UserActivationRequest,
UsersResponse> - Returns:
- The list of
ValidatorComponent
object.
-