public interface CanonicalUnitEnablerNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to CanonicalUnitEnabler
objects in this Catalogue.
This also includes existing CanonicalUnitEnablers
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
CanonicalUnitEnablerLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForCanonicalUnitEnablerNotifications()
Tests if this user can register for
CanonicalUnitEnabler
notifications. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
registerForChangedCanonicalUnitEnabler(Id canonicalUnitEnablerId)
Registers for notification of an updated canonical unit enabler.
|
void |
registerForChangedCanonicalUnitEnablers()
Registers for notification of updated canonical unit enablers.
|
void |
registerForDeletedCanonicalUnitEnabler(Id canonicalUnitEnablerId)
Registers for notification of a deleted canonical unit enabler.
|
void |
registerForDeletedCanonicalUnitEnablers()
Registers for notification of deleted canonical unit enablers.
|
void |
registerForNewCanonicalUnitEnablers()
Register for notifications of new canonical unit 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 canRegisterForCanonicalUnitEnablerNotifications()
CanonicalUnitEnabler
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 registerForNewCanonicalUnitEnablers() throws OperationFailedException, PermissionDeniedException
CanonicalUnitEnablerReceiver.newCanonicalUnitEnabler()
is
invoked when a new CanonicalUnitEnabler
appears in this
catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCanonicalUnitEnablers() throws OperationFailedException, PermissionDeniedException
CanonicalUnitEnablerReceiver.changedCanonicalUnitEnabler()
is
invoked when a canonical unit enabler in this catalogue is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCanonicalUnitEnabler(Id canonicalUnitEnablerId) throws OperationFailedException, PermissionDeniedException
ProvisionableReceiver.changedCanonicalUnitEnabler()
is
invoked when the specified canonical unit enabler in this catalogue is
changed.canonicalUnitEnablerId
- the Id
of the
CanonicalUnitEnabler
to monitorNullArgumentException
- canonicalUnitEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCanonicalUnitEnablers() throws OperationFailedException, PermissionDeniedException
CanonicalUnitEnablerReceiver.deletedCanonicalUnitEnabler()
is
invoked when a canonical unit enabler is deleted or removed from this
catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCanonicalUnitEnabler(Id canonicalUnitEnablerId) throws OperationFailedException, PermissionDeniedException
CanonicalUnitEnablerReceiver.deletedCanonicalUnitEnabler()
is
invoked when the specified canonical unit enabler is deleted or
removed from this catalogue.canonicalUnitEnablerId
- the Id
of the
CanonicalUnitEnabler
to monitorNullArgumentException
- canonicalUnitEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.