Class SearchDelegator

java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.SearchDelegator
All Implemented Interfaces:
ISearchDelegator

public class SearchDelegator extends BaseDelegator implements ISearchDelegator
Implementation to handle the Search command.
  • Constructor Details

    • 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 Details

    • searchJobs

      public List<String> searchJobs(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.