public interface ProjectSearchService
Project remote search interface| Modifier and Type | Method and Description |
|---|---|
Collection<Project> |
searchById(Collection<String> ids)
Retrieve a collection of
Project instances given their identifier. |
Collection<Project> |
searchByName(String pattern,
int maxItems,
boolean caseSensitive)
Retrieve a max number of
Project instances given a name pattern. |
Collection<Project> searchByName(String pattern, int maxItems, boolean caseSensitive)
Project instances given a name pattern.
Examples:
searchByName("", 20, true); => get 20 instances, no matter their namesearchByName("A", 10, true); => get the first 10 instances that match the letter AsearchByName("alfa", -1, false); => get all the projects which name contains the word "alfa" (case unsensitive)pattern - An string fragment which must be present in any of the projects instances retrieved.maxItems - Max number of instances to retrieve. This setting is ruled out if zero or negative.caseSensitive - Case sensitiveness flagProject instancesCollection<Project> searchById(Collection<String> ids)
Project instances given their identifier.
Example:
searchById(Arrays.asList("project1")); => get the "project1" instanceids - A collection of identifiersProject instancesCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.