public interface CanonicalUnitNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to CanonicalUnit
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 session is closed.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForCanonicalUnitNotifications()
Tests if this user can register for
CanonicalUnit
notifications. |
Catalogue |
getCatalogue()
Gets the
Catalogue associated with this session. |
Id |
getCatalogueId()
Gets the
Catalogue Id associated with
this session. |
void |
registerForChangedCanonicalUnit(Id canonicalUnitId)
Registers for notification of an updated canonical unit.
|
void |
registerForChangedCanonicalUnits()
Registers for notification of updated canonical units.
|
void |
registerForDeletedCanonicalUnit(Id canonicalUnitId)
Registers for notification of a deleted canonical unit.
|
void |
registerForDeletedCanonicalUnits()
Registers for notification of deleted canonical units.
|
void |
registerForNewCanonicalUnits()
Register for notifications of new canonical units.
|
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 canRegisterForCanonicalUnitNotifications()
CanonicalUnit
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 registerForNewCanonicalUnits() throws OperationFailedException, PermissionDeniedException
CanonicalUnitReceiver.newCanonicalUnits()
is invoked when a
new CanonicalUnit
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCanonicalUnits() throws OperationFailedException, PermissionDeniedException
CanonicalUnitReceiver.changedCanonicalUnits()
is invoked when
a canonical unit in this catalogue is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCanonicalUnit(Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnitReceiver.changedCanonicalUnits()
is invoked when
the specified canonical unit in this catalogue is changed.canonicalUnitId
- the Id
of the
CanonicalUnit
to monitorNotFoundException
- a canonical unit was not found
identified by the given Id
NullArgumentException
- canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCanonicalUnits() throws OperationFailedException, PermissionDeniedException
CanonicalUnitReceiver.deletedCanonicalUnits()
is invoked when
a canonical unit is removed from this catalogue.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCanonicalUnit(Id canonicalUnitId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CanonicalUnitReceiver.deletedCanonicalUnits()
is invoked when
the specified canonical unit is removed from this catalogue.canonicalUnitId
- the Id
of the
CanonicalUnit
to monitorNotFoundException
- a canonical unit was not found
identified by the given Id
NullArgumentException
- canonicalUnitId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.