Class SystemConfigurerUtils
java.lang.Object
com.flowable.platform.service.configuration.service.SystemConfigurerUtils
- Author:
- Filip Hrisafov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidapplyValueIfNotNull(T value, Consumer<T> consumer) static <T,R> void applyValueIfNotNull(T value, Function<T, R> mapper, Consumer<R> consumer) static Booleanstatic DurationasDuration(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration) static Integerstatic IntegerasInteger(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration, Integer defaultValue) static LongasMillisFromDuration(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration) static LongasSecondsFromDuration(String fieldName, com.fasterxml.jackson.databind.node.ObjectNode configuration) static booleanvalidateBooleanField(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) static DurationvalidateDurationField(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) static intvalidateIntegerField(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue) static voidvalidatePositive(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
-