Modifier and Type | Method and Description |
---|---|
UserAccount |
UserAccountManager.buildUserAccount(Account account)
Builds a UserAccount object from the saved account.
|
UserAccount |
UserAccountManager.getCachedCurrentUser()
Returns a cached value of the current user.
|
UserAccount |
UserAccountManager.getCurrentUser()
Returns the current user logged in.
|
UserAccount |
UserAccountManager.getUserFromOrgAndUserId(java.lang.String orgId,
java.lang.String userId)
Retrieves a stored user account from org ID and user ID.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<UserAccount> |
UserAccountManager.getAuthenticatedUsers()
Returns a list of authenticated users.
|
Modifier and Type | Method and Description |
---|---|
Account |
UserAccountManager.buildAccount(UserAccount userAccount)
Builds an Account object from the user account passed in.
|
Bundle |
UserAccountManager.createAccount(UserAccount userAccount)
Create AccountManager Account from the given UserAccount
|
boolean |
UserAccountManager.doesUserAccountExist(UserAccount account)
Returns whether the specified user account exists or not.
|
void |
UserAccountManager.refreshToken(UserAccount userAccount)
Attempts to refresh the access token for this user by making an API call
to the "/token" endpoint.
|
void |
UserAccountManager.signoutUser(UserAccount userAccount,
Activity frontActivity)
Logs the specified user out.
|
void |
UserAccountManager.signoutUser(UserAccount userAccount,
Activity frontActivity,
boolean showLoginPage)
Logs the specified user out.
|
void |
UserAccountManager.signoutUser(UserAccount userAccount,
Activity frontActivity,
boolean showLoginPage,
OAuth2.LogoutReason reason)
Logs the specified user out.
|
void |
UserAccountManager.switchToUser(UserAccount user)
Switches to the specified user account.
|
void |
UserAccountManager.switchToUser(UserAccount user,
int userSwitchType,
Bundle extras)
Switches to the specified user account.
|
Bundle |
UserAccountManager.updateAccount(Account account,
UserAccount userAccount)
Update AccountManager Account for the given UserAccount
|
Modifier and Type | Method and Description |
---|---|
static void |
EventBuilderHelper.createAndStoreEvent(java.lang.String name,
UserAccount userAccount,
java.lang.String className,
JSONObject attributes)
Creates and stores an analytics event with the supplied parameters.
|
static void |
EventBuilderHelper.createAndStoreEventSync(java.lang.String name,
UserAccount userAccount,
java.lang.String className,
JSONObject attributes)
Creates and stores an analytics event with the supplied parameters.
|
static SalesforceAnalyticsManager |
SalesforceAnalyticsManager.getInstance(UserAccount account)
Returns the instance of this class associated with this user account.
|
static SalesforceAnalyticsManager |
SalesforceAnalyticsManager.getInstance(UserAccount account,
java.lang.String communityId)
Returns the instance of this class associated with this user and community.
|
static void |
SalesforceAnalyticsManager.reset(UserAccount account)
Resets the instance of this class associated with this user account.
|
static void |
SalesforceAnalyticsManager.reset(UserAccount account,
java.lang.String communityId)
Resets the instance of this class associated with this user and community.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
AbstractPrefsManager.getPref(java.lang.String key,
UserAccount account)
Returns the pref value for the specified key, for a user account.
|
java.util.Map<java.lang.String,java.lang.String> |
AbstractPrefsManager.getPrefs(UserAccount account)
Returns all the prefs for a user account.
|
void |
AbstractPrefsManager.reset(UserAccount account)
Clears the stored prefs for the specified user.
|
void |
AbstractPrefsManager.setPrefs(JSONObject attribs,
UserAccount account)
Sets the prefs for the specified user account.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MobileSyncSDKManager.cleanUp(UserAccount userAccount) |
Modifier and Type | Method and Description |
---|---|
static void |
RestClient.clearCaches(UserAccount userAccount)
Remove cached OkHttpClient.Builder, OkHttpClient and OAuthRefreshInterceptor for the given user
|
Bundle |
ClientManager.createNewAccount(UserAccount userAccount)
Creates a new account and returns the parameters as a Bundle.
|
RestClient |
ClientManager.peekRestClient(UserAccount user)
Method to create RestClient synchronously.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SmartStoreSDKManager.cleanUp(UserAccount userAccount) |
KeyValueEncryptedFileStore |
SmartStoreSDKManager.getKeyValueStore(java.lang.String storeName,
UserAccount account)
Get key value store with given name for given user
|
KeyValueEncryptedFileStore |
SmartStoreSDKManager.getKeyValueStore(java.lang.String storeName,
UserAccount account,
java.lang.String communityId)
Get key value store with given name for given user / community
|
java.util.List<java.lang.String> |
SmartStoreSDKManager.getKeyValueStoresPrefixList(UserAccount account)
Returns a list of key value store names for given user.
|
SmartStore |
SmartStoreSDKManager.getSmartStore(java.lang.String dbNamePrefix,
UserAccount account,
java.lang.String communityId)
Returns the database used by smart store for a specified database name and
user in the specified community.
|
SmartStore |
SmartStoreSDKManager.getSmartStore(UserAccount account)
Returns the database used by smart store for a specified user.
|
SmartStore |
SmartStoreSDKManager.getSmartStore(UserAccount account,
java.lang.String communityId)
Returns the database used by smart store for a specified user in the
specified community.
|
java.util.List<java.lang.String> |
SmartStoreSDKManager.getUserStoresPrefixList(UserAccount account)
Returns a list of store names for given user.
|
boolean |
SmartStoreSDKManager.hasKeyValueStore(java.lang.String storeName,
UserAccount account)
Return whether there is a key value store with given name for given user
|
boolean |
SmartStoreSDKManager.hasKeyValueStore(java.lang.String storeName,
UserAccount account,
java.lang.String communityId)
Return whether there is a key value store with given name for given user / community id
|
boolean |
SmartStoreSDKManager.hasSmartStore(java.lang.String dbNamePrefix,
UserAccount account,
java.lang.String communityId)
Returns whether smart store is enabled for the specified database or not.
|
boolean |
SmartStoreSDKManager.hasSmartStore(UserAccount account)
Returns whether smart store is enabled for the specified user or not.
|
boolean |
SmartStoreSDKManager.hasSmartStore(UserAccount account,
java.lang.String communityId)
Returns whether smart store is enabled for the specified community or not.
|
void |
SmartStoreSDKManager.removeAllKeyValueStores(UserAccount account)
Removes all the key value stores for given user.
|
void |
SmartStoreSDKManager.removeAllUserStores(UserAccount account)
Removes all the stores for current user.
|
void |
SmartStoreSDKManager.removeKeyValueStore(java.lang.String storeName,
UserAccount account)
Remove key value store with given name for given user
|
void |
SmartStoreSDKManager.removeKeyValueStore(java.lang.String storeName,
UserAccount account,
java.lang.String communityId)
Remove key value store with given name for given user / community id
|
void |
SmartStoreSDKManager.removeSmartStore(java.lang.String dbNamePrefix,
UserAccount account,
java.lang.String communityId)
Removes the named smart store for the specified user and community.
|
void |
SmartStoreSDKManager.removeSmartStore(UserAccount account)
Removes the default smart store for the specified user.
|
void |
SmartStoreSDKManager.removeSmartStore(UserAccount account,
java.lang.String communityId)
Removes the default smart store for the specified user and community.
|
Modifier and Type | Method and Description |
---|---|
static void |
DBOpenHelper.deleteAllDatabases(Context ctx,
UserAccount userAccount)
Deletes all databases of given user.
|
static void |
DBOpenHelper.deleteDatabase(Context ctx,
java.lang.String dbNamePrefix,
UserAccount account,
java.lang.String communityId)
Deletes the underlying database for the specified user and community.
|
static void |
DBOpenHelper.deleteDatabase(Context ctx,
UserAccount account)
Deletes the underlying database for the specified user account.
|
static void |
DBOpenHelper.deleteDatabase(Context ctx,
UserAccount account,
java.lang.String communityId)
Deletes the underlying database for the specified user and community.
|
static java.util.List<java.lang.String> |
DBOpenHelper.getGlobalDatabasePrefixList(Context ctx,
UserAccount account,
java.lang.String communityId)
Returns a list of all prefixes for user databases.
|
static DBOpenHelper |
DBOpenHelper.getOpenHelper(java.lang.String encryptionKey,
Context ctx,
java.lang.String dbNamePrefix,
UserAccount account,
java.lang.String communityId)
Returns the DBOpenHelper instance for the given database name.
|
static DBOpenHelper |
DBOpenHelper.getOpenHelper(java.lang.String encryptionKey,
Context ctx,
UserAccount account)
Returns the DBOpenHelper instance associated with this user account.
|
static DBOpenHelper |
DBOpenHelper.getOpenHelper(java.lang.String encryptionKey,
Context ctx,
UserAccount account,
java.lang.String communityId)
Returns the DBOpenHelper instance associated with this user and community.
|
static java.util.List<java.lang.String> |
DBOpenHelper.getUserDatabasePrefixList(Context ctx,
UserAccount account,
java.lang.String communityId)
Returns a list of all prefixes for user databases.
|
void |
DBHelper.reset(Context ctx,
UserAccount account)
Resets all cached data and deletes the database for the specified user.
|
static boolean |
DBOpenHelper.smartStoreExists(Context ctx,
java.lang.String dbNamePrefix,
UserAccount account,
java.lang.String communityId)
Determines if a smart store currently exists for the given database name, account
and/or community id.
|
static boolean |
DBOpenHelper.smartStoreExists(Context ctx,
UserAccount account,
java.lang.String communityId)
Determines if a smart store currently exists for the given account and/or community id.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<UserAccount> |
AccountSwitcherActivity.getAccounts()
Returns the list of user accounts to display.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AccountSwitcherActivity.accountSelected(UserAccount account)
Performs the account switch operation.
|
void |
AccountSwitcherActivity.switchToExistingAccount(UserAccount account)
This method is triggered when a user is selected from the list.
|
Constructor and Description |
---|
UserAccountAdapter(Context context,
int resource,
UserAccount[] accounts)
Parameterized constructor.
|