public interface OrganizationNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Organization
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 |
canRegisterForOrganizationNotifications()
Tests if this user can register for
Organization
notifications. |
Realm |
getRealm()
Gets the
Realm associated with this session. |
Id |
getRealmId()
Gets the
Realm Id associated with this
session. |
void |
registerForChangedOrganization(Id organizationId)
Registers for notification of an updated organization.
|
void |
registerForChangedOrganizations()
Registers for notification of updated organizations.
|
void |
registerForDeletedOrganization(Id organizationId)
Registers for notification of a deleted organization.
|
void |
registerForDeletedOrganizationAncestors(Id organizationId)
Registers for notification of an updated hierarchy structure that
removes an ancestor of the specified organization.
|
void |
registerForDeletedOrganizationDescendants(Id organizationId)
Registers for notification of an updated hierarchy structure that
removes a descendant of the specified organization.
|
void |
registerForDeletedOrganizations()
Registers for notification of deleted organizations.
|
void |
registerForNewOrganizationAncestors(Id organizationId)
Registers for notification of an updated hierarchy structure that
introduces a new ancestor of the specified organization.
|
void |
registerForNewOrganizationDescendants(Id organizationId)
Registers for notification of an updated hierarchy structure that
introduces a new descendant of the specified organization.
|
void |
registerForNewOrganizations()
Register for notifications of new organizations.
|
void |
useFederatedRealmView()
Federates the view for methods in this session.
|
void |
useIsolatedRealmView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getRealmId()
Realm
Id
associated with this
session. Realm Id
associated with this sessionmandatory
- This method must be implemented. Realm getRealm() throws OperationFailedException, PermissionDeniedException
Realm
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForOrganizationNotifications()
Organization
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 useFederatedRealmView()
mandatory
- This method is must be implemented. void useIsolatedRealmView()
mandatory
- This method is must be implemented. void registerForNewOrganizations() throws OperationFailedException, PermissionDeniedException
OrganizationReceiver.newOrganizations()
is invoked when a new
Organization
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewOrganizationAncestors(Id organizationId) throws OperationFailedException, PermissionDeniedException
OrganizationReceiver.newAncestorOrganization()
is invoked when
the specified organization node gets a new ancestor.organizationId
- the Id
of the
Organization
node to monitorNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewOrganizationDescendants(Id organizationId) throws OperationFailedException, PermissionDeniedException
OrganizationReceiver.newDescendantOrganization()
is invoked
when the specified organization node gets a new descendant.organizationId
- the Id
of the
Organization
node to monitorNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOrganizations() throws OperationFailedException, PermissionDeniedException
OrganizationReceiver.changedOrganizations()
is invoked when an
organization in this realm is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOrganization(Id organizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OrganizationReceiver.changedOrganizations()
is invoked when
the specified organization in this realm is changed.organizationId
- the Id
of the
Organization
to monitorNotFoundException
- an organization was not found
identified by the given Id
NullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOrganizations() throws OperationFailedException, PermissionDeniedException
OrganizationReceiver.deletedOrganizations()
is invoked when an
organization is removed from this realm.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOrganization(Id organizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException
OrganizationReceiver.deletedOrganizations()
is invoked when
the specified organization is removed from this realm.organizationId
- the Id
of the
Organization
to monitorNotFoundException
- an organization was not found
identified by the given Id
NullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOrganizationAncestors(Id organizationId) throws OperationFailedException, PermissionDeniedException
OrganizationReceiver.deletedAncestorOrganization()
is invoked
when the specified organization node loses an ancestor.organizationId
- the Id
of the
Organization
to monitorNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOrganizationDescendants(Id organizationId) throws OperationFailedException, PermissionDeniedException
Receiver.deletedDescendantOrganization()
is invoked
when the specified organization node loses a descendant.organizationId
- the Id
of the
Organization
to monitorNullArgumentException
- organizationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.