Class ExpEditorUtils


  • public class ExpEditorUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpEditorUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getEventProperty​(java.lang.String eventName)
      Returns secure event name from the map SECURE_EVENT_PROPERTY_MAPPING
      static JSONObject getEventsObject​(JsonNode scriptsNode)
      Returns events JSONObject having secured eventName and script model
      static java.lang.String getScriptModel​(java.lang.String script, java.lang.String eventName)
      Return script model from script and eventName
      • Methods inherited from class java.lang.Object

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

      • ExpEditorUtils

        public ExpEditorUtils()
    • Method Detail

      • getEventsObject

        public static JSONObject getEventsObject​(JsonNode scriptsNode)
                                          throws JSONException
        Returns events JSONObject having secured eventName and script model
        Parameters:
        scriptsNode - jsonNode for events provided thorugh json schema
        Returns:
        events JSONObject having secured eventName and script model
        Throws:
        JSONException
      • getScriptModel

        public static java.lang.String getScriptModel​(java.lang.String script,
                                                      java.lang.String eventName)
        Return script model from script and eventName
        Parameters:
        script - : script provided through json Schema
        eventName - : event provided through json Schema
        Returns:
        scriptModel for the provided script and eventName
      • getEventProperty

        public static java.lang.String getEventProperty​(java.lang.String eventName)
        Returns secure event name from the map SECURE_EVENT_PROPERTY_MAPPING
        Parameters:
        eventName - : provided in the jsonSchema
        Returns:
        secure event name from SECURE_EVENT_PROPERTY_MAPPING