Class DataDictionaryValidatorImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration>
com.flowable.platform.engine.impl.datadictionary.validation.DataDictionaryValidatorImpl
- All Implemented Interfaces:
DataDictionaryValidator
public class DataDictionaryValidatorImpl
extends CommonEngineServiceImpl<PlatformEngineConfiguration>
implements DataDictionaryValidator
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static enum
protected static class
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateValidationContext
(String variableName, String customTypeName, String type, Object value) protected static Object
extractValue
(Object object) protected boolean
isCollectionWithMap
(Object object) protected void
validate
(DataDictionaryValidatorImpl.ValidationContext context, DictionaryType dictionaryType, Object value) protected void
validate
(DataDictionaryValidatorImpl.ValidationContext context, TypeProperty typeProperty, Object value) validate
(DataDictionaryValidatorImpl.ValidationContext context, Collection<Constraint> constraints) validate
(String variableName, DictionaryType type, Object value) validate
(String variableName, TypeProperty type, Object value) protected void
validateProperties
(DataDictionaryValidatorImpl.ValidationContext context, Map<String, TypeProperty> properties, com.fasterxml.jackson.databind.JsonNode currentObject) protected boolean
validateTypeCompatibility
(String variableName, String customTypeName, String type, Object value) Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
DataDictionaryValidatorImpl
-
-
Method Details
-
validate
- Specified by:
validate
in interfaceDataDictionaryValidator
-
isCollectionWithMap
-
validate
- Specified by:
validate
in interfaceDataDictionaryValidator
-
createValidationContext
protected DataDictionaryValidatorImpl.ValidationContext createValidationContext(String variableName, String customTypeName, String type, Object value) -
validate
protected DataDictionaryValidatorImpl.TypeCompatibility validate(DataDictionaryValidatorImpl.ValidationContext context, Collection<Constraint> constraints) -
validate
protected void validate(DataDictionaryValidatorImpl.ValidationContext context, DictionaryType dictionaryType, Object value) -
validate
protected void validate(DataDictionaryValidatorImpl.ValidationContext context, TypeProperty typeProperty, Object value) -
validateProperties
protected void validateProperties(DataDictionaryValidatorImpl.ValidationContext context, Map<String, TypeProperty> properties, com.fasterxml.jackson.databind.JsonNode currentObject) -
validateTypeCompatibility
public ValidationResult validateTypeCompatibility(String variableName, String customTypeName, String type, Object value) - Specified by:
validateTypeCompatibility
in interfaceDataDictionaryValidator
-
validateTypeCompatibility
- Returns:
- true in case type is compatible, otherwise returns false and adds validation error to the context
-
extractValue
-