Class SimpleSearchProvider

    • Constructor Detail

      • SimpleSearchProvider

        public SimpleSearchProvider()
    • Method Detail

      • contributesTo

        public boolean contributesTo​(java.lang.String namespace)
        Description copied from interface: SearchProvider
        This is the topology provider namespace to which this search provider contributes.
        Returns:
        returns true if the provider support the <@param namespace>.
      • supportsPrefix

        public boolean supportsPrefix​(java.lang.String searchPrefix)
        Description copied from interface: SearchProvider
        This method is called by topology app the user is searching to setup prefixes that will only match from a
        Returns:
      • query

        public java.util.List<SearchResult> query​(SearchQuery searchQuery,
                                                  GraphContainer container)
        Description copied from interface: SearchProvider
        This API is for getting a list of from all the search providers.
        Parameters:
        searchQuery - This is an API for Vaadin UI code for implementing various search queries types.
        Returns:
        A list of SearchResults
      • getVertexRefsBy

        public java.util.Set<VertexRef> getVertexRefsBy​(SearchResult searchResult,
                                                        GraphContainer container)
        Description copied from interface: SearchProvider
        This method is called when the topology UI needs to know what are associated with a particular .
        Returns:
      • addVertexHopCriteria

        public void addVertexHopCriteria​(SearchResult searchResult,
                                         GraphContainer container)
        Description copied from interface: SearchProvider
        This method is called when the selection is made from the list of returned by a query() method of this API. It is the criteria's responsibility is to determine the associated with the passed to the reference passed to this method.
      • removeVertexHopCriteria

        public void removeVertexHopCriteria​(SearchResult searchResult,
                                            GraphContainer container)
        Description copied from interface: SearchProvider
        When the user requests that the current SearchResult be removed from focus, the search provider should remove the from the