OSID Logo
OSID Specifications
recipe package
Version 3.0.0
Interfaceosid.recipe.ProcedureQuery
Implementsosid.OsidObjectQuery
Used Byosid.recipe.CookbookQuery
osid.recipe.DirectionQuery
osid.recipe.ProcedureQuerySession
osid.recipe.ProcedureSearchSession
osid.recipe.ProcedureSmartCookbookSession
Description

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

MethodmatchLearningObjectiveId
Description

Sets the objective Id for this query.

Parametersosid.id.IdobjectiveIdthe asset Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTobjectiveId is null
CompliancemandatoryThis method must be implemented.
MethodclearLearningObjectiveIdTerms
Description

Clears the objective Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLearningObjectiveQuery
Description

Tests if an ObjectiveQuery is available.

Returnbooleantrue if an objective query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetLearningObjectiveQuery
Description

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

Returnosid.learning.ObjectiveQuerythe objective query
ErrorsUNIMPLEMENTEDsupportsLearningObjectiveQuery() is false
ComplianceoptionalThis method must be implemented if supportsLearningObjectiveQuery() is true .
MethodmatchAnyLearningObjective
Description

Matches directions with any objective.

Parametersbooleanmatchtrue to match directions with any objective, false to match directions with no objectives
CompliancemandatoryThis method must be implemented.
MethodclearLearningObjectiveTerms
Description

Clears the objective query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCookbookId
Description

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

Parametersosid.id.IdcookbookIda cookbook Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcookbookId is null
CompliancemandatoryThis method must be implemented.
MethodclearCookbookIdTerms
Description

Clears the cookbook Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCookbookQuery
Description

Tests if an CookbookQuery is available.

Returnbooleantrue if a cookbook query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCookbookQuery
Description

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

Returnosid.recipe.CookbookQuerythe cookbook query
ErrorsUNIMPLEMENTEDsupportsCookbookQuery() is false
ComplianceoptionalThis method must be implemented if supportsCookbookQuery() is true .
MethodclearCookbookTerms
Description

Clears the cookbook terms.

CompliancemandatoryThis method must be implemented.
MethodgetProcedureQueryRecord
Description

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

Parametersosid.type.TypeprocedureRecordTypea procedure record type
Returnosid.recipe.records.ProcedureQueryRecordthe procedure query record
ErrorsNULL_ARGUMENTprocedureRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(procedureRecordType) is false
CompliancemandatoryThis method must be implemented.