Package io.openems.edge.app.api
Class RestJsonApiReadWrite
java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsApp<RestJsonApiReadWrite.Property>
io.openems.edge.core.appmanager.AbstractEnumOpenemsApp<RestJsonApiReadWrite.Property>
io.openems.edge.app.api.RestJsonApiReadWrite
- All Implemented Interfaces:
ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
public class RestJsonApiReadWrite
extends AbstractEnumOpenemsApp<RestJsonApiReadWrite.Property>
implements OpenemsApp
Describes a App for ReadWrite Rest JSON Api.
{
"appId":"App.Api.RestJson.ReadWrite",
"alias":"Rest/JSON-Api Read-Write",
"instanceId": UUID,
"image": base64,
"properties":{
"CONTROLLER_ID": "ctrlApiRest0",
"API_TIMEOUT": 60
},
"dependencies": [
{
"key": "READ_ONLY",
"instanceId": UUID
}
],
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
-
Field Summary
Fields inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
cm, componentContext, componentManager, componentUtil
Fields inherited from interface io.openems.edge.core.appmanager.OpenemsApp
FALLBACK_IMAGE
-
Constructor Summary
ConstructorDescriptionRestJsonApiReadWrite
(ComponentManager componentManager, org.osgi.service.component.ComponentContext context, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowingTriFunction
<ConfigurationTarget, EnumMap<RestJsonApiReadWrite.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> getAppAssistant
(Language language) Gets theAppDescriptor
of theOpenemsApp
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected Class
<RestJsonApiReadWrite.Property> Methods inherited from class io.openems.edge.core.appmanager.AbstractEnumOpenemsApp
appPropertyConfigurationFactory, getId, getValueOrDefault, propertyValues
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
base64OfImage, createResourceBundle, fillUpProperties, getAppAssistant, getAppConfiguration, getAppId, getAppPermissions, getComponentManager, getComponentUtil, getComponentWithFactoryId, getId, getImage, getName, getNullableTranslation, getProperties, getPropertyByName, getShortName, getTranslation, getTranslationBundle, getValidateBuilder, getValidatorConfig, getValueOrDefault, hasProperty, installationValidation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.OpenemsApp
flags, getAppAssistant, getAppConfiguration, getAppId, getAppPermissions, getImage, getName, getProperties, getShortName, getValidatorConfig
-
Constructor Details
-
RestJsonApiReadWrite
public RestJsonApiReadWrite(ComponentManager componentManager, org.osgi.service.component.ComponentContext context, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
-
Method Details
-
getAppAssistant
- Overrides:
getAppAssistant
in classAbstractOpenemsApp<RestJsonApiReadWrite.Property>
-
getAppDescriptor
Description copied from interface:OpenemsApp
Gets theAppDescriptor
of theOpenemsApp
.- Specified by:
getAppDescriptor
in interfaceOpenemsApp
- Parameters:
oem
- theOpenemsEdgeOem
- Returns:
- the
AppDescriptor
-
getCategories
Description copied from interface:OpenemsApp
Gets theOpenemsAppCategory
of theOpenemsApp
.- Specified by:
getCategories
in interfaceOpenemsApp
- Returns:
- the category's
-
getCardinality
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-
appConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,EnumMap<RestJsonApiReadWrite.Property, appConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> - Specified by:
appConfigurationFactory
in classAbstractEnumOpenemsApp<RestJsonApiReadWrite.Property>
-
getPropertyClass
- Specified by:
getPropertyClass
in classAbstractEnumOpenemsApp<RestJsonApiReadWrite.Property>
-