OSID Logo
OSID Specifications
personnel package
Version 3.0.0
Release Candidate Preview
Interfaceosid.personnel.PersonNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to Person 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.
MethodcanRegisterForPersonNotifications
Description

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

Returnboolean false 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 persons 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.
MethodregisterForNewPersons
Description

Register for notifications of new persons. PersonReceiver.newPersons() is invoked when a new Person is created.

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

Registers for notification of updated persons. PersonReceiver.changedPersons() is invoked when a person in this realm is changed.

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

Registers for notification of an updated person. PersonReceiver.changedPersons() is invoked when the specified person in this realm is changed.

Parametersosid.id.IdpersonIdthe Id of the Person to monitor
ErrorsNOT_FOUNDa person was not found identified by the given Id
NULL_ARGUMENT personId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPersons
Description

Registers for notification of deleted persons. PersonReceiver.deletedPersons() is invoked when a person is removed from this realm.

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

Registers for notification of a deleted person. PersonReceiver.deletedPersons() is invoked when the specified person is removed from this realm.

Parametersosid.id.IdpersonIdthe Id of the Person to monitor
ErrorsNOT_FOUNDa person was not found identified by the given Id
NULL_ARGUMENT personId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.