Interface ProtocolAdapterInformation


public interface ProtocolAdapterInformation
A metadata object that describes the Adapter type into the platform. Will also give an indication to the features and allows it to be categorized in the UI / API.
  • Method Details

    • getProtocolName

      @NotNull @NotNull String getProtocolName()
      Returns:
      the technically correct protocol name as defined by the standard, for example "Http" or "Mqtt".
    • getProtocolId

      @NotNull @NotNull String getProtocolId()
      Returns:
      Protocol ID that will be used by the platform to group types, search and categories. NOTE: The format of this ID is important, it must be alpha-numeric without spaces and unique within the system.
    • getLegacyProtocolIds

      @NotNull default @NotNull List<String> getLegacyProtocolIds()
      Returns:
      the legacy Protocol Ids for older versions of this adapter
    • getDisplayName

      @NotNull @NotNull String getDisplayName()
      Returns:
      The visual name to display in the protocol adapter catalog for example "HTTP(s) to MQTT Protocol Adapter"
    • getDescription

      @NotNull @NotNull String getDescription()
    • getUrl

    • getVersion

      @NotNull @NotNull String getVersion()
    • getLogoUrl

      @NotNull @NotNull String getLogoUrl()
    • getAuthor

      @NotNull @NotNull String getAuthor()
      The entity (person or company) who is responsible for producing the adapter
      Returns:
      the name of the authoring entity
    • getCategory

      An adapter can be in a single category. This helps discovery purposes
      Returns:
      the category in which the adapter resides
    • getTags

      Tag represents the keywords that can be associated with this type of adapter
      Returns:
      a list of associated tags that can be used for search purposes
    • tagConfigurationClass

      @NotNull @NotNull Class<? extends Tag> tagConfigurationClass()
      A bean class that will be reflected upon by the framework to determine the structural requirements of the tag configuration associated with an adapter instance. It is expected that the bean class supplied, be marked up with Jackson annotation.
      Returns:
      The class that represents (and will encapsulate) the configuration requirements of the adapter's tags
    • configurationClassNorthbound

      @NotNull @NotNull Class<? extends ProtocolSpecificAdapterConfig> configurationClassNorthbound()
      A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance, in this case for when writing is disabled for this adapter. It is expected that the bean class supplied, be marked up with Jackson annotation.
      Returns:
      The class that represents (and will encapsulate) the configuration requirements of the adapter \\@ModuleConfigField annotations.
    • configurationClassNorthAndSouthbound

      @NotNull @NotNull Class<? extends ProtocolSpecificAdapterConfig> configurationClassNorthAndSouthbound()
      A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance, in this case for when writing is enabled for this adapter. It is expected that the bean class supplied, be marked up with Jackson annotation.
      Returns:
      The class that represents (and will encapsulate) the configuration requirements of the adapter \\@ModuleConfigField annotations.
    • getCapabilities

      @NotNull default @NotNull EnumSet<ProtocolAdapterCapability> getCapabilities()
      Get the capabilities associated with the adapter. For more information on capabilities, please refer to the ProtocolAdapterCapability descriptions.
      Returns:
      an EnumSet containing the capabilities of the adapter
    • getUiSchema

      @Nullable default @Nullable String getUiSchema()
      Returns:
      a UI Schema that tells Edge how to render the config in the UI.
    • getCurrentConfigVersion

      int getCurrentConfigVersion()
      Returns:
      the current version of the configuration