Package com.skava.service.impl
Class UserCheckCreateServiceImpl
java.lang.Object
com.skava.service.impl.UserCheckCreateServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<UserRequest,
,UserCreateResponse> UserCheckCreateService
@Service
@Transactional(noRollbackFor=MfaOtpException.class)
public class UserCheckCreateServiceImpl
extends Object
implements UserCheckCreateService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess
(@Valid UserRequest request) This method is used to create a new registered user or guest user.processRequest
(UserRequest request) Processes the user request and returns a UserCreateResponse.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
-
UserCheckCreateServiceImpl
public UserCheckCreateServiceImpl()Default Constructor.
-
-
Method Details
-
process
This method is used to create a new registered user or guest user. User is created based on the provided identity information and properties. User's identity are email and phone by default which are validated and uniqueness of the user is maintained within a collection. The user creation happens in two ways, one is direct user creation via registered process where use will be created in ACTIVE status. Another one is through invite user done by administrators where user will be created in NOT ACTIVATED status. User activation communication goes through email/phone, post successful validation user will be activated. Registered and Guest users are distinguished with the help of GUEST flag. Guest user will be created without having any profile information in the system with TYPE 2.- Specified by:
process
in interfacecom.skava.core.EcommService<UserRequest,
UserCreateResponse> - Parameters:
request
- HoldsUserRequest
object for creating an register user or guest user.- Returns:
- The
UserCreateResponse
object which returns the success response code and message and if any validations fails, throws an validate exception.
-
processRequest
Processes the user request and returns a UserCreateResponse.- Parameters:
request
- the UserRequest object containing the user information- Returns:
- the UserCreateResponse object
-