Implementing channel switching functionality for newly added travel types in Travel application.


26
views
0
12 weeks ago by
The following is a step-by-step guide that goes through the process of adding a new travel type to the channel switching functionality.

1. Go To \ClickPlatform\projects\travel-core\DomainServiceRuntimeConfiguration.java and create an @Autowire map object that will contain the credentials (which are stored in com.clicktravel.services.env.properties file in ClickDeployment) for the channels, used by the new travel type.

2. In \ClickPlatform\projects\travel open ChannelsConfigurationDBSync.java and locate its' getNewChannelsForTravelTypeConfiguration method. In here a new case needs to be implemented
that corresponds to the new travel type, similarly to the way other travel types have been implemented it should use the newly created map object.

3. Update the ChannelConfiguration CDM and its mappers to include a property of the new travel type.

4. Update the ChannelConfigurationQm and its mappers to include the channel options for the new travel type.

5. Update the ChannelConfigurationDto and its mappers to include the channel options for the new travel type.

6. Update the OverriddenChannelConfigurationDto and its mappers to include the channel options for the new travel type.

7. Update the OverriddenChannelConfigurationToQmMapper, OverriddenChannelConfigurationToDtoMapper, OverriddenChannelConfigurationDtoToDomainMapper, ChannelConfigurationToDtoMapper.

8. In DefaultChannelConfigurationQueryService.constructTeamChannelConfigurations add functionality for newly created travel type following the same logic as for the previous ones.

Similar posts:
Search »