Document Tree
Document Properties
Kbid
30H687
Last Modified
13-Jan-2023
Added to KB
03-Jan-2023
Public Access
Everyone
Status
Online
Doc Type
Guidelines
Product
ICM 7.10
Guide - 7.10.38.9 Reworked ConfigurationROMapper for Configuration REST API

Table of Contents


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 Knowledge 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.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.