java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.utility.EditorValidator

public final class EditorValidator extends Object
  • Method Details

    • validateDefinitions

      public static String validateDefinitions(IntegrationObjectDefinition definitionMap)
      Validates that each IntegrationObjectItem contains at least one defined attribute.
      Parameters:
      definitionMap - The map to be evaluated.
      Returns:
      The name of the IntegrationObjectItem that is missing a definition.
    • validateHasKey

      public static String validateHasKey(IntegrationObjectDefinition definitionMap)
      Validates that each IntegrationObjectItem contains at least one attribute marked as unique.
      Parameters:
      definitionMap - The map to be evaluated
      Returns:
      The name of the IntegrationObjectItem that is missing a unique attribute.
    • validateHasNoDuplicateAttributeNames

      public static String validateHasNoDuplicateAttributeNames(IntegrationObjectDefinitionDuplicationMap duplicationMap)
      Validates whether there are two or more attributes under the same composed with the same name. Duplications are not allowed and must be either renamed or excluded from the definition before persistence can occur.
      Parameters:
      duplicationMap - Map containing duplicate attributes, will be empty if no duplications are present
      Returns:
      Name(s) of Composed types that contain duplicate attribute names