Interface | osid.recipe.RecipeLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. The methods | ||
Method | getCookbookId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Cookbook Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCookbook | ||
Description |
Gets the | ||
Return | osid.recipe.Cookbook | the cookbook | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupRecipes | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeRecipeView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryRecipeView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedCookbookView | ||
Description |
Federates the view for methods in this session. A federated view will include recipes in cook books which are children of this cook book in the cook book hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedCookbookView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this cook book only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRecipe | ||
Description |
Gets the | ||
Parameters | osid.id.Id | recipeId | Id of the Recipe |
Return | osid.recipe.Recipe | the recipe | |
Errors | NOT_FOUND | recipeId not found | |
NULL_ARGUMENT | recipeId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRecipesByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | recipeIds | the list of Ids to retrieve |
Return | osid.recipe.RecipeList | the returned Recipe list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | recipeIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecipesByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | recipeGenusType | a recipe genus type |
Return | osid.recipe.RecipeList | the returned Recipe list | |
Errors | NULL_ARGUMENT | recipeGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecipesByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | recipeGenusType | a recipe genus type |
Return | osid.recipe.RecipeList | the returned Recipe list | |
Errors | NULL_ARGUMENT | recipeGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecipesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | recipeRecordType | a recipe record type |
Return | osid.recipe.RecipeList | the returned Recipe list | |
Errors | NULL_ARGUMENT | recipeRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecipesByProvider | ||
Description |
Gets a | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.recipe.RecipeList | the returned Recipe list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecipes | ||
Description |
Gets all | ||
Return | osid.recipe.RecipeList | a list of Recipes | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |