Interface AppManagerAppHelper
- All Known Implementing Classes:
AppManagerAppHelperImpl
public interface AppManagerAppHelper
-
Method Summary
Modifier and TypeMethodDescriptiondeleteApp
(User user, OpenemsAppInstance instance) Deletes anOpenemsAppInstance
.Only available during a call of one of the other methods.installApp
(User user, OpenemsAppInstance instance, OpenemsApp app) Installs anOpenemsApp
with all itsDependency
s.updateApp
(User user, OpenemsAppInstance oldInstance, OpenemsAppInstance instance, OpenemsApp app) Updates an existingOpenemsAppInstance
.
-
Method Details
-
installApp
UpdateValues installApp(User user, OpenemsAppInstance instance, OpenemsApp app) throws OpenemsError.OpenemsNamedException Installs anOpenemsApp
with all itsDependency
s.- Parameters:
user
- the executing userinstance
- the settings of the newOpenemsAppInstance
app
- theOpenemsApp
- Returns:
- a list of the created
OpenemsAppInstances
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
updateApp
UpdateValues updateApp(User user, OpenemsAppInstance oldInstance, OpenemsAppInstance instance, OpenemsApp app) throws OpenemsError.OpenemsNamedException Updates an existingOpenemsAppInstance
.- Parameters:
user
- the executing useroldInstance
- the oldOpenemsAppInstance
with its configurations.instance
- the settings of the newOpenemsAppInstance
app
- theOpenemsApp
- Returns:
- a list of the replaced
OpenemsAppInstances
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
deleteApp
UpdateValues deleteApp(User user, OpenemsAppInstance instance) throws OpenemsError.OpenemsNamedException Deletes anOpenemsAppInstance
.- Parameters:
user
- the executing userinstance
- the instance to delete- Returns:
- a list of the removed
OpenemsAppInstances
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getTemporaryApps
TemporaryApps getTemporaryApps()Only available during a call of one of the other methods.- Returns:
- null if none of the other methods is currently running else the
TemporaryApps
-