Class SystemConfigurerUtils
java.lang.Object
com.flowable.platform.service.configuration.service.SystemConfigurerUtils
- Author:
- Filip Hrisafov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
applyValueIfNotNull
(T value, Consumer<T> consumer) static <T,
R> void applyValueIfNotNull
(T value, Function<T, R> mapper, Consumer<R> consumer) static Boolean
static Duration
asDuration
(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration) static Integer
static Integer
asInteger
(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration, Integer defaultValue) static Long
asMillisFromDuration
(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration) static Long
asSecondsFromDuration
(String fieldName, com.fasterxml.jackson.databind.node.ObjectNode configuration) static boolean
validateBooleanField
(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) static Duration
validateDurationField
(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) static int
validateIntegerField
(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) static void
validatePositive
(String fieldName, int number)
-
Constructor Details
-
SystemConfigurerUtils
public SystemConfigurerUtils()
-
-
Method Details
-
applyValueIfNotNull
-
applyValueIfNotNull
-
asDuration
-
asMillisFromDuration
-
asSecondsFromDuration
-
asInteger
-
asInteger
-
asBoolean
-
validateDurationField
-
validateIntegerField
public static int validateIntegerField(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) -
validateBooleanField
public static boolean validateBooleanField(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) -
validatePositive
-