Interface WorkspaceProjectSearchService


  • public interface WorkspaceProjectSearchService
    Module remote search interface
    • Method Detail

      • searchByName

        Collection<WorkspaceProject> searchByName​(String pattern,
                                                  int maxItems,
                                                  boolean caseSensitive)
        Retrieve a max number of Module instances given a name pattern.

        Examples:

        • searchByName("", 20, true); => get 20 instances, no matter their name
        • searchByName("A", 10, true); => get the first 10 instances that match the letter A
        • searchByName("alfa", -1, false); => get all the projects which name contains the word "alfa" (case unsensitive)
        Parameters:
        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 flag
        Returns:
        A collection of Module instances