OSID Logo
OSID Specifications
offering package
Version 3.1.0
Interfaceosid.offering.ParticipantSearchSession
Implementsosid.offering.ParticipantQuerySession
Used Byosid.offering.OfferingManager
osid.offering.OfferingProxyManager
Description

This session provides methods for searching Participants. The search query is constructed using the ParticipantQuery. The participant record Type also specifies the record for the participant query.

getParticipantsByQuery() is the basic search method and returns a list of Participant elements. A more advanced search may be performed with getParticipantsBySearch(). It accepts a ParticipantSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getParticipantsBySearch() returns a ParticipantSearchResults that can be used to access the resulting ParticipantList or be used to perform a search within the result set through ParticipantSearch.

This session defines views that offer differing behaviors for searching.

  • federated catalogue view: searches include participants in catalogues of which this catalogue is an ancestor in the catalogue hierarchy
  • isolated catalogue view: searches are restricted to participants in this catalogue

Participants may have a query record indicated by their respective record types. The query record is accessed via the ParticipantQuery. The returns in this session may not be cast directly to these interfaces.

MethodgetParticipantSearch
Description

Gets a participant search.

Returnosid.offering.ParticipantSearch the participant search
Compliancemandatory This method must be implemented.
MethodgetParticipantSearchOrder
Description

Gets a participant search order. The ParticipantSearchOrder is supplied to a ParticipantSearch to specify the ordering of results.

Returnosid.offering.ParticipantSearchOrder the participant search order
Compliancemandatory This method must be implemented.
MethodgetParticipantsBySearch
Description

Gets the search results matching the given search.

Parametersosid.offering.ParticipantQueryparticipantQuery the participant query
osid.offering.ParticipantSearchparticipantSearch the participant search
Returnosid.offering.ParticipantSearchResults the search results
ErrorsNULL_ARGUMENT participantQuery or participantSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED participantQuery or participantSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetParticipantQueryFromInspector
Description

Gets the participant query inspector.

Parametersosid.offering.ParticipantQueryInspectorparticipantQueryInspector a participant query inspector
Returnosid.offering.ParticipantQuery the participant query
ErrorsNULL_ARGUMENT participantQueryInspector is null
UNSUPPORTED participantQueryInspector is not of this service
Compliancemandatory This method must be implemented.