Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-184

Allow the ComponentProperties to be created based on another ComponentProperties

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 0.15.0
    • None
    • None
    • None
    • All
    • GreenHopper Ranking:
      0|i0u83f:
    • 9223372036854775807
    • Small

    Description

      This situation happens when creating a set of ComponentProperties when configuring an instance of component, and this new component is based on existing ComponentProperties from a repository. For example, creating a tSalesforceInput component from the SalesforceConnectionProperties in the repository.

      The ComponentDefinition/ComponentService method to create the ComponentProperties given a component name should have another method that will accept the existing properties. It's then up to the ComponentProperties implementation how to create the new properties based on the given properties, and also to do any refresh as necessary.

      To ComponentService add:

      ComponentProperties getComponentProperties(String componentName, ComponentProperties properties)

      to ComponentProperties add (something like):

      protected void setupFromProperties(ComponentProperties properties)

      Attachments

        Activity

          People

            nrousseau Nicolas Rousseau
            fupton Francis Upton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: