Class UpdateAllUserRolesServiceImpl

java.lang.Object
com.skava.auth.service.impl.userrole.UpdateAllUserRolesServiceImpl
All Implemented Interfaces:
UpdateUserRolesService, com.skava.core.EcommService<UserRoleRequest,com.skava.core.ResponseModel>

@Service @Transactional(propagation=REQUIRED, readOnly=false, noRollbackFor=java.lang.Exception.class) public class UpdateAllUserRolesServiceImpl extends Object implements UpdateUserRolesService
This service class implements AddUserRoleService and handles the add user to role service request, process it and save the details in DB. It also implements business logic required to add user to requested role.
Version:
$Id: $Id
Author:
Infosys Equinox
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.MessageSource
    message source for localization
  • Constructor Summary

    Constructors
    Constructor
    Description
    The class constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.skava.core.validation.ValidatorComponent>
    This method return the list of validation components to validate the request of user's role update.
    com.skava.core.ResponseModel
    This method process the user's role update request and update the roles of the users whether given request is valid.

    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
  • Field Details

    • messageSource

      @Autowired protected org.springframework.context.MessageSource messageSource
      message source for localization
  • Constructor Details

    • UpdateAllUserRolesServiceImpl

      public UpdateAllUserRolesServiceImpl()
      The class constructor.
  • Method Details

    • process

      @SendEvent(eventType="authservice/userrole/update", identifier="request_userId") public com.skava.core.ResponseModel process(UserRoleRequest input)
      This method process the user's role update request and update the roles of the users whether given request is valid.
      Specified by:
      process in interface com.skava.core.EcommService<UserRoleRequest,com.skava.core.ResponseModel>
      Parameters:
      input - a UserRoleRequest object.
      Returns:
      a ResponseModel object.
    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method return the list of validation components to validate the request of user's role update.
      Specified by:
      getValidator in interface com.skava.core.EcommService<UserRoleRequest,com.skava.core.ResponseModel>
      Returns:
      a List of ValidatorComponent objects.