public interface BusinessNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Business
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 sess
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeBusinessNotification(Id notificationId)
Acknowledge a business notification.
|
boolean |
canRegisterForBusinessNotifications()
Tests if this user can register for
Business
notifications. |
void |
registerForChangedBusiness(Id businessId)
Registers for notification of an updated business.
|
void |
registerForChangedBusinesses()
Registers for notification of updated businesses.
|
void |
registerForChangedBusinessHierarchy()
Registers for notification of an updated business hierarchy structure.
|
void |
registerForChangedBusinessHierarchyForAncestors(Id businessId)
Registers for notification of an updated business hierarchy structure.
|
void |
registerForChangedBusinessHierarchyForDescendants(Id businessId)
Registers for notification of an updated business hierarchy structure.
|
void |
registerForDeletedBusiness(Id businessId)
Registers for notification of a deleted business.
|
void |
registerForDeletedBusinesses()
Registers for notification of deleted businesses.
|
void |
registerForNewBusinesses()
Register for notifications of new businesses.
|
void |
reliableBusinessNotifications()
Reliable notifications are desired.
|
void |
unreliableBusinessNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForBusinessNotifications()
Business
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 reliableBusinessNotifications()
acknowledgeBusinessNotification()
.mandatory
- This method is must be implemented. void unreliableBusinessNotifications()
mandatory
- This method is must be implemented. void acknowledgeBusinessNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBusinesses() throws OperationFailedException, PermissionDeniedException
BusinessReceiver.newBusinesses()
is invoked when a new
Business
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBusinesses() throws OperationFailedException, PermissionDeniedException
BusinessReceiver.changedBusinesses()
is invoked when a
business is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBusiness(Id businessId) throws OperationFailedException, PermissionDeniedException
BusinessReceiver.changedBusinesses()
is invoked when the
specified business is changed.businessId
- the Id of the Business
to monitorNullArgumentException
- businessId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBusinesses() throws OperationFailedException, PermissionDeniedException
BusinessReceiver.deletedBusinesses()
is invoked when a
business is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedBusiness(Id businessId) throws OperationFailedException, PermissionDeniedException
BusinessReceiver.deletedBusinesses()
is invoked when the
specified business is deleted.businessId
- the Id of the Business
to monitorNullArgumentException
- businessId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBusinessHierarchy() throws OperationFailedException, PermissionDeniedException
BusinessReceiver.changedChildOfBusinesses()
is invoked
when a node experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBusinessHierarchyForAncestors(Id businessId) throws OperationFailedException, PermissionDeniedException
BusinessReceiver.changedChildOfBusinesses()
is invoked
when the specified node or any of its ancestors experiences a change
in its children.businessId
- the Id
of the Business
node to monitorNullArgumentException
- businessId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBusinessHierarchyForDescendants(Id businessId) throws OperationFailedException, PermissionDeniedException
BusinessesReceiver.changedChildOfBusinesses()
is
invoked when the specified node or any of its descendants experiences
a change in its children.businessId
- the Id
of the Business
node to monitorNullArgumentException
- businessId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.