@Component public class StoryInteraction extends FlatInteraction
Copyright (c) 2019 Daniel Keiss, Deutsche Telekom AG This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_KEY_SEPARATOR |
context, LIST_ITEM_FORMAT| Constructor and Description |
|---|
StoryInteraction() |
| Modifier and Type | Method and Description |
|---|---|
default void |
clear(Enum key) |
default void |
clear(String key) |
default <S> S |
recall(Enum key)
Get some data in the interaction context.
|
default <S> List<S> |
recallList(Enum key) |
default <S> List<S> |
recallList(String key) |
default <S> List<S> |
recallListOrCreateNew(Enum key) |
default <S> List<S> |
recallListOrCreateNew(String key) |
default <S> Map<String,S> |
recallMap(Enum key) |
default <S> Map<String,S> |
recallMap(String key) |
default <S> Map<String,S> |
recallMapOrCreateNew(Enum key) |
default <S> Map<String,S> |
recallMapOrCreateNew(String key) |
default <S> S |
recallNotNull(Enum key) |
default <S> S |
recallNotNull(String key) |
default <S> S |
recallObject(Enum objectKey,
String attributeKey) |
default <S> S |
recallObject(String objectKey,
String attributeKey) |
default <S> S |
recallObjectNotNull(Enum objectKey,
String attributeKey) |
default <S> S |
recallObjectNotNull(String objectKey,
String attributeKey) |
default void |
remember(Enum key,
Object value)
Store some data in the interaction context for later use.
|
void |
rememberFromScenarioInteraction(String key)
Store some data from scenario interaction to the story interaction context for later use.
|
default void |
rememberObject(Enum entityKey,
Map<String,Object> object) |
default void |
rememberObject(Enum entityKey,
String objectKey,
Object value) |
default void |
rememberObject(String entityKey,
Map<String,Object> object) |
default void |
rememberObject(String entityKey,
String objectKey,
Object value) |
void |
rememberObjectFromScenarioInteraction(String entityKey,
String objectKey)
Store an object from scenario interaction for an specific entity in the story interaction context for later use.
|
default <S> void |
rememberToList(Enum key,
S value) |
default <S> void |
rememberToList(String key,
S value) |
void |
setScenarioInteraction(ScenarioInteraction scenarioInteraction) |
getContext, logAllPossibleKeysWithType, logAllPossibleKeysWithValue, recall, recallByHierarchy, remember, startInteraction, stopInteractionpublic static final String OBJECT_KEY_SEPARATOR
public void rememberFromScenarioInteraction(String key)
public void rememberObjectFromScenarioInteraction(String entityKey, String objectKey)
public void setScenarioInteraction(ScenarioInteraction scenarioInteraction)
public void remember(Enum key, Object value)
public <S> S recall(Enum key)
public <S> S recallNotNull(String key)
public <S> S recallNotNull(Enum key)
public <S> void rememberToList(String key, S value)
public <S> void rememberToList(Enum key, S value)
public void clear(String key)
public void clear(Enum key)
Copyright © 2017–2020. All rights reserved.