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 Details

    • pattern

      protected static final Pattern pattern
  • Constructor Details

    • DefaultMapToIntegrationKeyValueGenerator

      public DefaultMapToIntegrationKeyValueGenerator()
  • Method Details

    • generate

      public String generate(TypeDescriptor itemType, Map<String,Object> item)
      Description copied from interface: IntegrationKeyValueGenerator
      Generates 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

      protected String transformValueToString(Object attributeValue)
      Description copied from class: AbstractIntegrationKeyValueGenerator
      Implementations should transform a value into string representation. For instance Date.
      Specified by:
      transformValueToString in class AbstractIntegrationKeyValueGenerator<TypeDescriptor,Map<String,Object>>
      Parameters:
      attributeValue - the value to be converted.
      Returns:
      The string representation