Package io.vertigo.account.impl.account
Interface AccountStorePlugin
-
- All Superinterfaces:
io.vertigo.core.node.component.CoreComponent
,io.vertigo.core.node.component.Plugin
- All Known Implementing Classes:
LoaderAccountStorePlugin
,StoreAccountStorePlugin
,TextAccountStorePlugin
public interface AccountStorePlugin extends io.vertigo.core.node.component.Plugin
- Author:
- npiedeloup, pchretien
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Account
getAccount(io.vertigo.datamodel.structure.model.UID<Account> accountUID)
Optional<Account>
getAccountByAuthToken(String userAuthToken)
Get an newly authentify user by his authToken.Set<io.vertigo.datamodel.structure.model.UID<Account>>
getAccountUIDs(io.vertigo.datamodel.structure.model.UID<AccountGroup> groupUID)
Lists the accounts for a defined group.AccountGroup
getGroup(io.vertigo.datamodel.structure.model.UID<AccountGroup> groupUID)
Gets the group defined by an UID.Set<io.vertigo.datamodel.structure.model.UID<AccountGroup>>
getGroupUIDs(io.vertigo.datamodel.structure.model.UID<Account> accountUID)
Optional<VFile>
getPhoto(io.vertigo.datamodel.structure.model.UID<Account> accountUID)
Gets the photo of an account defined by its UID.
-
-
-
Method Detail
-
getAccount
Account getAccount(io.vertigo.datamodel.structure.model.UID<Account> accountUID)
- Parameters:
accountUID
- the account defined by its UID- Returns:
- the account
-
getGroupUIDs
Set<io.vertigo.datamodel.structure.model.UID<AccountGroup>> getGroupUIDs(io.vertigo.datamodel.structure.model.UID<Account> accountUID)
- Parameters:
accountUID
- the account defined by its UID- Returns:
- Set of groups of this account
-
getGroup
AccountGroup getGroup(io.vertigo.datamodel.structure.model.UID<AccountGroup> groupUID)
Gets the group defined by an UID.- Parameters:
groupUID
- the group UID- Returns:
- the group
-
getAccountUIDs
Set<io.vertigo.datamodel.structure.model.UID<Account>> getAccountUIDs(io.vertigo.datamodel.structure.model.UID<AccountGroup> groupUID)
Lists the accounts for a defined group.- Parameters:
groupUID
- the group UID- Returns:
- the list of acccounts.
-
getPhoto
Optional<VFile> getPhoto(io.vertigo.datamodel.structure.model.UID<Account> accountUID)
Gets the photo of an account defined by its UID.- Parameters:
accountUID
- the account defined by its UID- Returns:
- the photo as a file
-
-