Interface | osid.recipe.RecipeAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
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 | canCreateRecipes | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Recipe creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateRecipeWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | recipeRecordTypes | array of recipe record types |
Return | boolean | true if Recipe creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | recipeRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getRecipeFormForCreate | ||
Description |
Gets the recipe form for creating new recipes. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | recipeRecordTypes | array of recipe record types |
Return | osid.recipe.RecipeForm | the recipe form | |
Errors | NULL_ARGUMENT | recipeRecordTypes is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createRecipe | ||
Description |
Creates a new | ||
Parameters | osid.recipe.RecipeForm | recipeForm | the form for this Recipe |
Return | osid.recipe.Recipe | the new Recipe | |
Errors | ILLEGAL_STATE | recipeForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | recipeForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | recipeForm did not originate from
getRecipeFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateRecipes | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Recipe modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getRecipeFormForUpdate | ||
Description |
Gets the recipe form for updating an existing recipe. A new recipe form should be requested for each update transaction. | ||
Parameters | osid.id.Id | recipeId | the Id of the Recipe |
Return | osid.recipe.RecipeForm | the recipe form | |
Errors | NOT_FOUND | recipeId is not found | |
NULL_ARGUMENT | recipeId is null | ||
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateRecipe | ||
Description |
Updates an existing recipe. | ||
Parameters | osid.recipe.RecipeForm | recipeForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | recipeForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | recipeId or recipeForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | recipeForm did not originate from
getRecipeFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteRecipes | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Recipe deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteRecipe | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | recipeId | the Id of the Recipe to remove |
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 must be implemented. | |
Method | canManageRecipeAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Recipe aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasRecipe | ||
Description |
Adds an | ||
Parameters | osid.id.Id | recipeId | the Id of a Recipe |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | recipeId not found | ||
NULL_ARGUMENT | recipeId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |