Guide - 7.10.38.9 Reworked ConfigurationROMapper for Configuration REST API

Table of Contents


Product Version

7.10.38.7-LTS

7.10.32.15-LTS

Product To Version

7.10
Status

Introduction

This migration guide applies for 7.10.38.9-LTS and 7.10.32.17-LTS.

The signature of the class com.intershop.sellside.rest.configuration.v1.internal.mapper.common.ConfigurationROMapper has changed. The class still extends the ExtensibleFunction class but its call parameters changed as follows:

Changes of ConfigurationROMapper class signature
// origin
public class ConfigurationROMapper extends ExtensibleFunction<ApplicationBO, ConfigurationRO>

// after rework
public class ConfigurationROMapper extends ExtensibleFunction<ApplicationBO, MethodInvocationResult<ConfigurationRO>>

Migration

If there is a customized extension of the ConfigurationROMapper, the signature of this class has to be adjusted:

Example of a customized extension of the ConfigurationROMapper
// origin
public class ConfigurationROExampleMapper implements FunctionExtension<ApplicationBO, ConfigurationRO>

// after rework
public class ConfigurationROExampleMapper implements FunctionExtension<ApplicationBO, MethodInvocationResult<ConfigurationRO>>

The type of the return value of the apply method must also be adapted:

Return value type changes of the apply method
public class ConfigurationROExampleMapper implements FunctionExtension<ApplicationBO, MethodInvocationResult<ConfigurationRO>>
{
	// origin
	@Override
	public ConfigurationRO apply(ApplicationBO source, ConfigurationRO target)

	// after rework
	@Override
	public MethodInvocationResult<ConfigurationRO> apply(ApplicationBO source, MethodInvocationResult<ConfigurationRO> target)
}

At least the binding entry in the Guice module has to be adjusted regarding the new signature.

Disclaimer

The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.

The Intershop Customer Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Customer Support
Knowledge Base
Product Resources