Package org.gridgain.internal.rbac.users
Class ConfigurationUserStore
java.lang.Object
org.gridgain.internal.rbac.users.ConfigurationUserStore
User store based on cluster configuration
AuthenticationConfiguration.-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationUserStore(org.apache.ignite.internal.security.authentication.configuration.AuthenticationConfiguration authenticationConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionorg.gridgain.internal.rbac.users.Userget(LowerCaseString username) Gets entry by key.List<org.gridgain.internal.rbac.users.User>get(LowerCaseString... usernames) Get entries by keys.Collection<org.gridgain.internal.rbac.users.User>getAll()Gets all entries.Map<LowerCaseString,org.gridgain.internal.rbac.users.User> Gets all entries with keys.putIfNotExists(LowerCaseString username, org.gridgain.internal.rbac.users.User user) Puts entry if given key does not exist.removeIfExists(LowerCaseString username) Removes entry if given key exists.updateIfExists(LowerCaseString username, Function<org.gridgain.internal.rbac.users.User, org.gridgain.internal.rbac.users.User> update) Updates entry if given key exists.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gridgain.internal.rbac.store.Store
get, get, putIfNotExists, removeIfExists, updateIfExists
-
Constructor Details
-
ConfigurationUserStore
public ConfigurationUserStore(org.apache.ignite.internal.security.authentication.configuration.AuthenticationConfiguration authenticationConfiguration)
-
-
Method Details
-
updateIfExists
public CompletableFuture<OperationResult> updateIfExists(LowerCaseString username, Function<org.gridgain.internal.rbac.users.User, org.gridgain.internal.rbac.users.User> update) Description copied from interface:StoreUpdates entry if given key exists.- Specified by:
updateIfExistsin interfaceStore<org.gridgain.internal.rbac.users.User>- Parameters:
username- Entry key.update- Update entry function.- Returns:
- Operation result.
-
putIfNotExists
public CompletableFuture<OperationResult> putIfNotExists(LowerCaseString username, org.gridgain.internal.rbac.users.User user) Description copied from interface:StorePuts entry if given key does not exist.- Specified by:
putIfNotExistsin interfaceStore<org.gridgain.internal.rbac.users.User>- Parameters:
username- Entry key.user- Entry value.- Returns:
- Operation result.
-
removeIfExists
Description copied from interface:StoreRemoves entry if given key exists.- Specified by:
removeIfExistsin interfaceStore<org.gridgain.internal.rbac.users.User>- Parameters:
username- Entry key.- Returns:
- Operation result.
-
getAll
Description copied from interface:StoreGets all entries. If there is no entries at all, empty collection will be returned. -
getAllWithKeys
Description copied from interface:StoreGets all entries with keys. If there is no entries at all, empty map will be returned.- Specified by:
getAllWithKeysin interfaceStore<org.gridgain.internal.rbac.users.User>- Returns:
- Map from entry key to entry.
-
get
Description copied from interface:StoreGets entry by key. -
get
Description copied from interface:StoreGet entries by keys.
-