OSID Logo
OSID Specifications
recipe package
Version 3.1.0
Interfaceosid.recipe.RecipeSearchSession
Implementsosid.recipe.RecipeQuerySession
Used Byosid.recipe.RecipeManager
osid.recipe.RecipeProxyManager
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated cookbook view: searches include recipes in cookbooks of which this cookbook is an ancestor in the cookbook hierarchy
  • isolated cookbook view: searches are restricted to recipes in this cookbooks

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

MethodgetRecipeSearch
Description

Gets a recipe search.

Returnosid.recipe.RecipeSearch the recipe search
Compliancemandatory This method must be implemented.
MethodgetRecipeSearchOrder
Description

Gets a recipe search order. The RecipeSearchOrder is supplied to a RecipeSearch to specify the ordering of results.

Returnosid.recipe.RecipeSearchOrder the recipe search order
Compliancemandatory This method must be implemented.
MethodgetRecipesBySearch
Description

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

Parametersosid.recipe.RecipeQueryrecipeQuery the recipe query
osid.recipe.RecipeSearchrecipeSearch the recipe search
Returnosid.recipe.RecipeSearchResults the recipe search results
ErrorsNULL_ARGUMENT recipeQuery or recipeSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED recipeQuery or recipeSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetRecipeQueryFromInspector
Description

Gets a recipe query from an inspector. The inspector is available from a RecipeSearchResults.

Parametersosid.recipe.RecipeQueryInspectorrecipeQueryInspector a recipe query inspector
Returnosid.recipe.RecipeQuery the recipe query
ErrorsNULL_ARGUMENT recipeQueryInspector is null
UNSUPPORTED recipeQueryInspector is not of this service
Compliancemandatory This method must be implemented.