public class SFAccountManagerPlugin extends ForcePlugin
Constructor and Description |
---|
SFAccountManagerPlugin() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
Abstract method to concrete subclass need to implement
|
protected void |
getCurrentUser(CallbackContext callbackContext)
Native implementation for the 'getCurrentUser' action.
|
protected void |
getUsers(CallbackContext callbackContext)
Native implementation for the 'getUsers' action.
|
protected void |
logout(JSONArray args,
CallbackContext callbackContext)
Native implementation for the 'logout' action.
|
protected void |
switchToUser(JSONArray args,
CallbackContext callbackContext)
Native implementation for the 'switchToUser' action.
|
execute
protected 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
protected void getUsers(CallbackContext callbackContext)
callbackContext
- Used when calling back into Javascript.protected void getCurrentUser(CallbackContext callbackContext)
callbackContext
- Used when calling back into Javascript.protected void logout(JSONArray args, CallbackContext callbackContext)
args
- Arguments passed in, namely the account to logout of.callbackContext
- Used when calling back into Javascript.protected void switchToUser(JSONArray args, CallbackContext callbackContext)
args
- Arguments passed in, namely the account to switch to.callbackContext
- Used when calling back into Javascript.