public abstract class StoreClient extends HTTPModule.Context
Constructor and Description |
---|
StoreClient() |
Modifier and Type | Method and Description |
---|---|
protected StoreSessionProxy |
getStore()
Gets the store.
|
protected Logger |
getThisLogger()
Gets the logger.
|
protected void |
impersonate(Optional<String> user)
Impersonates a user.
|
protected boolean |
setUp(Config config,
KeyedGroups contextProperties)
Sets up this.
|
protected void |
tearDown()
Tears down what has been set up.
|
getLogID
@Nonnull @CheckReturnValue protected StoreSessionProxy getStore()
@Nonnull @CheckReturnValue protected final Logger getThisLogger()
protected 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 protected boolean setUp(@Nonnull Config config, @Nonnull KeyedGroups contextProperties)
config
- The Config.contextProperties
- The context properties.protected void tearDown()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.