Uploaded image for project: 'NiFi Registry - MOVED TO NIFI PROJECT'
  1. NiFi Registry - MOVED TO NIFI PROJECT
  2. NIFIREG-199

Interfaces for components that supports properties and bundles

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.1.0, 0.2.0
    • 0.3.0
    • None
    • None

    Description

      Currently VersionedProcessor and VersionedControllerService both have maps of VersionedPropertyDescritpors, and also both have a Bundle and Type, but there isn't a common base class or interface between them, so a consumer of the data model can't write general code that operates on them the same.

      I would propose creating two interfaces that VersionedProcessor and VersionedControllerService would implement...

      1) VersionedConfigurableComponent

      Map<String,VersionedPropertyDescriptor> getPropertyDescriptors()
      
      void setPropertyDescriptors(Map<String,VersionedPropertyDescriptor> propertyDescriptors)
      
      Map<String,String> getProperties()
      
      void setProperties(Map<String,String> properties)

      2) VersionedExtensionComponent

      Bundle getBundle()
      
      void setBundle(Bundle bundle)
      
      String getType()
      
      void setType(String type)

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: