Package | Description |
---|---|
io.klerch.alexa.state.handler | |
io.klerch.alexa.state.model | |
io.klerch.alexa.state.model.serializer | |
io.klerch.alexa.state.utils |
Modifier and Type | Method and Description |
---|---|
<TModel extends AlexaStateModel> |
AlexaStateHandler.createModel(Class<TModel> modelClass)
Creates an instance of your model class and binds it to this handler.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.createModel(Class<TModel> modelClass)
Creates an instance of your model class and binds it to this handler.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.createModel(Class<TModel> modelClass,
String id)
Creates an instance of your model class and binds it to this handler.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.createModel(Class<TModel> modelClass,
String id)
Creates an instance of your model class and binds it to this handler.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.exists(Class<TModel> modelClass)
Looks for a model in the persistence store.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.exists(Class<TModel> modelClass)
Looks for a model in the persistence store.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.exists(Class<TModel> modelClass,
AlexaScope scope)
Looks for a model in the persistence store in a given scope.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.exists(Class<TModel> modelClass,
AlexaScope scope)
Looks for a model in the persistence store in a given scope.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.exists(Class<TModel> modelClass,
String id)
Looks for a model with given id in the persistence store.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.exists(Class<TModel> modelClass,
String id)
Looks for a model with given id in the persistence store.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.exists(Class<TModel> modelClass,
String id,
AlexaScope scope)
Looks for a model with the given id in the persistence store in a given scope.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.exists(Class<TModel> modelClass,
String id,
AlexaScope scope)
Looks for a model with the given id in the persistence store in a given scope.
|
<TModel extends AlexaStateModel> |
AWSIotStateHandler.readModel(Class<TModel> modelClass)
Reads out the model from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.readModel(Class<TModel> modelClass)
Reads out the model from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.readModel(Class<TModel> modelClass)
Reads out the model from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AlexaStateHandler.readModel(Class<TModel> modelClass,
String id)
Reads out the model from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.readModel(Class<TModel> modelClass,
String id)
Reads out the model from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AWSS3StateHandler.readModels(Class<TModel> modelClass,
Collection<String> ids)
Reads out models from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AWSIotStateHandler.readModels(Class<TModel> modelClass,
Collection<String> ids)
Reads out models from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AWSDynamoStateHandler.readModels(Class<TModel> modelClass,
Collection<String> ids) |
<TModel extends AlexaStateModel> |
AlexaStateHandler.readModels(Class<TModel> modelClass,
Collection<String> ids)
Reads out models from the persistence store of this handler.
|
<TModel extends AlexaStateModel> |
AlexaSessionStateHandler.readModels(Class<TModel> modelClass,
Collection<String> ids) |
Modifier and Type | Method and Description |
---|---|
void |
AlexaStateHandler.removeModel(AlexaStateModel model)
The given model will be removed from the persistence store.
|
void |
AlexaSessionStateHandler.removeModel(AlexaStateModel model)
The given model will be removed from the persistence store.
|
void |
AlexaStateHandler.writeModel(AlexaStateModel model)
The given model will be saved in the persistence store according to its
AlexaStateSave -annotations. |
void |
AlexaSessionStateHandler.writeModel(AlexaStateModel model)
The given model will be saved in the persistence store according to its
AlexaStateSave -annotations. |
Modifier and Type | Method and Description |
---|---|
void |
AWSIotStateHandler.removeModels(Collection<? extends AlexaStateModel> models)
The given models will be removed from the persistence store.
|
void |
AlexaStateHandler.removeModels(Collection<? extends AlexaStateModel> models)
The given models will be removed from the persistence store.
|
void |
AlexaSessionStateHandler.removeModels(Collection<? extends AlexaStateModel> models) |
void |
AWSS3StateHandler.writeModels(Collection<? extends AlexaStateModel> models)
The given models will be saved in the persistence store according to their
AlexaStateSave -annotations. |
void |
AWSIotStateHandler.writeModels(Collection<? extends AlexaStateModel> models)
The given models will be saved in the persistence store according to their
AlexaStateSave -annotations. |
void |
AWSDynamoStateHandler.writeModels(Collection<? extends AlexaStateModel> models)
The given models will be saved in the persistence store according to their
AlexaStateSave -annotations. |
void |
AlexaStateHandler.writeModels(Collection<? extends AlexaStateModel> models)
The given models will be saved in the persistence store according to their
AlexaStateSave -annotations. |
void |
AlexaSessionStateHandler.writeModels(Collection<? extends AlexaStateModel> models)
The given models will be saved in the persistence store according to their
AlexaStateSave -annotations. |
Modifier and Type | Method and Description |
---|---|
static <TModel extends AlexaStateModel> |
AlexaStateModelFactory.createModel(Class<TModel> modelClass,
AlexaStateHandler handler)
Creates an instance of your POJO model classes derived from AlexaStateModel.
|
static <TModel extends AlexaStateModel> |
AlexaStateModelFactory.createModel(Class<TModel> modelClass,
AlexaStateHandler handler,
String id)
Creates an instance of your POJO model classes derived from AlexaStateModel.
|
static <TModel extends AlexaStateModel> |
AlexaStateModel.getAttributeKey(Class<TModel> modelClass)
Returns the key used to save the model in the session attributes.
|
static <TModel extends AlexaStateModel> |
AlexaStateModel.getAttributeKey(Class<TModel> modelClass,
String id)
Returns the key used to save the model in the session attributes.
|
static <TModel extends AlexaStateModel> |
AlexaStateModel.resolveAttributeKeyToId(Class<TModel> modelClass,
String attributeKey) |
Modifier and Type | Method and Description |
---|---|
AlexaStateModel |
AlexaStateModel.withHandler(AlexaStateHandler handler)
Sets the AlexaStateHandler which takes care of this model when it
saveState() , removeState() . |
Modifier and Type | Method and Description |
---|---|
void |
AlexaUserStateSerializer.serialize(AlexaStateModel alexaStateModel,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
void |
AlexaStateSerializer.serialize(AlexaStateModel alexaStateModel,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
void |
AlexaSessionStateSerializer.serialize(AlexaStateModel alexaStateModel,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
void |
AlexaAppStateSerializer.serialize(AlexaStateModel alexaStateModel,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
Modifier and Type | Method and Description |
---|---|
AlexaStateModel |
AlexaStateException.getModel() |
Modifier and Type | Method and Description |
---|---|
AlexaStateException.AlexaStateExceptionBuilder |
AlexaStateException.AlexaStateExceptionBuilder.withModel(AlexaStateModel model) |
Copyright © 2017. All rights reserved.