Class ImportProcessUtils


  • public class ImportProcessUtils
    extends Object
    Utility methods used in the import process.
    Author:
    mtaal
    • Constructor Detail

      • ImportProcessUtils

        public ImportProcessUtils()
    • Method Detail

      • isImportProcessDisabled

        public static boolean isImportProcessDisabled()
        Returns true if the import.disable.process property is set to true, false otherwise
      • getOrderedTypesOfData

        public static List<String> getOrderedTypesOfData()
      • getCheckIntProperty

        public static int getCheckIntProperty​(org.apache.logging.log4j.Logger log,
                                              String property,
                                              int defaultValue,
                                              int minValue)
      • getIntOpenbravoProperty

        public static int getIntOpenbravoProperty​(String propName,
                                                  int defaultValue)
      • logError

        public static void logError​(org.apache.logging.log4j.Logger log,
                                    Throwable t)
      • getJSONProperty

        public static String getJSONProperty​(org.codehaus.jettison.json.JSONObject jsonObject,
                                             String property)
        Data send from clients can contain a single data element or be an array. If it is an array then the first entry in the array is used to find the value of the property. If the property can not be found then null is returned.