Class ImportProcessUtils
- java.lang.Object
-
- org.openbravo.service.importprocess.ImportProcessUtils
-
public class ImportProcessUtils extends Object
Utility methods used in the import process.- Author:
- mtaal
-
-
Constructor Summary
Constructors Constructor Description ImportProcessUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCheckIntProperty(org.apache.logging.log4j.Logger log, String property, int defaultValue, int minValue)
static String
getErrorMessage(Throwable e)
static int
getIntOpenbravoProperty(String propName, int defaultValue)
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.static List<String>
getOrderedTypesOfData()
static boolean
isImportProcessDisabled()
Returns true if the import.disable.process property is set to true, false otherwisestatic void
logError(org.apache.logging.log4j.Logger log, Throwable t)
-
-
-
Method Detail
-
isImportProcessDisabled
public static boolean isImportProcessDisabled()
Returns true if the import.disable.process property is set to true, false otherwise
-
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.
-
-