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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.MessageSource
message source for localization -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<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
process
(UserRoleRequest input) 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 messageSourcemessage 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 interfacecom.skava.core.EcommService<UserRoleRequest,
com.skava.core.ResponseModel> - Parameters:
input
- aUserRoleRequest
object.- Returns:
- a
ResponseModel
object.
-
getValidator
This method return the list of validation components to validate the request of user's role update.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<UserRoleRequest,
com.skava.core.ResponseModel> - Returns:
- a
List
ofValidatorComponent
objects.
-