Class SettingsJsonUtils
java.lang.Object
org.alfresco.repo.search.impl.elasticsearch.contentmodelsync.utils.SettingsJsonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.json.JSONObjectdeepMergeMultipleJSONs(org.json.JSONObject... toMerge) The last argument takes precedence according to the rules mentioned in the deepMerge(JSONObject source, JSONObject target) method.static booleanstatic voidSimple check if the key exists, no matter on which level
-
Constructor Details
-
SettingsJsonUtils
public SettingsJsonUtils()
-
-
Method Details
-
validate
public static void validate(org.json.JSONObject jsonWithAnalyzersSettings, List<String> mandatoryAttributes) throws IOException Simple check if the key exists, no matter on which level- Parameters:
jsonWithAnalyzersSettings-mandatoryAttributes-- Throws:
IOException
-
keyExists
-
deepMergeMultipleJSONs
public static org.json.JSONObject deepMergeMultipleJSONs(org.json.JSONObject... toMerge) The last argument takes precedence according to the rules mentioned in the deepMerge(JSONObject source, JSONObject target) method.- Parameters:
toMerge-- Returns:
-