Class JSONAPIResultFactory

java.lang.Object
org.alfresco.repo.search.impl.JSONAPIResultFactory

public class JSONAPIResultFactory extends Object
JSON API Results factory SOLR JSON responses are parsed according to required Action, Command or Handler
Since:
6.2
Author:
aborroy
  • Constructor Details

    • JSONAPIResultFactory

      public JSONAPIResultFactory()
  • Method Details

    • buildActionResult

      public static JSONAPIResult buildActionResult(JSONAPIResultFactory.ACTION action, org.json.JSONObject json)
      Build a JSON Parser Result object according to required SOLR Action
      Parameters:
      action - SOLR Action invoked
      json - Result in JSON of the SOLR Action invoked
      Returns:
      Throws:
      org.json.JSONException