Class MqttDataSource

java.lang.Object
energy.eddie.aiida.models.datasource.DataSource
energy.eddie.aiida.models.datasource.mqtt.MqttDataSource
Direct Known Subclasses:
CimDataSource, InboundDataSource, MicroTeleinfoV3DataSource, OesterreichsEnergieDataSource, ShellyDataSource, SinapsiAlfaDataSource, SmartGatewaysDataSource

@Entity public abstract class MqttDataSource extends DataSource
  • Field Details

  • Constructor Details

    • MqttDataSource

      protected MqttDataSource()
    • MqttDataSource

      protected MqttDataSource(DataSourceDto dto, UUID userId)
  • Method Details

    • internalHost

      public String internalHost()
    • topic

      public String topic()
    • username

      public String username()
    • password

      public String password()
    • configure

      public void configure(MqttConfiguration config, org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder encoder, String plaintextPassword)
    • updatePassword

      public void updatePassword(org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder encoder, String plaintextPassword)
    • postPersist

      protected void postPersist()
    • createMqttUser

      protected void createMqttUser()
    • createAccessControlEntry

      protected void createAccessControlEntry()
      This method creates the Access Control Entry for a MQTT data source using the ID of the data source. This is the default behaviour of a MQTT data source.
    • topicFormattedForUi

      protected String topicFormattedForUi()
      This method formats the topic to correctly display it to the user in the UI. This topic can then be copied by the user without making any changes to it.
      Returns:
      The topic formatted for the UI