Package com.adobe.aemds.guide.utils
Class ExpEditorUtils
- java.lang.Object
 - 
- com.adobe.aemds.guide.utils.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.StringgetEventProperty(java.lang.String eventName)Returns secure event name from the map SECURE_EVENT_PROPERTY_MAPPINGstatic JSONObjectgetEventsObject(JsonNode scriptsNode)Returns events JSONObject having secured eventName and script modelstatic java.lang.StringgetScriptModel(java.lang.String script, java.lang.String eventName)Return script model from script and eventName 
 - 
 
- 
- 
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 SchemaeventName- : 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
 
 
 - 
 
 -