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

This session defines methods to receive notifications on adds/changes to Recipe objects in this Cookbook. This also includes existing recipes that may appear or disappear due to changes in the Cookbook hierarchy, This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

The two views defined in this session correspond to the views in the RecipeLookupSession.

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.
MethodcanRegisterForRecipeNotifications
Description

Tests if this user can register for Recipe notifications. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedCookbookView
Description

Federates the view for methods in this session. A federated view will include recipes in cookbooks which are children of this cookbook in the cookbook hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedCookbookView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this cookbook only.

Compliancemandatory This method is must be implemented.
MethodreliableRecipeNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeRecipeNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableRecipeNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeRecipeNotification
Description

Acknowledge a recipe notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewRecipes
Description

Register for notifications of new recipes. RecipeReceiver.newRecipes() is invoked when a new Recipe appears in this cookbook.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedRecipes
Description

Registers for notification of updated recipes. RecipeReceiver.changedRecipes() is invoked when a recipe in this cookbook is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedRecipe
Description

Registers for notification of an updated recipe. RecipeReceiver.changedRecipes() is invoked when the specified recipe in this cookbook is changed.

Parametersosid.id.IdrecipeId the Id of the Recipe to monitor
ErrorsNOT_FOUND a recipe was not found in this cookbook identified by the given Id
NULL_ARGUMENT recipeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedRecipes
Description

Registers for notification of deleted recipes. RecipeReceiver.deletedRecipes() is invoked when a recipe is deleted or removed from this cookbook.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedRecipe
Description

Registers for notification of a deleted recipe. RecipeReceiver.deletedRecipes() is invoked when the specified recipe is deleted or removed from this cookbook.

Parametersosid.id.IdrecipeId the Id of the Recipe to monitor
ErrorsNOT_FOUND a recipe was not found identified by the given Id
NULL_ARGUMENT recipeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.