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

This session manages queries and sequencing to create "smart" dynamic catalogs. A RecipeQuery can be retrieved from this session and mapped to this Cookbook to create a virtual collection of Recipes. The recipes may be sequenced using the RecipeSearchOrder from this session.

This Cookbook has a default query that matches any recipe and a default search order that specifies no sequencing. The queries may be examined using a RecipeQueryInspector. The query may be modified by converting the inspector back to a RecipeQuery .

MethodgetCookbookId
Description

Gets the Cookbook Id associated with this session.

Returnosid.id.Id the Cookbook Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetCookbook
Description

Gets the Cookbook associated with this session.

Returnosid.recipe.Cookbook the cookbook
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartCookbooks
Description

Tests if this user can manage smart cookbooks. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart cookbook management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetRecipeQuery
Description

Gets a recipe query.

Returnosid.recipe.RecipeQuery the recipe query
Compliancemandatory This method must be implemented.
MethodgetRecipeSearchOrder
Description

Gets a recipe search order.

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

Applies a recipe query to this cookbook.

Parametersosid.recipe.RecipeQueryrecipeQuery the recipe query
ErrorsNULL_ARGUMENT recipeQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED recipeQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectRecipeQuery
Description

Gets a recipe query inspector for this cookbook.

Returnosid.recipe.RecipeQueryInspector the recipe query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyRecipeSequencing
Description

Applies a recipe search order to this cookbook.

Parametersosid.recipe.RecipeSearchOrderrecipeSearchOrder the recipe search order
ErrorsNULL_ARGUMENT recipeSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED recipeSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetRecipeQueryFromInspector
Description

Gets a recipe query from an inspector.

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.