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

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

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

Register for notifications of new appointments. AppointmentReceiver.newAppointments() is invoked when a new Appointment is created.

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

Register for notifications of new appointments for the given person Id. AppointmentReceiver.newAppointments() is invoked when a new Appointment appears in this realm.

Parametersosid.id.IdpersonIdthe person to monitor
ErrorsNULL_ARGUMENT personId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewAppointmentsForPosition
Description

Register for notifications of new appointments for the given position Id. AppointmentReceiver.newAppointments() is invoked when a new Appointment appears in this realm.

Parametersosid.id.IdpositionIdthe Id of the position to monitor
ErrorsNULL_ARGUMENT positionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedAppointments
Description

Registers for notification of updated appointments. AppointmentReceiver.changedAppointments() is invoked when an appointment in this realm is changed.

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

Register for notifications of changed appointments for the given person Id. AppointmentReceiver.changedAppointments() is invoked when an Appointment for the reference in this realm is changed.

Parametersosid.id.IdpersonIdthe Id of the person to monitor
ErrorsNULL_ARGUMENT personId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedAppointmentsForPosition
Description

Register for notifications of changed appointments for the given position Id. AppointmentReceiver.changedAppointments() is invoked when an Appointment for the resource is changed in this realm.

Parametersosid.id.IdpositionIdthe Id of the position to monitor
ErrorsNULL_ARGUMENT positionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedAppointment
Description

Registers for notification of an updated appointment. AppointmentReceiver.changedAppointments() is invoked when the specified appointment in this realm is changed.

Parametersosid.id.IdappointmentIdthe Id of the Appointment to monitor
ErrorsNOT_FOUNDan appointment was not found identified by the given Id
NULL_ARGUMENT appointmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedAppointments
Description

Registers for notification of deleted appointments. AppointmentReceiver.deletedAppointments() is invoked when an appointment is removed from this realm.

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

Register for notifications of deleted appointments for the given person Id. AppointmentReceiver.deletedAppointments() is invoked when an Appointment for the reference is removed from this realm.

Parametersosid.id.IdpersonIdthe Id of the person to monitor
ErrorsNULL_ARGUMENT personId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedAppointmentsForPosition
Description

Register for notifications of deleted appointments for the given position Id. AppointmentReceiver.deletedAppointments() is invoked when an Appointment for the resource is removed from this realm.

Parametersosid.id.IdpositionIdthe Id of the position to monitor
ErrorsNULL_ARGUMENT positionId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedAppointment
Description

Registers for notification of a deleted appointment. AppointmentReceiver.deletedAppointments() is invoked when the specified appointment is removed from this realm.

Parametersosid.id.IdappointmentIdthe Id of the Appointment to monitor
ErrorsNOT_FOUNDan appointment was not found identified by the given Id
NULL_ARGUMENT appointmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.