Interface ParticipantSearchSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ParticipantQuerySession

public interface ParticipantSearchSession extends ParticipantQuerySession

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.

  • Method Details

    • getParticipantSearch

      ParticipantSearch getParticipantSearch()
      Gets a participant search.
      Returns:
      the participant search
      Compliance:
      mandatory - This method must be implemented.
    • getParticipantSearchOrder

      ParticipantSearchOrder getParticipantSearchOrder()
      Gets a participant search order. The ParticipantSearchOrder is supplied to a ParticipantSearch to specify the ordering of results.
      Returns:
      the participant search order
      Compliance:
      mandatory - This method must be implemented.
    • getParticipantsBySearch

      ParticipantSearchResults getParticipantsBySearch(ParticipantQuery participantQuery, ParticipantSearch participantSearch) throws OperationFailedException, PermissionDeniedException
      Gets the search results matching the given search.
      Parameters:
      participantQuery - the participant query
      participantSearch - the participant search
      Returns:
      the search results
      Throws:
      NullArgumentException - participantQuery or participantSearch is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      UnsupportedException - participantQuery or participantSearch is not of this service
      Compliance:
      mandatory - This method must be implemented.
    • getParticipantQueryFromInspector

      ParticipantQuery getParticipantQueryFromInspector(ParticipantQueryInspector participantQueryInspector)
      Gets the participant query inspector.
      Parameters:
      participantQueryInspector - a participant query inspector
      Returns:
      the participant query
      Throws:
      NullArgumentException - participantQueryInspector is null
      UnsupportedException - participantQueryInspector is not of this service
      Compliance:
      mandatory - This method must be implemented.