Class SystemConfigurerUtils

java.lang.Object
com.flowable.platform.service.configuration.service.SystemConfigurerUtils

public class SystemConfigurerUtils extends Object
Author:
Filip Hrisafov
  • Constructor Details

    • SystemConfigurerUtils

      public SystemConfigurerUtils()
  • Method Details

    • applyValueIfNotNull

      public static <T> void applyValueIfNotNull(T value, Consumer<T> consumer)
    • applyValueIfNotNull

      public static <T, R> void applyValueIfNotNull(T value, Function<T,R> mapper, Consumer<R> consumer)
    • asDuration

      public static Duration asDuration(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration)
    • asMillisFromDuration

      public static Long asMillisFromDuration(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration)
    • asSecondsFromDuration

      public static Long asSecondsFromDuration(String fieldName, com.fasterxml.jackson.databind.node.ObjectNode configuration)
    • asInteger

      public static Integer asInteger(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration)
    • asInteger

      public static Integer asInteger(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration, Integer defaultValue)
    • asBoolean

      public static Boolean asBoolean(String fieldName, com.fasterxml.jackson.databind.JsonNode configuration)
    • validateDurationField

      public static Duration validateDurationField(String fieldName, com.fasterxml.jackson.databind.JsonNode fieldValue)
    • 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

      public static void validatePositive(String fieldName, int number)