Package com.skava.accounts.service.impl
Class CreateTeamServiceImpl
java.lang.Object
com.skava.accounts.service.impl.CreateTeamServiceImpl
- All Implemented Interfaces:
CreateTeamService
,com.skava.core.EcommService<TeamRequestInternal,
TeamAPIResponse>
The Class CreateTeamServiceImpl is used for creating team based on the provided information.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method is used to create Team based on given Team Request parameters.List<com.skava.core.validation.ValidatorComponent>
process
(TeamRequestInternal request) This method is used to create Team based on given Team.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
-
Constructor Details
-
CreateTeamServiceImpl
public CreateTeamServiceImpl()
-
-
Method Details
-
getValidator
- Specified by:
getValidator
in interfacecom.skava.core.EcommService<TeamRequestInternal,
TeamAPIResponse>
-
process
@SendEvent(eventType="accountservice/team/create", identifier="response_team.id") public TeamAPIResponse process(TeamRequestInternal request) This method is used to create Team based on given Team.- Specified by:
process
in interfacecom.skava.core.EcommService<TeamRequestInternal,
TeamAPIResponse> - Parameters:
request
- It contains the attributes required for the creation of Team.- Returns:
- It returns the
TeamAPIResponse
.
-
create
This method is used to create Team based on given Team Request parameters. The status given in the request is validated and only if its valid the Team is created.- Parameters:
teamDO
- It contains the attributes required for the creation of Team. It is of typeTeamDO
locale
- API Response and error messages will be responded in API Response and error messages will be responded in the locale mentioned in this parameter. mentioned in this parameter.collectionId
- contains valid collectionId- Returns:
- It returns the object of type
TeamDO
. throwsValidateException
if any validation error occurs.
-