Class AssetsFacade<T extends org.openremote.model.rules.Ruleset>

java.lang.Object
org.openremote.model.rules.Assets
org.openremote.manager.rules.facade.AssetsFacade<T>

public class AssetsFacade<T extends org.openremote.model.rules.Ruleset> extends org.openremote.model.rules.Assets
Restricts rule RHS access to the scope of the engine (a rule in asset scope can not use assets in global scope).
  • Field Details

    • rulesEngineId

      protected final RulesEngineId<T extends org.openremote.model.rules.Ruleset> rulesEngineId
    • assetStorageService

      protected final AssetStorageService assetStorageService
    • eventConsumer

      protected final Consumer<org.openremote.model.attribute.AttributeEvent> eventConsumer
  • Constructor Details

  • Method Details

    • getResults

      public Stream<org.openremote.model.asset.Asset<?>> getResults(org.openremote.model.query.AssetQuery assetQuery)
      Specified by:
      getResults in class org.openremote.model.rules.Assets
    • dispatch

      public AssetsFacade<T> dispatch(org.openremote.model.attribute.AttributeEvent... events)
      Specified by:
      dispatch in class org.openremote.model.rules.Assets
    • dispatch

      public AssetsFacade<T> dispatch(String assetId, String attributeName, Object value)
      Specified by:
      dispatch in class org.openremote.model.rules.Assets
    • dispatch

      public AssetsFacade<T> dispatch(String assetId, String attributeName)
      Specified by:
      dispatch in class org.openremote.model.rules.Assets