Class DataSource

java.lang.Object
energy.eddie.aiida.models.datasource.DataSource
Direct Known Subclasses:
IntervalDataSource, MqttDataSource

@Entity public abstract class DataSource extends Object
  • Field Details

    • id

      protected UUID id
    • userId

      protected UUID userId
    • countryCode

      protected String countryCode
    • enabled

      protected boolean enabled
    • icon

      protected DataSourceIcon icon
    • asset

      protected AiidaAsset asset
    • meterId

      @Nullable protected String meterId
    • operatorId

      @Nullable protected String operatorId
    • image

      @Nullable protected Image image
    • name

      protected String name
    • permissions

      protected List<Permission> permissions
    • type

      protected DataSourceType type
  • Constructor Details

    • DataSource

      protected DataSource()
    • DataSource

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

    • createFromDto

      public static DataSource createFromDto(DataSourceDto dto, UUID userId)
    • update

      public void update(DataSourceDto dto)
    • type

      public DataSourceType type()
    • id

      public UUID id()
    • userId

      public UUID userId()
    • name

      public String name()
    • countryCode

      public String countryCode()
    • enabled

      public boolean enabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • icon

      public DataSourceIcon icon()
    • asset

      public AiidaAsset asset()
    • meterId

      @Nullable public String meterId()
    • operatorId

      @Nullable public String operatorId()
    • image

      @Nullable public Image image()
    • setImage

      public void setImage(@Nullable Image image)
    • permissions

      public List<Permission> permissions()