Class DefaultMapToIntegrationKeyValueGenerator
java.lang.Object
de.hybris.platform.integrationservices.integrationkey.impl.AbstractIntegrationKeyValueGenerator<TypeDescriptor,Map<String,Object>>
de.hybris.platform.integrationservices.integrationkey.impl.DefaultMapToIntegrationKeyValueGenerator
- All Implemented Interfaces:
IntegrationKeyValueGenerator<TypeDescriptor,Map<String, Object>>
public class DefaultMapToIntegrationKeyValueGenerator
extends AbstractIntegrationKeyValueGenerator<TypeDescriptor,Map<String,Object>>
Generates integration key value for a given
TypeDescriptor from the attribute values represented by a Map<String, Object>,
where the map key is the attribute name, and the map value is the corresponding attribute value.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(TypeDescriptor itemType, Map<String, Object> item) Generates a compound key value for a data structure that has one or several key attributes/properties.protected StringtransformValueToString(Object attributeValue) Implementations should transform a value into string representation.Methods inherited from class de.hybris.platform.integrationservices.integrationkey.impl.AbstractIntegrationKeyValueGenerator
encodeValue, getEncoding, setEncoding
-
Field Details
-
pattern
-
-
Constructor Details
-
DefaultMapToIntegrationKeyValueGenerator
public DefaultMapToIntegrationKeyValueGenerator()
-
-
Method Details
-
generate
Description copied from interface:IntegrationKeyValueGeneratorGenerates a compound key value for a data structure that has one or several key attributes/properties.- Parameters:
itemType- definition of the payload structure that can be used to determine which elements of the payload structure contain the key value(s).item- a data structure to generate the key value for.- Returns:
- integration key string representing the compound value of all key elements of the data structure
-
transformValueToString
Description copied from class:AbstractIntegrationKeyValueGeneratorImplementations should transform a value into string representation. For instance Date.- Specified by:
transformValueToStringin classAbstractIntegrationKeyValueGenerator<TypeDescriptor,Map<String, Object>> - Parameters:
attributeValue- the value to be converted.- Returns:
- The string representation
-