Package | Description |
---|---|
io.klerch.alexa.state.handler | |
io.klerch.alexa.state.model |
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,
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,
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 |
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.
|
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,
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
AlexaScope |
AlexaStateObject.getScope()
Returns the scope used by the state handler to read/write value from/to persistence store.
|
static AlexaScope |
AlexaScope.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlexaScope[] |
AlexaScope.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AlexaScope.excludes(AlexaScope scope)
Checks if the given scope is not covered by this scope.
|
boolean |
AlexaStateModel.fromJSON(String json,
AlexaScope scope)
Expects a json-string which contains keys with values.
|
List<Field> |
AlexaStateModel.getSaveStateFields(AlexaScope scope)
Gives you all the fields of this model which are annotated with AlexaStateSave and whose scope is set to a scope
which at least in included in the given scope.
|
boolean |
AlexaScope.includes(AlexaScope scope)
Checks if the given scope is covered by this scope.
|
boolean |
AlexaScope.isIn(AlexaScope... scopes) |
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
|
Constructor and Description |
---|
AlexaStateObject(String id,
Object value,
AlexaScope scope)
Creates a id-value state.
|
Copyright © 2017. All rights reserved.