public interface CatalogEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to CatalogEnabler
objects in this Catalog.
This also includes existing CatalogEnablers
that may appear
or disappear due to changes in the Catalog
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
CatalogEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeCatalogEnablerNotification(Id notificationId)
Acknowledge a catalog notification.
|
boolean |
canRegisterForCatalogEnablerNotifications()
Tests if this user can register for
CatalogEnabler
notifications. |
Catalog |
getCatalog()
Gets the
Catalog associated with this session. |
Id |
getCatalogId()
Gets the
Catalog Id associated with this
session. |
void |
registerForChangedCatalogEnabler(Id catalogEnablerId)
Registers for notification of an updated catalog enabler.
|
void |
registerForChangedCatalogEnablers()
Registers for notification of updated catalog enablers.
|
void |
registerForDeletedCatalogEnabler(Id catalogEnablerId)
Registers for notification of a deleted catalog enabler.
|
void |
registerForDeletedCatalogEnablers()
Registers for notification of deleted catalog enablers.
|
void |
registerForNewCatalogEnablers()
Register for notifications of new catalog enablers.
|
void |
reliableCatalogEnablerNotifications()
Reliable notifications are desired.
|
void |
unreliableCatalogEnablerNotifications()
Unreliable notifications are desired.
|
void |
useFederatedCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCatalogView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCatalogId()
Catalog
Id
associated with this
session. Catalog Id
associated with this sessionmandatory
- This method must be implemented. Catalog getCatalog() throws OperationFailedException, PermissionDeniedException
Catalog
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForCatalogEnablerNotifications()
CatalogEnabler
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 useFederatedCatalogView()
mandatory
- This method is must be implemented. void useIsolatedCatalogView()
mandatory
- This method is must be implemented. void reliableCatalogEnablerNotifications()
acknowledgeCatalogEnablerNotification()
.mandatory
- This method is must be implemented. void unreliableCatalogEnablerNotifications()
mandatory
- This method is must be implemented. void acknowledgeCatalogEnablerNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCatalogEnablers() throws OperationFailedException, PermissionDeniedException
CatalogEnablerReceiver.newCatalogEnabler()
is invoked when a
new CatalogEnabler
appears in this catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCatalogEnablers() throws OperationFailedException, PermissionDeniedException
CatalogEnablerReceiver.changedCatalogEnabler()
is invoked when
a catalog enabler in this catalog is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCatalogEnabler(Id catalogEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedCatalogEnabler()
is invoked when
the specified catalog enabler in this catalog is changed.catalogEnablerId
- the Id
of the
CatalogEnabler
to monitorNullArgumentException
- catalogEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCatalogEnablers() throws OperationFailedException, PermissionDeniedException
CatalogEnablerReceiver.deletedCatalogEnabler()
is invoked when
a catalog enabler is deleted or removed from this catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCatalogEnabler(Id catalogEnablerId) throws OperationFailedException, PermissionDeniedException
CatalogEnablerReceiver.deletedCatalogEnabler()
is invoked when
the specified catalog enabler is deleted or removed from this catalog.catalogEnablerId
- the Id
of the
CatalogEnabler
to monitorNullArgumentException
- catalogEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.