java.lang.Object
org.alfresco.repo.search.impl.elasticsearch.contentmodelsync.utils.SettingsJsonUtils

public class SettingsJsonUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static boolean
    keyExists(org.json.JSONObject jsonToSearch, String searchedKey)
     
    static void
    validate(org.json.JSONObject jsonWithAnalyzersSettings, List<String> mandatoryAttributes)
    Simple check if the key exists, no matter on which level

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static boolean keyExists(org.json.JSONObject jsonToSearch, String searchedKey)
    • 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: