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
Implementation to handle the Search command.
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionSearchDelegator(IOptionsServer server) Instantiate a new SearchDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptionsearchJobs(String words, SearchJobsOptions opts) Search for jobs that contain the specified words in the search engine's index.
-
Constructor Details
-
SearchDelegator
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
Description copied from interface:ISearchDelegatorSearch 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:
searchJobsin interfaceISearchDelegator- 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.
-