public interface DirectionNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Direction objects in this Cookbook. 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
DirectionLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForDirectionNotifications()
Tests if this user can register for
Direction
notifications. |
Cookbook |
getCookbook()
Gets the
Cookbook associated with this session. |
Id |
getCookbookId()
Gets the
Cookbook Id associated with
this session. |
void |
registerForChangedDirection(Id directionId)
Registers for notification of an updated direction.
|
void |
registerForChangedDirections()
Registers for notification of updated directions.
|
void |
registerForChangedDirectionsForRecipe(Id recipeId)
Registers for notification of updated directions related to the given
recipe.
|
void |
registerForDeletedDirection(Id directionId)
Registers for notification of a deleted direction.
|
void |
registerForDeletedDirections()
Registers for notification of deleted directions.
|
void |
registerForDeletedDirectionsForRecipe(Id recipeId)
Registers for notification of deleted direction for a recipe.
|
void |
registerForNewDirections()
Register for notifications of new directions.
|
void |
registerForNewDirectionsForRecipe(Id recipeId)
Register for notifications of new directions related to the given
recipe.
|
void |
useFederatedCookbookView()
Federates the view for methods in this session.
|
void |
useIsolatedCookbookView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCookbookId()
Cookbook Id associated with
this session. Cookbook Id associated with this sessionmandatory - This method must be implemented. Cookbook getCookbook() throws OperationFailedException, PermissionDeniedException
Cookbook associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canRegisterForDirectionNotifications()
Direction
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. false if notification methods are not
authorized, true otherwisemandatory - This method must be implemented. void useFederatedCookbookView()
mandatory - This method is must be implemented. void useIsolatedCookbookView()
mandatory - This method is must be implemented. void registerForNewDirections()
throws OperationFailedException,
PermissionDeniedException
DirectionReceiver.newDirection() is invoked when a new
Direction appears in this cookbook.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewDirectionsForRecipe(Id recipeId) throws OperationFailedException, PermissionDeniedException
DirectionReceiver.newDirection() is invoked
when a new Direction appears in this cookbook.recipeId - the Id of the Recipe to
monitorNullArgumentException - recipeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedDirections()
throws OperationFailedException,
PermissionDeniedException
DirectionReceiver.changedDirection() is invoked when a
direction in this cook book is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedDirectionsForRecipe(Id recipeId) throws OperationFailedException, PermissionDeniedException
DirectionReceiver.changedDirection() is invoked
when a direction related to the recipe in this cook book is changed.recipeId - the Id of the Recipe to
monitorNullArgumentException - recipeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedDirection(Id directionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DirectionReceiver.changedDirection() is invoked when the
specified direction in this cook book is changed.directionId - the Id of the Direction
to monitorNotFoundException - a direction was not found in this
cook book identified by the given Id NullArgumentException - directionId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedDirections()
throws OperationFailedException,
PermissionDeniedException
DirectionReceiver.deletedDirection() is invoked when a
direction is deleted or removed from this cookbook.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedDirectionsForRecipe(Id recipeId) throws OperationFailedException, PermissionDeniedException
DirectionReceiver.deletedDirection() is invoked when the
related direction is deleted or removed from this cookbook.recipeId - the Id of the Recipe to
monitorNullArgumentException - recipeId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedDirection(Id directionId) throws NotFoundException, OperationFailedException, PermissionDeniedException
DirectionReceiver.deletedDirection() is invoked when the
specified direction is deleted or removed from this cookbook.directionId - the Id of the Direction
to monitorNotFoundException - a direction was not found
identified by the given Id NullArgumentException - directionId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.