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
|
execute
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
protected void authenticate(CallbackContext callbackContext) throws JSONException
callbackContext
- Used when calling back into Javascript.JSONException
protected void getAuthCredentials(CallbackContext callbackContext) throws JSONException
callbackContext
- Used when calling back into Javascript.JSONException
protected void getAppHomeUrl(CallbackContext callbackContext)
callbackContext
- Used when calling back into Javascript.protected void logoutCurrentUser(CallbackContext callbackContext)
callbackContext
- Used when calling back into Javascript.