Class ModbusControlCsvConfigurer

java.lang.Object
net.solarnetwork.service.support.BasicIdentifiable
net.solarnetwork.node.control.modbus.ModbusControlCsvConfigurer
All Implemented Interfaces:
net.solarnetwork.node.settings.SettingResourceHandler, net.solarnetwork.service.Identifiable, net.solarnetwork.settings.SettingSpecifierProvider

public class ModbusControlCsvConfigurer extends net.solarnetwork.service.support.BasicIdentifiable implements net.solarnetwork.settings.SettingSpecifierProvider, net.solarnetwork.node.settings.SettingResourceHandler
Service that can configure ModbusControl instances via CSV resources.
Version:
1.1
Author:
matt
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The setting resource key for a CSV file.

    Fields inherited from interface net.solarnetwork.service.Identifiable

    GROUP_UID_PROPERTY, UID_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModbusControlCsvConfigurer(net.solarnetwork.node.settings.SettingsService settingsService, net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.IdentityService> identityService)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.solarnetwork.node.settings.SettingsUpdates
    applySettingResources(String settingKey, Iterable<org.springframework.core.io.Resource> resources)
     
    Iterable<org.springframework.core.io.Resource>
     
     
    List<net.solarnetwork.settings.SettingSpecifier>
     
     
     

    Methods inherited from class net.solarnetwork.service.support.BasicIdentifiable

    basicIdentifiableMetadataSettings, basicIdentifiableSettings, basicIdentifiableSettings, basicIdentifiableSettings, doubleMetadataValue, getGroupUid, getGroupUID, getMessageSource, getMetadata, getMetadataCount, getUid, getUID, integerMetadataValue, metadataValue, numberMetadataValue, saveMetadataValue, saveMetadataValue, setDisplayName, setGroupUid, setGroupUID, setMessageSource, setMetadata, setMetadataCount, setUid, setUID, smartMetadataValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.solarnetwork.settings.SettingSpecifierProvider

    getMessageSource
  • Field Details

    • RESOURCE_KEY_CSV_FILE

      public static final String RESOURCE_KEY_CSV_FILE
      The setting resource key for a CSV file.
      See Also:
  • Constructor Details

    • ModbusControlCsvConfigurer

      public ModbusControlCsvConfigurer(net.solarnetwork.node.settings.SettingsService settingsService, net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.IdentityService> identityService)
      Constructor.
      Parameters:
      settingsService - the settings service
      identityService - the identity service
      Throws:
      IllegalArgumentException - if any argument is null
  • Method Details

    • getSettingUid

      public String getSettingUid()
      Specified by:
      getSettingUid in interface net.solarnetwork.node.settings.SettingResourceHandler
      Specified by:
      getSettingUid in interface net.solarnetwork.settings.SettingSpecifierProvider
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface net.solarnetwork.service.Identifiable
      Specified by:
      getDisplayName in interface net.solarnetwork.settings.SettingSpecifierProvider
      Overrides:
      getDisplayName in class net.solarnetwork.service.support.BasicIdentifiable
    • getSettingSpecifiers

      public List<net.solarnetwork.settings.SettingSpecifier> getSettingSpecifiers()
      Specified by:
      getSettingSpecifiers in interface net.solarnetwork.settings.SettingSpecifierProvider
    • supportedCurrentResourceSettingKeys

      public Collection<String> supportedCurrentResourceSettingKeys()
      Specified by:
      supportedCurrentResourceSettingKeys in interface net.solarnetwork.node.settings.SettingResourceHandler
    • currentSettingResources

      public Iterable<org.springframework.core.io.Resource> currentSettingResources(String settingKey)
      Specified by:
      currentSettingResources in interface net.solarnetwork.node.settings.SettingResourceHandler
    • applySettingResources

      public net.solarnetwork.node.settings.SettingsUpdates applySettingResources(String settingKey, Iterable<org.springframework.core.io.Resource> resources) throws IOException
      Specified by:
      applySettingResources in interface net.solarnetwork.node.settings.SettingResourceHandler
      Throws:
      IOException