OSID Logo
OSID Specifications
recipe package
Version 3.0.0
Interfaceosid.recipe.DirectionSearchSession
Implementsosid.recipe.DirectionQuerySession
Used Byosid.recipe.RecipeManager
osid.recipe.RecipeProxyManager
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 cookbook view: searches include directions in cookbooks of which this cookbook is an ancestor in the cookbook hierarchy
  • isolated cookbook view: searches are restricted to directions in this cookbooks

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_ARGUMENTdirectionQuery or directionSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDdirectionQuery 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_ARGUMENTdirectionQueryInspector is null
UNSUPPORTEDdirectionQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.