Interface RepositorySearchService
-
public interface RepositorySearchServiceRepositoryremote search interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Repository>searchByAlias(String namePattern, int maxItems, boolean caseSensitive)Retrieve a max number ofRepositoryinstances given a name pattern.Collection<Repository>searchById(Collection<String> ids)Retrieve a collection ofRepositoryinstances given their identifier.
-
-
-
Method Detail
-
searchByAlias
Collection<Repository> searchByAlias(String namePattern, int maxItems, boolean caseSensitive)
Retrieve a max number ofRepositoryinstances given a name pattern.Examples:
searchByAlias("", 20, true);=> get 20 instances, no matter their namesearchByAlias("A", 10, true);=> get the first 10 instances that match the letter AsearchByAlias("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
Repositoryinstances
-
searchById
Collection<Repository> searchById(Collection<String> ids)
Retrieve a collection ofRepositoryinstances given their identifier.Example:
searchById(Arrays.asList("repo1"));=> get the "repo1" instance
- Parameters:
ids- A collection of identifiers- Returns:
- A collection of
Repositoryinstances
-
-