OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Interfaceosid.personnel.OrganizationNotificationSession
Implementsosid.OsidSession
Used Byosid.personnel.PersonnelManager
osid.personnel.PersonnelProxyManager
Description

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.

MethodgetRealmId
Description

Gets the Realm Id associated with this session.

Returnosid.id.Idthe Realm Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetRealm
Description

Gets the Realm associated with this session.

Returnosid.personnel.Realmthe realm
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForOrganizationNotifications
Description

Tests if this user can register for 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.

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedRealmView
Description

Federates the view for methods in this session. A federated view will include notifications for organizations in realms which are children of this realm in the realm hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedRealmView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this realm only.

CompliancemandatoryThis method is must be implemented.
MethodreliableOrganizationNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeOrganizationNotification() .

CompliancemandatoryThis method is must be implemented.
MethodunreliableOrganizationNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeOrganizationNotification
Description

Acknowledge an organization notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewOrganizations
Description

Register for notifications of new organizations. OrganizationReceiver.newOrganizations() is invoked when a new Organization is created.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOrganizations
Description

Registers for notification of updated organizations. OrganizationReceiver.changedOrganizations() is invoked when an organization in this realm is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOrganization
Description

Registers for notification of an updated organization. OrganizationReceiver.changedOrganizations() is invoked when the specified organization in this realm is changed.

Parametersosid.id.IdorganizationIdthe Id of the Organization to monitor
ErrorsNOT_FOUNDan organization was not found identified by the given Id
NULL_ARGUMENTorganizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedOrganizations
Description

Registers for notification of deleted organizations. OrganizationReceiver.deletedOrganizations() is invoked when an organization is removed from this realm.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedOrganization
Description

Registers for notification of a deleted organization. OrganizationReceiver.deletedOrganizations() is invoked when the specified organization is removed from this realm.

Parametersosid.id.IdorganizationIdthe Id of the Organization to monitor
ErrorsNOT_FOUNDan organization was not found identified by the given Id
NULL_ARGUMENTorganizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOrganizationHierarchy
Description

Registers for notification of an updated organization hierarchy structure. OrganizationReceiver.changedChildOfOrganizations() is invoked when the specified node or any of its ancestors experiences a change in its children.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOrganizationHierarchyForAncestors
Description

Registers for notification of an updated organization hierarchy structure. OrganizationReceiver.changedChildOfOrganizations() is invoked when the specified node or any of its ancestors experiences a change in its children.

Parametersosid.id.IdorganizationIdthe Id of the Organization node to monitor
ErrorsNULL_ARGUMENTorganizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOrganizationHierarchyForDescendants
Description

Registers for notification of an updated organization hierarchy structure. OrganizationReceiver.changedChildOfOrganizations() is invoked when the specified node or any of its ancestors experiences a change in its children.

Parametersosid.id.IdorganizationIdthe Id of the Organization node to monitor
ErrorsNULL_ARGUMENTorganizationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.