Class CreateTeamServiceImpl

java.lang.Object
com.skava.accounts.service.impl.CreateTeamServiceImpl
All Implemented Interfaces:
CreateTeamService, com.skava.core.EcommService<TeamRequestInternal,TeamAPIResponse>

@Service public class CreateTeamServiceImpl extends Object implements CreateTeamService
The Class CreateTeamServiceImpl is used for creating team based on the provided information.
Author:
Infosys Equinox
  • Constructor Details

    • CreateTeamServiceImpl

      public CreateTeamServiceImpl()
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      Specified by:
      getValidator in interface com.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 interface com.skava.core.EcommService<TeamRequestInternal,TeamAPIResponse>
      Parameters:
      request - It contains the attributes required for the creation of Team.
      Returns:
      It returns the TeamAPIResponse.
    • create

      public TeamDO create(TeamDO teamDO, String locale, long collectionId)
      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 type TeamDO
      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. throws ValidateException if any validation error occurs.