public interface AccountStore
| Modifier and Type | Method and Description |
|---|---|
void |
attach(URI<Account> accountURI,
URI<AccountGroup> groupURI)
Attaches an account to a group.
|
Account |
getAccount(URI<Account> accountURI) |
Optional<Account> |
getAccountByAuthToken(String userAuthToken)
Get an newly authentify user by his authToken.
|
long |
getAccountsCount() |
Set<URI<Account>> |
getAccountURIs(URI<AccountGroup> groupURI)
Lists the accounts for a defined group.
|
Collection<AccountGroup> |
getAllGroups()
Lists all the groups.
|
AccountGroup |
getGroup(URI<AccountGroup> groupURI)
Gets the group defined by an URI.
|
long |
getGroupsCount() |
Set<URI<AccountGroup>> |
getGroupURIs(URI<Account> accountURI) |
Optional<VFile> |
getPhoto(URI<Account> accountURI)
Gets the photo of an account defined by its URI.
|
void |
reset()
Reset:
- All the accounts
- All the groups
- All the links accounts-group
- All the Photos
|
void |
saveAccounts(List<Account> accounts)
Saves a collection of accounts.
|
void |
saveGroup(AccountGroup group)
Saves a group.
|
void |
setPhoto(URI<Account> accountURI,
VFile photo)
Defines a photo to an account.
|
long getAccountsCount()
Account getAccount(URI<Account> accountURI)
accountURI - the account defined by its URISet<URI<AccountGroup>> getGroupURIs(URI<Account> accountURI)
accountURI - the account defined by its URIlong getGroupsCount()
Collection<AccountGroup> getAllGroups()
AccountGroup getGroup(URI<AccountGroup> groupURI)
groupURI - the group URISet<URI<Account>> getAccountURIs(URI<AccountGroup> groupURI)
groupURI - the group URIOptional<VFile> getPhoto(URI<Account> accountURI)
accountURI - the account defined by its URIvoid saveAccounts(List<Account> accounts)
accounts - the list of accountsvoid saveGroup(AccountGroup group)
group - the groupvoid attach(URI<Account> accountURI, URI<AccountGroup> groupURI)
accountURI - the account defined by its URIgroupURI - the groupvoid reset()
void setPhoto(URI<Account> accountURI, VFile photo)
accountURI - the account defined by its URIphoto - the photoCopyright © 2017. All Rights Reserved.