public interface EntryNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Entry
objects in this Business.
This also
includes existing entries that may appear or disappear due to changes in
the Business
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
EntryLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeEntryNotification(Id notificationId)
Acknowledge an entry notification.
|
boolean |
canRegisterForEntryNotifications()
Tests if this user can register for
Entry
notifications. |
Business |
getBusiness()
Gets the
Business associated with this session. |
Id |
getBusinessId()
Gets the
Business Id associated with
this session. |
void |
registerForChangedEntries()
Registers for notification of updated customers.
|
void |
registerForChangedEntriesForCustomer(Id customerId)
Registers for notification of updated entries for the given customer.
|
void |
registerForChangedEntriesForItem(Id itemId)
Registers for notification of updated entries for the given item.
|
void |
registerForChangedEntry(Id entryId)
Registers for notification of an updated entry.
|
void |
registerForDeletedEntries()
Registers for notification of deleted entries.
|
void |
registerForDeletedEntriesForCustomer(Id customerId)
Registers for notification of deleted entries for the given customer.
|
void |
registerForDeletedEntriesForItem(Id itemId)
Registers for notification of deleted entries for the given item.
|
void |
registerForDeletedEntry(Id entryId)
Registers for notification of a deleted entry.
|
void |
registerForNewEntries()
Register for notifications of new entries.
|
void |
registerForNewEntriesForCustomer(Id customerId)
Register for notifications of new entries for the given customer.
|
void |
registerForNewEntriesForItem(Id itemId)
Register for notifications of new entries for the given item.
|
void |
reliableEntryNotifications()
Reliable notifications are desired.
|
void |
unreliableEntryNotifications()
Unreliable notifications are desired.
|
void |
useFederatedBusinessView()
Federates the view for methods in this session.
|
void |
useIsolatedBusinessView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getBusinessId()
Business
Id
associated with
this session. Business Id
associated with this sessionmandatory
- This method must be implemented. Business getBusiness() throws OperationFailedException, PermissionDeniedException
Business
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForEntryNotifications()
Entry
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 useFederatedBusinessView()
mandatory
- This method is must be implemented. void useIsolatedBusinessView()
mandatory
- This method is must be implemented. void reliableEntryNotifications()
acknowledgeEntryNotification()
.mandatory
- This method is must be implemented. void unreliableEntryNotifications()
mandatory
- This method is must be implemented. void acknowledgeEntryNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEntries() throws OperationFailedException, PermissionDeniedException
EntryReceiver.newEntries()
is invoked when a new Entry
appears in this business.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEntriesForCustomer(Id customerId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.newEntries()
is invoked when a new
Entry
appears in this business.customerId
- the Id
of the Customer
to monitorNullArgumentException
- customerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEntriesForItem(Id itemId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.newEntries()
is invoked when a new Entry
appears in this business.itemId
- the Id
of the Item
to
monitorNullArgumentException
- itemId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEntries() throws OperationFailedException, PermissionDeniedException
EntryReceiver.changedEntries()
is invoked when an entry in
this business is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEntriesForCustomer(Id customerId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.changedEntries()
is invoked when the
specified entry in this business is changed.customerId
- the Id
of the Customer
to monitorNullArgumentException
- customerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEntriesForItem(Id itemId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.changedEntries()
is invoked when the
specified entry in this business is changed.itemId
- the Id
of the Item
to
monitorNullArgumentException
- itemId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEntry(Id entryId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.changedEntry()
is invoked when the specified
entry in this business is changed.entryId
- the Id
of the Entry
to
monitorNullArgumentException
- entryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEntries() throws OperationFailedException, PermissionDeniedException
EntryReceiver.deletedEntries()
is invoked when an entry is
deleted or removed from this business.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEntriesForCustomer(Id customerId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.deletedEntries()
is invoked when the
specified entry is deleted or removed from this business.customerId
- the Id
of the Customer
to monitorNullArgumentException
- customerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEntriesForItem(Id itemId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.deletedEntries()
is invoked when the
specified entry is deleted or removed from this business.itemId
- the Id
of the Item
to
monitorNullArgumentException
- itemId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEntry(Id entryId) throws OperationFailedException, PermissionDeniedException
EntryReceiver.deletedEntries()
is invoked when the specified
entry is deleted or removed from this business.entryId
- the Id
of the Entry
to
monitorNullArgumentException
- entryId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.