Class SearchDelegator

    • Constructor Detail

      • SearchDelegator

        public SearchDelegator​(IOptionsServer server)
        Instantiate a new SearchDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.
        Parameters:
        server - a concrete implementation of a Perforce Helix Server
    • Method Detail

      • searchJobs

        public java.util.List<java.lang.String> searchJobs​(java.lang.String words,
                                                           SearchJobsOptions opts)
                                                    throws P4JavaException
        Description copied from interface: ISearchDelegator
        Search for jobs that contain the specified words in the search engine's index.

        Note that this is an 'undoc' Perforce command.

        See also 'p4 help index'.

        Specified by:
        searchJobs in interface ISearchDelegator
        Parameters:
        words - non-null words to be searched.
        opts - SearchJobsOptions object describing optional parameters; if null, no options are set.
        Returns:
        non-null (but possibly-empty) list of job IDs.
        Throws:
        P4JavaException - if an error occurs processing this method and its parameters.