OSID Logo
OSID Specifications
control package
Version 3.1.0
Interfaceosid.control.TriggerSearchSession
Implementsosid.control.TriggerQuerySession
Used Byosid.control.ControlManager
osid.control.ControlProxyManager
Description

This session provides methods for searching among Triggers. The search query is constructed using the TriggerQuery.

getTriggersByQuery() is the basic search method and returns a list of Triggers. A more advanced search may be performed with getTriggersBySearch().It accepts a TriggerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getTriggersBySearch() returns a TriggerSearchResults that can be used to access the resulting TriggerList or be used to perform a search within the result set through TriggerSearch.

This session defines views that offer differing behaviors for searching.

  • federated system view: searches include triggers in systems of which this system is an ancestor in the system hierarchy
  • isolated system view: searches are restricted to triggers in this system

Triggers may have a query record indicated by their respective record types. The query record is accessed via the TriggerQuery.

MethodgetTriggerSearch
Description

Gets a trigger search.

Returnosid.control.TriggerSearch the trigger search
Compliancemandatory This method must be implemented.
MethodgetTriggerSearchOrder
Description

Gets a trigger search order. The TriggerSearchOrder is supplied to a TriggerSearch to specify the ordering of results.

Returnosid.control.TriggerSearchOrder the trigger search order
Compliancemandatory This method must be implemented.
MethodgetTriggersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.control.TriggerQuerytriggerQuery the trigger query
osid.control.TriggerSearchtriggerSearch the trigger search
Returnosid.control.TriggerSearchResults the returned search results
ErrorsNULL_ARGUMENT triggerQuery or triggerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED triggerQuery or triggerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetTriggerQueryFromInspector
Description

Gets a trigger query from an inspector. The inspector is available from a TriggerSearchResults.

Parametersosid.control.TriggerQueryInspectortriggerQueryInspector a trigger query inspector
Returnosid.control.TriggerQuery the trigger query
ErrorsNULL_ARGUMENT triggerQueryInspector is null
UNSUPPORTED triggerQueryInspector is not of this service
Compliancemandatory This method must be implemented.