public interface SubscriptionEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to SubscriptionEnabler objects in this Subscription.
This also includes existing SubscriptionEnablers
that may appear or disappear due to changes in the Subscription
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
SubscriptionEnablerLookupSession.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRegisterForSubscriptionEnablerNotifications()
Tests if this user can register for
SubscriptionEnabler
notifications. |
Publisher |
getPublisher()
Gets the
Publisher associated with this session. |
Id |
getPublisherId()
Gets the
Publisher Id associated with
this session. |
void |
registerForChangedSubscriptionEnabler(Id subscriptionEnablerId)
Registers for notification of an updated subscription enabler.
|
void |
registerForChangedSubscriptionEnablers()
Registers for notification of updated subscription enabelrs.
|
void |
registerForDeletedSubscriptionEnabler(Id subscriptionEnablerId)
Registers for notification of a deleted subscription enabler.
|
void |
registerForDeletedSubscriptionEnablers()
Registers for notification of deleted subscription enablers.
|
void |
registerForNewSubscriptionEnablers()
Register for notifications of new subscription enablers.
|
void |
useFederatedPublisherView()
Federates the view for methods in this session.
|
void |
useIsolatedPublisherView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getPublisherId()
Publisher Id associated with
this session. Publisher Id associated with this sessionmandatory - This method must be implemented. Publisher getPublisher() throws OperationFailedException, PermissionDeniedException
Publisher associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canRegisterForSubscriptionEnablerNotifications()
SubscriptionEnabler
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 useFederatedPublisherView()
mandatory - This method is must be implemented. void useIsolatedPublisherView()
mandatory - This method is must be implemented. void registerForNewSubscriptionEnablers()
throws OperationFailedException,
PermissionDeniedException
SubscriptionEnablerReceiver.newSubscriptionEnabler() is
invoked when a new SubscriptionEnabler appears in this
publisher.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedSubscriptionEnablers()
throws OperationFailedException,
PermissionDeniedException
SubscriptionEnablerReceiver.changedSubscriptionEnabler() is
invoked when a subscription enabler in this publisher is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedSubscriptionEnabler(Id subscriptionEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedSubscriptionEnabler() is invoked
when the specified subscription enabler in this publisher is changed.subscriptionEnablerId - the Id of the
SubscriptionEnabler to monitorNullArgumentException - subscriptionEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedSubscriptionEnablers()
throws OperationFailedException,
PermissionDeniedException
SubscriptionEnablerReceiver.deletedSubscriptionEnabler() is
invoked when a subscription enabler is deleted or removed from this
publisher.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedSubscriptionEnabler(Id subscriptionEnablerId) throws OperationFailedException, PermissionDeniedException
SubscriptionEnablerReceiver.deletedSubscriptionEnabler() is
invoked when the specified subscription enabler is deleted or removed
from this publisher.subscriptionEnablerId - the Id of the
SubscriptionEnabler to monitorNullArgumentException - subscriptionEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.