OSID Logo
OSID Specifications
recipe package
Version 3.0.0
Release Candidate Preview
Interfaceosid.recipe.DirectionSearchSession
Implementsosid.recipe.DirectionQuerySession
Description

This session provides methods for searching among Direction objects. The search query is constructed using the DirectionQuery.

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

This session defines views that offer differing behaviors for searching.

  • federated cook book view: searches include directions in cook books of which this cook book is an ancestor in the cook book hierarchy
  • isolated cook book view: searches are restricted to directions in this cook books

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

MethodgetDirectionSearch
Description

Gets a direction search.

Returnosid.recipe.DirectionSearchthe direction search
CompliancemandatoryThis method must be implemented.
MethodgetDirectionSearchOrder
Description

Gets a direction search order. The DirectionSearchOrder is supplied to a DirectionSearch to specify the ordering of results.

Returnosid.recipe.DirectionSearchOrderthe direction search order
CompliancemandatoryThis method must be implemented.
MethodgetDirectionsBySearch
Description

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

Parametersosid.recipe.DirectionQuerydirectionQuerythe direction query
osid.recipe.DirectionSearchdirectionSearchthe direction search
Returnosid.recipe.DirectionSearchResultsthe direction search results
ErrorsNULL_ARGUMENT directionQuery or directionSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED directionQuery or directionSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetDirectionQueryFromInspector
Description

Gets a direction query. from an inspector. The inspector is available from a DirectionSearchResults.

Parametersosid.recipe.DirectionQueryInspectordirectionQueryInspectora direction query inspector
Returnosid.recipe.DirectionQuerythe direction query
ErrorsNULL_ARGUMENT directionQueryInspector is null
UNSUPPORTED directionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.