Class TemplateJsonHelper


  • public class TemplateJsonHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void flagTask​(com.fasterxml.jackson.databind.node.ObjectNode task, java.lang.String warningMessage)  
      static void flagTask​(org.codehaus.jettison.json.JSONObject task, java.lang.String warningMessage)  
      static java.util.List<org.codehaus.jettison.json.JSONObject> getDashboardsFromRelease​(org.codehaus.jettison.json.JSONObject releaseJson)  
      static com.fasterxml.jackson.databind.node.ObjectNode getPhase​(com.fasterxml.jackson.databind.node.ObjectNode taskJson, com.fasterxml.jackson.databind.node.ObjectNode releaseJson)  
      static org.codehaus.jettison.json.JSONObject getPhase​(org.codehaus.jettison.json.JSONObject taskJson, org.codehaus.jettison.json.JSONObject releaseJson)  
      static java.util.List<com.fasterxml.jackson.databind.node.ObjectNode> getTasksFromRelease​(com.fasterxml.jackson.databind.node.ObjectNode releaseJson)  
      static java.util.List<org.codehaus.jettison.json.JSONObject> getTasksFromRelease​(org.codehaus.jettison.json.JSONObject releaseJson)  
      static boolean isCustomScriptTask​(org.codehaus.jettison.json.JSONObject task)  
      static void resetToManualTask​(org.codehaus.jettison.json.JSONObject task)  
      static boolean typeNotFound​(com.fasterxml.jackson.databind.node.ObjectNode pythonScript)  
      static boolean typeNotFound​(org.codehaus.jettison.json.JSONObject pythonScript)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemplateJsonHelper

        public TemplateJsonHelper()
    • Method Detail

      • isCustomScriptTask

        public static boolean isCustomScriptTask​(org.codehaus.jettison.json.JSONObject task)
                                          throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • typeNotFound

        public static boolean typeNotFound​(org.codehaus.jettison.json.JSONObject pythonScript)
                                    throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • typeNotFound

        public static boolean typeNotFound​(com.fasterxml.jackson.databind.node.ObjectNode pythonScript)
      • resetToManualTask

        public static void resetToManualTask​(org.codehaus.jettison.json.JSONObject task)
                                      throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • flagTask

        public static void flagTask​(org.codehaus.jettison.json.JSONObject task,
                                    java.lang.String warningMessage)
                             throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • flagTask

        public static void flagTask​(com.fasterxml.jackson.databind.node.ObjectNode task,
                                    java.lang.String warningMessage)
      • getTasksFromRelease

        public static java.util.List<org.codehaus.jettison.json.JSONObject> getTasksFromRelease​(org.codehaus.jettison.json.JSONObject releaseJson)
                                                                                         throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • getTasksFromRelease

        public static java.util.List<com.fasterxml.jackson.databind.node.ObjectNode> getTasksFromRelease​(com.fasterxml.jackson.databind.node.ObjectNode releaseJson)
      • getDashboardsFromRelease

        public static java.util.List<org.codehaus.jettison.json.JSONObject> getDashboardsFromRelease​(org.codehaus.jettison.json.JSONObject releaseJson)
                                                                                              throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • getPhase

        public static org.codehaus.jettison.json.JSONObject getPhase​(org.codehaus.jettison.json.JSONObject taskJson,
                                                                     org.codehaus.jettison.json.JSONObject releaseJson)
                                                              throws org.codehaus.jettison.json.JSONException
        Throws:
        org.codehaus.jettison.json.JSONException
      • getPhase

        public static com.fasterxml.jackson.databind.node.ObjectNode getPhase​(com.fasterxml.jackson.databind.node.ObjectNode taskJson,
                                                                              com.fasterxml.jackson.databind.node.ObjectNode releaseJson)