OSID Logo
OSID Specifications
recipe package
Version 3.1.0
Interfaceosid.recipe.RecipeQuery
Implementsosid.OsidObjectQuery
osid.OsidSourceableQuery
Used Byosid.recipe.CookbookQuery
osid.recipe.DirectionQuery
osid.recipe.RecipeQuerySession
osid.recipe.RecipeSearchSession
osid.recipe.RecipeSmartCookbookSession
Description

This is the query for searching recipes. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchTotalEstimatedDuration
Description

Matches recipes with an estimated duration between the given range inclusive.

Parametersosid.calendaring.Durationstart starting duration
osid.calendaring.Durationend ending duration
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
Compliancemandatory This method must be implemented.
MethodmatchAnyTotalEstimatedDuration
Description

Matches recipes with any estimated duration.

Parametersbooleanmatch true to match directions with any estimated duration, false to match directions with no estimated duration
Compliancemandatory This method must be implemented.
MethodclearTotalEstimatedDurationTerms
Description

Clears the duration query terms.

Compliancemandatory This method must be implemented.
MethodmatchAssetId
Description

Sets the asset Id for this query.

Parametersosid.id.IdassetId the asset Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetId is null
Compliancemandatory This method must be implemented.
MethodclearAssetIdTerms
Description

Clears the asset Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available.

Returnboolean true if an asset query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAssetQuery
Description

Gets the query for an asset. Multiple retrievals produce a nested OR term.

Returnosid.repository.AssetQuery the asset query
ErrorsUNIMPLEMENTED supportsAssetQuery() is false
Complianceoptional This method must be implemented if supportsAssetQuery() is true.
MethodmatchAnyAsset
Description

Matches directions with any asset.

Parametersbooleanmatch true to match directions with any asset, false to match directions with no assets
Compliancemandatory This method must be implemented.
MethodclearAssetTerms
Description

Clears the asset query terms.

Compliancemandatory This method must be implemented.
MethodmatchDirectionId
Description

Sets the direction Id for this query.

Parametersosid.id.IdqualifierId the direction Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT directionId is null
Compliancemandatory This method must be implemented.
MethodclearDirectionIdTerms
Description

Clears the direction Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDirectionQuery
Description

Tests if a DirectionQuery is available.

Returnboolean true if a direction query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDirectionQuery
Description

Gets the query for a direction. Multiple retrievals produce a nested OR term.

Returnosid.recipe.DirectionQuery the direction query
ErrorsUNIMPLEMENTED supportsDirectionQuery() is false
Complianceoptional This method must be implemented if supportsDirectionQuery() is true.
MethodmatchAnyDirection
Description

Matches recipes that have any direction.

Parametersbooleanmatch true to match recipes with any direction, false to match recipes with no direction
Compliancemandatory This method must be implemented.
MethodclearDirectionTerms
Description

Clears the direction query terms.

Compliancemandatory This method must be implemented.
MethodmatchTotalDuration
Description

Matches recipes with an estimated duration between the given range inclusive.

Parametersosid.calendaring.Durationstart starting duration
osid.calendaring.Durationend ending duration
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
Compliancemandatory This method must be implemented.
MethodclearTotalDurationTerms
Description

Clears the duration query terms.

Compliancemandatory This method must be implemented.
MethodmatchCookbookId
Description

Sets the award Id for this query to match recipes assigned to cookbooks.

Parametersosid.id.IdcookbookId a cookbook Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT cookbookId is null
Compliancemandatory This method must be implemented.
MethodclearCookbookIdTerms
Description

Clears the cookbook Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCookbookQuery
Description

Tests if a CookbookQuery is available.

Returnboolean true if a cookbook query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCookbookQuery
Description

Gets the query for a cookbook. Multiple retrievals produce a nested OR term.

Returnosid.recipe.CookbookQuery the cookbook query
ErrorsUNIMPLEMENTED supportsCookbookQuery() is false
Complianceoptional This method must be implemented if supportsCookbookQuery() is true.
MethodclearCookbookTerms
Description

Clears the cookbook query terms.

Compliancemandatory This method must be implemented.
MethodgetRecipeQueryRecord
Description

Gets the recipe query record corresponding to the given Recipe record Type .Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperecipeRecordType a recipe record type
Returnosid.recipe.records.RecipeQueryRecord the recipe query record
ErrorsNULL_ARGUMENT recipeRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(recipeRecordType) is false
Compliancemandatory This method must be implemented.