public class SalesforceOAuthPlugin extends ForcePlugin
| Constructor and Description |
|---|
SalesforceOAuthPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticate(CallbackContext callbackContext)
Native implementation for "authenticate" action
|
boolean |
execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
Abstract method to concrete subclass need to implement
|
protected void |
getAppHomeUrl(CallbackContext callbackContext)
Native implementation for getAppHomeUrl
|
protected void |
getAuthCredentials(CallbackContext callbackContext)
Native implementation for "getAuthCredentials" action.
|
protected void |
logoutCurrentUser(CallbackContext callbackContext)
Native implementation for "logout" action
|
executepublic boolean execute(java.lang.String actionStr,
JavaScriptPluginVersion jsVersion,
JSONArray args,
CallbackContext callbackContext)
throws JSONException
ForcePluginexecute in class ForcePluginactionStr - The action to executeargs - JSONArray of arguments for the plugin.callbackContext - Used when calling back into Javascript.JSONExceptionprotected void authenticate(CallbackContext callbackContext)
throws JSONException
callbackContext - Used when calling back into Javascript.JSONExceptionprotected void getAuthCredentials(CallbackContext callbackContext)
throws JSONException
callbackContext - Used when calling back into Javascript.JSONExceptionprotected void getAppHomeUrl(CallbackContext callbackContext)
callbackContext - Used when calling back into Javascript.protected void logoutCurrentUser(CallbackContext callbackContext)
callbackContext - Used when calling back into Javascript.