public interface FoundryNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Foundry
objects. 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.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForFoundryNotifications()
Tests if this user can register for
Foundry
notifications. |
void |
registerForChangedFoundries()
Registers for notification of updated foundries.
|
void |
registerForChangedFoundry(Id foundryId)
Registers for notification of an updated foundry.
|
void |
registerForDeletedFoundries()
Registers for notification of deleted foundries.
|
void |
registerForDeletedFoundry(Id foundryId)
Registers for notification of a deleted foundry.
|
void |
registerForDeletedFoundryAncestors(Id foundryId)
Registers for notification if an ancestor is removed from the
specified foundry in the foundry hierarchy.
|
void |
registerForDeletedFoundryDescendants(Id foundryId)
Registers for notification if a descendant is removed from fthe
specified foundry in the foundry hierarchy.
|
void |
registerForNewFoundries()
Register for notifications of new foundries.
|
void |
registerForNewFoundryAncestors(Id foundryId)
Registers for notification if an ancestor is added to the specified
foundry in the foundry hierarchy.
|
void |
registerForNewFoundryDescendants(Id foundryId)
Registers for notification if a descendant is added to the specified
foundry in the foundry hierarchy.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForFoundryNotifications()
Foundry
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 registerForNewFoundries() throws OperationFailedException, PermissionDeniedException
FoundryReceiver.newFoundries()
is invoked when a new
Foundry
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewFoundryAncestors(Id foundryId) throws OperationFailedException, PermissionDeniedException
FoundryReceiver.newFoundryAncestor()
is invoked when the
specified foundry experiences an addition in ancestry.foundryId
- the Id
of the foundry to monitorNullArgumentException
- foundryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewFoundryDescendants(Id foundryId) throws OperationFailedException, PermissionDeniedException
FoundryReceiver.newFoundryDescendant()
is invoked when the
specified foundry experiences an addition in descendants.foundryId
- the Id
of the foundry to monitorNullArgumentException
- foundryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedFoundries() throws OperationFailedException, PermissionDeniedException
FoundryReceiver.changedFoundries()
is invoked when a foundry
is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedFoundry(Id foundryId) throws OperationFailedException, PermissionDeniedException
FoundryReceiver.changedFoundries()
is invoked when the
specified foundry is changed.foundryId
- the Id of the Foundry
to monitorNullArgumentException
- foundryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFoundries() throws OperationFailedException, PermissionDeniedException
FoundryReceiver.deletedFoundries()
is invoked when a foundry
is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFoundry(Id foundryId) throws OperationFailedException, PermissionDeniedException
FoundryReceiver.deletedFoundries()
is invoked when the
specified foundry is deleted.foundryId
- the Id
of the Foundry
to monitorNullArgumentException
- foundryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFoundryAncestors(Id foundryId) throws OperationFailedException, PermissionDeniedException
FoundryReceiver.deletedFoundryAncestor()
is invoked when the
specified foundry experiences a removal of an ancestor.foundryId
- the Id
of the foundry to monitorNullArgumentException
- foundryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFoundryDescendants(Id foundryId) throws OperationFailedException, PermissionDeniedException
FoundryReceiver.deletedFoundryDescednant()
is invoked when the
specified foundry experiences a removal of one of its descdendents.foundryId
- the Id
of the foundry to monitorNullArgumentException
- foundryId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.