Interface RepositorySearchService


  • public interface RepositorySearchService
    Repository remote search interface
    • Method Detail

      • searchByAlias

        Collection<Repository> searchByAlias​(String namePattern,
                                             int maxItems,
                                             boolean caseSensitive)
        Retrieve a max number of Repository instances given a name pattern.

        Examples:

        • searchByAlias("", 20, true); => get 20 instances, no matter their name
        • searchByAlias("A", 10, true); => get the first 10 instances that match the letter A
        • searchByAlias("alfa", -1, false); => get all the instances which name contains the word "alfa" (case unsensitive)
        Parameters:
        namePattern - An string fragment which must be present in any of the instances retrieved.
        maxItems - Max number of instances to retrieve. This setting is ruled out if zero or negative.
        caseSensitive - Case sensitiveness flag
        Returns:
        A collection of Repository instances
      • searchById

        Collection<Repository> searchById​(Collection<String> ids)
        Retrieve a collection of Repository instances given their identifier.

        Example:

        • searchById(Arrays.asList("repo1")); => get the "repo1" instance
        Parameters:
        ids - A collection of identifiers
        Returns:
        A collection of Repository instances