Package | Description |
---|---|
io.klerch.alexa.state.handler | |
io.klerch.alexa.state.model | |
io.klerch.alexa.state.utils |
Modifier and Type | Method and Description |
---|---|
void |
AWSIotStateHandler.createThingIfNotExisting(AlexaScope scope)
The thing will be created in AWS IoT if not existing for this application (when scope
APPLICATION is given) or for this user in this application (when scope USER is given)
|
boolean |
AWSIotStateHandler.doesThingExist(AlexaScope scope)
Returns if the thing dedicated to the scope given is existing in AWS IoT.
|
<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.
|
boolean |
AlexaStateHandler.exists(String id)
Looks for a state object with the given id.
|
boolean |
AlexaSessionStateHandler.exists(String id)
Looks for a state object with the given id.
|
boolean |
AWSS3StateHandler.exists(String id,
AlexaScope scope)
Looks for a state object with the given id in the given scope.
|
boolean |
AWSDynamoStateHandler.exists(String id,
AlexaScope scope)
Looks for a state object with the given id in the given scope.
|
boolean |
AlexaStateHandler.exists(String id,
AlexaScope scope)
Looks for a state object with the given id in the given scope.
|
boolean |
AlexaSessionStateHandler.exists(String id,
AlexaScope scope)
Looks for a state object with the given id in the given scope.
|
String |
AWSIotStateHandler.getThingName(AlexaScope scope)
Returns name of the thing whose shadow is updated by this handler.
|
<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) |
Optional<AlexaStateObject> |
AlexaStateHandler.readValue(String id)
Reads a single object value from the persistence store.
|
Optional<AlexaStateObject> |
AlexaSessionStateHandler.readValue(String id)
Reads a single object value from the persistence store.
|
Optional<AlexaStateObject> |
AWSIotStateHandler.readValue(String id,
AlexaScope scope)
Reads a single object value from the persistence store.
|
Optional<AlexaStateObject> |
AlexaStateHandler.readValue(String id,
AlexaScope scope)
Reads a single object value from the persistence store.
|
Optional<AlexaStateObject> |
AlexaSessionStateHandler.readValue(String id,
AlexaScope scope)
Reads a single object value from the persistence store.
|
Map<String,AlexaStateObject> |
AlexaStateHandler.readValues(Collection<String> ids)
Reads multiple single object values from the persistence store.
|
Map<String,AlexaStateObject> |
AlexaSessionStateHandler.readValues(Collection<String> ids)
Reads multiple single object values from the persistence store.
|
Map<String,AlexaStateObject> |
AlexaStateHandler.readValues(Collection<String> ids,
AlexaScope scope)
Reads multiple single object values from the persistence store in a specific scope.
|
Map<String,AlexaStateObject> |
AlexaSessionStateHandler.readValues(Collection<String> ids,
AlexaScope scope)
Reads multiple single object values from the persistence store in a specific scope.
|
Map<String,AlexaStateObject> |
AWSS3StateHandler.readValues(Map<String,AlexaScope> idsInScope)
Reads multiple single object values from the persistence store in scopes.
|
Map<String,AlexaStateObject> |
AWSDynamoStateHandler.readValues(Map<String,AlexaScope> idsInScope)
Reads multiple single object values from the persistence store in scopes.
|
Map<String,AlexaStateObject> |
AlexaStateHandler.readValues(Map<String,AlexaScope> idsInScope)
Reads multiple single object values from the persistence store in scopes.
|
Map<String,AlexaStateObject> |
AlexaSessionStateHandler.readValues(Map<String,AlexaScope> idsInScope)
Reads multiple single object values from the persistence store in scopes.
|
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 |
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 |
AlexaStateHandler.removeValue(String id)
Removes a single value state from the persistence store with the given key used
when single value was written in store.
|
void |
AlexaSessionStateHandler.removeValue(String id)
Removes a single value state from the persistence store with the given key used
when single value was written in store.
|
void |
AWSS3StateHandler.removeValues(Collection<String> ids)
Removes multiple value states from the persistence store with given keys used
when those values were written in store.
|
void |
AWSIotStateHandler.removeValues(Collection<String> ids)
Removes multiple value states from the persistence store with given keys used
when those values were written in store.
|
void |
AWSDynamoStateHandler.removeValues(Collection<String> ids)
Removes multiple value states from the persistence store with given keys used
when those values were written in store.
|
void |
AlexaStateHandler.removeValues(Collection<String> ids)
Removes multiple value states from the persistence store with given keys used
when those values were written in store.
|
void |
AlexaSessionStateHandler.removeValues(Collection<String> ids) |
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. |
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. |
void |
AlexaStateHandler.writeValue(AlexaStateObject stateObject)
The value of a given state object will be saved with its id in the persistence store.
|
void |
AlexaSessionStateHandler.writeValue(AlexaStateObject stateObject)
The value of a given state object will be saved with its id in the persistence store.
|
void |
AlexaStateHandler.writeValue(String id,
Object value)
The given value will be saved with the given id in the persistence store.
|
void |
AlexaSessionStateHandler.writeValue(String id,
Object value)
The given value will be saved with the given id in the persistence store.
|
void |
AlexaStateHandler.writeValue(String id,
Object value,
AlexaScope scope)
The given value will be saved with the given id in the persistence store.
|
void |
AlexaSessionStateHandler.writeValue(String id,
Object value,
AlexaScope scope)
The given value will be saved with the given id in the persistence store.
|
void |
AWSS3StateHandler.writeValues(Collection<? extends AlexaStateObject> stateObjects)
Values of given state objects will be saved with their ids in the persistence store.
|
void |
AWSIotStateHandler.writeValues(Collection<? extends AlexaStateObject> stateObjects)
Values of given state objects will be saved with their ids in the persistence store.
|
void |
AWSDynamoStateHandler.writeValues(Collection<? extends AlexaStateObject> stateObjects)
Values of given state objects will be saved with their ids in the persistence store.
|
void |
AlexaStateHandler.writeValues(Collection<? extends AlexaStateObject> stateObjects)
Values of given state objects will be saved with their ids in the persistence store.
|
void |
AlexaSessionStateHandler.writeValues(Collection<? extends AlexaStateObject> stateObjects)
Values of given state objects will be saved with their ids in the persistence store.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AlexaStateModel.fromJSON(String json)
Expects a json-string which contains keys with values.
|
boolean |
AlexaStateModel.fromJSON(String json,
AlexaScope scope)
Expects a json-string which contains keys with values.
|
Object |
AlexaStateModel.get(Field field)
Generic getter for all the fields in this model.
|
void |
AlexaStateModel.removeState()
Asks the state handler associated with this model to remove the model from the persistence store.
|
void |
AlexaStateModel.saveState()
Asks the state handler associated with this model to save all AlexaStateSave-tagged fields in the persistence store.
|
void |
AlexaStateModel.set(Field field,
Object value)
Generic setter for all the fields in this model.
|
String |
AlexaStateModel.toJSON(AlexaScope scope)
Returns a json with key-value-pairs - one for each AlexaStateSave-annotated field in this model configured to be valid
in the given scope
|
Map<String,Object> |
AlexaStateModel.toMap(AlexaScope scope)
Returns a map with key-value-pairs - one for each AlexaStateSave-annotated field in this model configured to be valid
in the given scope
|
Modifier and Type | Method and Description |
---|---|
AlexaStateException |
AlexaStateException.AlexaStateExceptionBuilder.build() |
Copyright © 2017. All rights reserved.