public interface WorkspaceProjectSearchService
Module
remote search interfaceModifier and Type | Method and Description |
---|---|
Collection<WorkspaceProject> |
searchByName(String pattern,
int maxItems,
boolean caseSensitive)
Retrieve a max number of
Module instances given a name pattern. |
Collection<WorkspaceProject> searchByName(String pattern, int maxItems, boolean caseSensitive)
Module
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 flagModule
instancesCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.