Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1752

GraphService.findAllByProperty(prop, val) doesn't filter by the service's model type.

    XMLWordPrintable

    Details

      Description

      GraphService.findAllByProperty(prop, val) doesn't filter by the service's model type.
      That's because FramedGraph#getVertices(key, value, type), which it uses, doesn't filter by type, it only frames the vertices as such type.

      This change adds
      GraphService.findAllByProperty(prop, val, boolean filterByType)
      which allows optionally filter by the service's type.

      The reason not to make it the default (or the only) behavior is that it has performance drawbacks - all items have to be checked using type.isInstance(model).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ozizka Ondrej Zizka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: