Class EditorValidator
java.lang.Object
de.hybris.platform.integrationbackoffice.widgets.modeling.utility.EditorValidator
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringvalidateDefinitions(IntegrationObjectDefinition definitionMap) Validates that each IntegrationObjectItem contains at least one defined attribute.static StringvalidateHasKey(IntegrationObjectDefinition definitionMap) Validates that each IntegrationObjectItem contains at least one attribute marked as unique.static StringValidates whether there are two or more attributes under the same composed with the same name.
-
Method Details
-
validateDefinitions
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
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
-