searchProjects

Purpose

This operation returns project IDs based on the search criteria.

Input

The input specifies the project search criteria. In addition to the search criteria, you must specify the startSearchPosition property, which should begin with 1 and the maximumProjectsToShow property, which should be within the range of 1 to 1,000.

Return

long[]

A list of project IDs corresponding to the search criteria.

Java Examples

SearchProjectsDocument schProjDoc =
SearchProjectsDocument.Factory.newInstance();
SearchProjects schProjs = schProjDoc.addNewSearchProjects();
SearchProjectPreferenceType searchPreference =
schProjs.addNewSearchPreferences();
// Set the search preferences
searchPreference.setStartSearchPosition(start);
searchPreference.setMaximumProjectsToShow(maxResult);
// searchPreference.setProjectNameContains("pm ws");
SearchProjectsResponseDocument schProjRespDoc =
stub.searchProjects(schProjDoc);
long[] projIds =
schProjRespDoc.getSearchProjectsResponse().getProjectIdsArray()
;