public interface OfferingConstrainerEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to OfferingConstrainerEnabler
objects in this
Catalogue.
This also includes existing
OfferingConstrainerEnablers
that may appear or disappear due to
changes in the Catalogue
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
OfferingConstrainerEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForOfferingConstrainerEnablerNotifications()
Tests if this user can register for
OfferingConstrainerEnabler
notifications. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
registerForChangedOfferingConstrainerEnabler(Id offeringConstrainerEnablerId)
Registers for notification of an updated offering constrainer enabler.
|
void |
registerForChangedOfferingConstrainerEnablers()
Registers for notification of updated offering constrainer enablers.
|
void |
registerForDeletedOfferingConstrainerEnabler(Id offeringConstrainerEnablerId)
Registers for notification of a deleted offering constrainer enabler.
|
void |
registerForDeletedOfferingConstrainerEnablers()
Registers for notification of deleted offering constrainer enablers.
|
void |
registerForNewOfferingConstrainerEnablers()
Register for notifications of new offering constrainer enablers.
|
void |
useFederatedCatalogueView()
Federates the view for methods in this session.
|
void |
useIsolatedCatalogueView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCatalogueId()
Catalogue
Id
associated with
this session. Catalogue Id
associated with this sessionmandatory
- This method must be implemented. Catalogue getCatalogue() throws OperationFailedException, PermissionDeniedException
Catalogue
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForOfferingConstrainerEnablerNotifications()
OfferingConstrainerEnabler
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 useFederatedCatalogueView()
mandatory
- This method is must be implemented. void useIsolatedCatalogueView()
mandatory
- This method is must be implemented. void registerForNewOfferingConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
OfferingConstrainerEnablerReceiver.newOfferingConstrainerEnabler()
is invoked when a new OfferingConstrainerEnabler
appears in this catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOfferingConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
OfferingConstrainerEnablerReceiver.changedOfferingConstrainerEnabler()
is invoked when an offering constrainer enabler in this
catalogue is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOfferingConstrainerEnabler(Id offeringConstrainerEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedOfferingConstrainerEnabler()
is invoked when the specified offering constrainer enabler in
this catalogue is changed.offeringConstrainerEnablerId
- the Id
of the
OfferingConstrainerEnabler
to monitorNullArgumentException
-
offeringConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOfferingConstrainerEnablers() throws OperationFailedException, PermissionDeniedException
OfferingConstrainerEnablerReceiver.deletedOfferingConstrainerEnabler()
is invoked when an offering constrainer enabler is deleted or
removed from this catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOfferingConstrainerEnabler(Id offeringConstrainerEnablerId) throws OperationFailedException, PermissionDeniedException
OfferingConstrainerEnablerReceiver.deletedOfferingConstrainerEnabler()
is invoked when the specified offering constrainer enabler is
deleted or removed from this catalogue.offeringConstrainerEnablerId
- the Id
of the
OfferingConstrainerEnabler
to monitorNullArgumentException
-
offeringConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.