public interface QualifierNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Qualifier
objects in this Vault.
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
QualifierLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForQualifierNotifications()
Tests if this user can register for
Qualifier
notifications. |
Vault |
getVault()
Gets the
Vault associated with this session. |
Id |
getVaultId()
Gets the
Vault Id associated with this
session. |
void |
registerForChangedQualifier(Id qualifierId)
Registers for notification of an updated qualifier.
|
void |
registerForChangedQualifiers()
Registers for notification of updated qualifiers.
|
void |
registerForDeletedQualifier(Id qualifierId)
Registers for notification of a deleted qualifier.
|
void |
registerForDeletedQualifierAncestors(Id qualifierId)
Registers for notification if an ancestor is removed from the
specified qualifier in the qualifier hierarchy.
|
void |
registerForDeletedQualifierDescendants(Id qualifierId)
Registers for notification if a descendant is removed from fthe
specified qualifier in the qualifier hierarchy.
|
void |
registerForDeletedQualifiers()
Registers for notification of deleted qualifiers.
|
void |
registerForNewQualifierAncestors(Id qualifierId)
Registers for notification if an ancestor is added to the specified
qualifier in the qualifier hierarchy.
|
void |
registerForNewQualifierDescendants(Id qualifierId)
Registers for notification if a descendant is added to fthe specified
qualifier in the qualifier hierarchy.
|
void |
registerForNewQualifiers()
Register for notifications of new qualifiers.
|
void |
useFederatedVaultView()
Federates the view for methods in this session.
|
void |
useIsolatedVaultView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getVaultId()
Vault
Id
associated with this
session. Vault Id
associated with this sessionmandatory
- This method must be implemented. Vault getVault() throws OperationFailedException, PermissionDeniedException
Vault
associated with this session. Vault
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForQualifierNotifications()
Qualifier
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 useFederatedVaultView()
mandatory
- This method is must be implemented. void useIsolatedVaultView()
mandatory
- This method is must be implemented. void registerForNewQualifiers() throws OperationFailedException, PermissionDeniedException
QualifierReceiver.newQualifier()
is invoked when a new
Qualifier
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewQualifierAncestors(Id qualifierId) throws OperationFailedException, PermissionDeniedException
QualifierReceiver.newQualifierAncestor()
is invoked when the
specified qualifier experiences an addition in ancestry.qualifierId
- the Id
of the qualifier to monitorNullArgumentException
- qualifierId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewQualifierDescendants(Id qualifierId) throws OperationFailedException, PermissionDeniedException
QualifierReceiver.newQualifierDescendant()
is invoked when the
specified qualifier experiences an addition in descdendants.qualifierId
- the Id
of the qualifier to monitorNullArgumentException
- qualifierId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedQualifiers() throws OperationFailedException, PermissionDeniedException
QualifierReceiver.changedQualifier()
is invoked when a
qualifier is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedQualifier(Id qualifierId) throws OperationFailedException, PermissionDeniedException
QualifierReceiver.changedQualifier()
is invoked when the
specified qualifier is changed.qualifierId
- the Id
of the Qualifier
to monitorNullArgumentException
- qualifierId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedQualifiers() throws OperationFailedException, PermissionDeniedException
QualifierReceiver.deletedQualifier()
is invoked when a
qualifier is removed from this vault.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedQualifier(Id qualifierId) throws OperationFailedException, PermissionDeniedException
QualifierReceiver.deletedQualifier()
is invoked when the
specified qualifier is removed from this vault.qualifierId
- the Id
of the Qualifier
to monitorNullArgumentException
- qualifierId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedQualifierAncestors(Id qualifierId) throws OperationFailedException, PermissionDeniedException
QualifierReceiver.deletedQualifierAncestor()
is invoked when
the specified qualifier experiences a removal of an ancestor.qualifierId
- the Id
of the qualifier to monitorNullArgumentException
- qualifierId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedQualifierDescendants(Id qualifierId) throws OperationFailedException, PermissionDeniedException
QualifierReceiver.deletedQualifierDescednant()
is invoked when
the specified qualifier experiences a removal of one of its
descendants.qualifierId
- the Id
of the qualifier to monitorNullArgumentException
- qualifierId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.