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 Details

    • UserCheckCreateServiceImpl

      public UserCheckCreateServiceImpl()
      Default Constructor.
  • Method Details

    • process

      public UserCreateResponse process(@Valid @Valid UserRequest request)
      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 interface com.skava.core.EcommService<UserRequest,UserCreateResponse>
      Parameters:
      request - Holds UserRequest 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

      public UserCreateResponse processRequest(UserRequest request)
      Processes the user request and returns a UserCreateResponse.
      Parameters:
      request - the UserRequest object containing the user information
      Returns:
      the UserCreateResponse object