public class SmartStorePlugin extends ForcePlugin
Constructor and Description |
---|
SmartStorePlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
Abstract method to concrete subclass need to implement
|
static boolean |
getIsGlobal(JSONObject arg0)
Return the value of the isGlobalStore argument
|
static SmartStore |
getSmartStore(JSONObject arg0)
Return smartstore to use
|
static java.lang.String |
getStoreName(JSONObject arg0)
Return the value of the storename argument
|
protected static void |
setUseQueryAsString(boolean b) |
execute
protected static void setUseQueryAsString(boolean b)
public boolean execute(java.lang.String actionStr, JavaScriptPluginVersion jsVersion, JSONArray args, CallbackContext callbackContext) throws JSONException
ForcePlugin
execute
in class ForcePlugin
actionStr
- The action to executeargs
- JSONArray of arguments for the plugin.callbackContext
- Used when calling back into Javascript.JSONException
public static SmartStore getSmartStore(JSONObject arg0) throws java.lang.Exception
arg0
- first argument passed in plugin calljava.lang.Exception
public static boolean getIsGlobal(JSONObject arg0)
arg0
- public static java.lang.String getStoreName(JSONObject arg0)
arg0
-