public class ProxyStoreClient
extends Object
Constructor and Description |
---|
ProxyStoreClient() |
Modifier and Type | Method and Description |
---|---|
StoreSessionProxy |
getStore()
Gets the store.
|
void |
impersonate(Optional<String> user)
Impersonates a user.
|
boolean |
setUp(Config config,
KeyedGroups contextProperties)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
@Nonnull @CheckReturnValue public StoreSessionProxy getStore()
public void impersonate(@Nonnull Optional<String> user) throws ServiceSessionException
user
- The other user (empty string for anonymous, empty to cancel).ServiceSessionException
- On store session exception.@CheckReturnValue public boolean setUp(@Nonnull Config config, @Nonnull KeyedGroups contextProperties)
config
- The Config.contextProperties
- The context properties.public void tearDown()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.