public interface RepositorySearchService
Repository
remote search interfaceModifier and Type | Method and Description |
---|---|
Collection<Repository> |
searchByAlias(String namePattern,
int maxItems,
boolean caseSensitive)
Retrieve a max number of
Repository instances given a name pattern. |
Collection<Repository> |
searchById(Collection<String> ids)
Retrieve a collection of
Repository instances given their identifier. |
Collection<Repository> searchByAlias(String namePattern, int maxItems, boolean caseSensitive)
Repository
instances 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)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 flagRepository
instancesCollection<Repository> searchById(Collection<String> ids)
Repository
instances given their identifier.
Example:
searchById(Arrays.asList("repo1"));
=> get the "repo1" instanceids
- A collection of identifiersRepository
instancesCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.