Class ScriptedAutomationManager

java.lang.Object
org.openhab.core.automation.module.script.rulesupport.shared.ScriptedAutomationManager

@NonNullByDefault public class ScriptedAutomationManager extends Object
This Registry is used for a single ScriptEngine instance. It allows the adding and removing of handlers. It allows the removal of previously added modules on unload.
Author:
Simon Merschjohann - Initial contribution
  • Constructor Details

    • ScriptedAutomationManager

      public ScriptedAutomationManager(RuleSupportRuleRegistryDelegate ruleRegistryDelegate, org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleHandlerFactory scriptedCustomModuleHandlerFactory, org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleTypeProvider scriptedCustomModuleTypeProvider, org.openhab.core.automation.module.script.rulesupport.internal.ScriptedPrivateModuleHandlerFactory scriptedPrivateModuleHandlerFactory)
  • Method Details

    • removeModuleType

      public void removeModuleType(String uid)
    • removeHandler

      public void removeHandler(String typeUID)
    • removePrivateHandler

      public void removePrivateHandler(String privId)
    • removeAll

      public void removeAll()
    • addRule

      public Rule addRule(Rule element)
    • addUnmanagedRule

      public Rule addUnmanagedRule(Rule element)
    • addConditionType

      public void addConditionType(ConditionType conditionType)
    • addConditionHandler

      public void addConditionHandler(String uid, ScriptedHandler conditionHandler)
    • addPrivateConditionHandler

      public String addPrivateConditionHandler(SimpleConditionHandler conditionHandler)
    • addActionType

      public void addActionType(ActionType actionType)
    • addActionHandler

      public void addActionHandler(String uid, ScriptedHandler actionHandler)
    • addPrivateActionHandler

      public String addPrivateActionHandler(SimpleActionHandler actionHandler)
    • addTriggerType

      public void addTriggerType(TriggerType triggerType)
    • addTriggerHandler

      public void addTriggerHandler(String uid, ScriptedHandler triggerHandler)
    • addPrivateTriggerHandler

      public String addPrivateTriggerHandler(SimpleTriggerHandler triggerHandler)