Class GetUserRolesServiceImpl

java.lang.Object
com.skava.auth.service.impl.userrole.GetUserRolesServiceImpl
All Implemented Interfaces:
GetUserRolesService, com.skava.core.EcommService<UserRoleRequest,UsersRolesResponse>

@Service @Transactional(readOnly=true, noRollbackFor=java.lang.Exception.class) public class GetUserRolesServiceImpl extends Object implements GetUserRolesService
This service class implements DeleteUserRolesService and handles the delete roles of the user.
Version:
$Id: $Id
Author:
Infosys Equinox
  • Constructor Details

    • GetUserRolesServiceImpl

      public GetUserRolesServiceImpl()
      The class constructor.
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      This method return the list of validation component.
      Specified by:
      getValidator in interface com.skava.core.EcommService<UserRoleRequest,UsersRolesResponse>
      Returns:
      a @List of ValidatorComponent objects.
    • process

      public UsersRolesResponse process(UserRoleRequest input)
      This method return the user's roles and privileges.
      Specified by:
      process in interface com.skava.core.EcommService<UserRoleRequest,UsersRolesResponse>
      Parameters:
      input - a UsersRoleRequest object.
      Returns:
      a ResponseModel object.
    • getUserRole

      public List<UserRole> getUserRole(Long userId, Long collectionId)
      This method is used to retrieve the roles of the user.
      Parameters:
      userId - a Long object.
      collectionId - a Long object.
      Returns:
      a List of UserRole objects.