Class AddRolesToClientsServiceImpl
java.lang.Object
com.skava.auth.service.impl.clientrole.AddRolesToClientsServiceImpl
- All Implemented Interfaces:
AddRolesToClientsService
,com.skava.core.EcommService<AddRolesToClientsRequest,
com.skava.core.ResponseModel>
@Service
public class AddRolesToClientsServiceImpl
extends Object
implements AddRolesToClientsService
This service class implements AddRolesToClientsService and handles the add client to role service request,
process it and save the details in DB. It also implements business logic required to add client to requested role.
- Version:
- $Id: $Id
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.MessageSource
message source for message localization. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.skava.core.ResponseModel
process
(AddRolesToClientsRequest input) This method process the client's role addition request and adds roles to clients whether given request is valid.saveAllClientAttribute
(List<ClientRole> clientRoles) This method saves the all the client role details into the database.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
-
Field Details
-
messageSource
@Autowired protected org.springframework.context.MessageSource messageSourcemessage source for message localization.
-
-
Constructor Details
-
AddRolesToClientsServiceImpl
public AddRolesToClientsServiceImpl()The class constructor.
-
-
Method Details
-
process
@SendEvent(eventType="authservice/clientrole/create", identifier="request_clientRoles.clientId") public com.skava.core.ResponseModel process(AddRolesToClientsRequest input) This method process the client's role addition request and adds roles to clients whether given request is valid.- Specified by:
process
in interfacecom.skava.core.EcommService<AddRolesToClientsRequest,
com.skava.core.ResponseModel> - Parameters:
input
- aAddRolesToClientsRequest
object.- Returns:
- a
ResponseModel
object.
-
saveAllClientAttribute
This method saves the all the client role details into the database.- Parameters:
clientRoles
- aList
ofClientRole
objects.- Returns:
- a
List
ofClientRole
objects.
-