Class CategorySearchProvider

    • 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.
        Specified by:
        contributesTo in interface SearchProvider
        Returns:
        returns true if the provider support the <@param namespace>.
      • query

        public java.util.List<SearchResult> query​(SearchQuery searchQuery,
                                                  GraphContainer graphContainer)
        Description copied from interface: SearchProvider
        This API is for getting a list of from all the search providers.
        Specified by:
        query in interface SearchProvider
        Parameters:
        searchQuery - This is an API for Vaadin UI code for implementing various search queries types.
        Returns:
        A list of SearchResults
      • 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
        Specified by:
        supportsPrefix in interface SearchProvider
        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.
        Specified by:
        addVertexHopCriteria in interface SearchProvider
      • setHiddenCategoryPrefix

        public void setHiddenCategoryPrefix​(java.lang.String prefix)
      • onToggleCollapse

        public void onToggleCollapse​(SearchResult searchResult,
                                     GraphContainer graphContainer)
        Description copied from interface: SearchProvider
        This method is called if the provided by the implementation of this API is flagged as collapsible and the user has clicked the toggle icon. This requires that the implementation created by the implemenation of this API should be able to implement the API. The set of provided by the Criteria will not change, however, the criteria should be able to provide the both the collapsed and uncollapsed representations of the SearchResult.
        Specified by:
        onToggleCollapse in interface SearchProvider
        Overrides:
        onToggleCollapse in class AbstractSearchProvider