public interface UserAccountProvider
| Modifier and Type | Method and Description |
|---|---|
UserAccount |
createNewUserAccount(boolean disabled)
Create and store a new user account.
|
UserAuthSource |
createSource(UserAccount newUser,
String source,
String screenName,
String body)
Create and associate a new source with the given user.
|
UserAccount |
getAccount(String uid)
Retrieve the account with the specified ID, or null if no such account exists.
|
UserAuthSource |
getBySourceScreenname(String source,
String screenName)
Get the source with the given source name and screen name, or null if no such source exists.
|
UserAuthSource |
getSource(UserAccount acct,
String source)
Retrieve the named source for the given UserAccount, or null if no such account exists.
|
void |
removeSourceIfExists(UserAccount acct,
String source)
Remove a named source from a UserAccount.
|
UserAccount getAccount(String uid)
uid - the account ID to retrieve.UserAuthSource getSource(UserAccount acct, String source)
acct - the account for which a source will be retrieved.source - the source to retrieve.void removeSourceIfExists(UserAccount acct, String source)
acct - the account from which the source will be removed.source - the name of the source to remove.UserAuthSource getBySourceScreenname(String source, String screenName)
source - the source to retrieve.screenName - the screen name associated with the source to retrieve.UserAuthSource createSource(UserAccount newUser, String source, String screenName, String body)
newUser - the user to which the new source will be associated.source - the name of the source.screenName - the screen name associated with this source.body - the "body" or other account context which should be associated with this source.UserAccount createNewUserAccount(boolean disabled)
disabled - if true, mark the account as disabled (unable to login).Copyright © 2018 Orbital Enterprises. All rights reserved.