OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Interfaceosid.workflow.OfficeNotificationSession
Implementsosid.OsidSession
Used Byosid.workflow.WorkflowManager
osid.workflow.WorkflowProxyManager
Description

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

MethodcanRegisterForOfficeNotifications
Description

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

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableOfficeNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeOfficeNotification
Description

Acknowledge an office notification.

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

Register for notifications of new offices. OfficeReceiver.newOffices() is invoked when a new Office is created.

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

Registers for notification of updated offices. OfficeReceiver.changedOffices() is invoked when an office is changed.

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

Registers for notification of an updated office. OfficeReceiver.changedOffices() is invoked when the specified office is changed.

Parametersosid.id.IdofficeIdthe Id of the Office to monitor
ErrorsNULL_ARGUMENTofficeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedOffices
Description

Registers for notification of deleted offices. OfficeReceiver.deletedOffices() is invoked when an office is deleted.

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

Registers for notification of a deleted office. OfficeReceiver.deletedOffices() is invoked when the specified office is deleted.

Parametersosid.id.IdofficeIdthe Id of the Office to monitor
ErrorsNULL_ARGUMENTofficeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOfficeHierarchy
Description

Registers for notification of an updated office hierarchy structure. OfficeReceiver.changedChildOfOffices() is invoked when a node experiences a change in its children.

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

Registers for notification of an updated office hierarchy structure. OfficeReceiver.changedChildOfOffices() is invoked when a node experiences a change in its children.

Parametersosid.id.IdofficeIdthe Id of the Office node to monitor
ErrorsNULL_ARGUMENTofficeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedOfficeHierarchyForDescendants
Description

Registers for notification of an updated office hierarchy structure. OfficeReceiver.changedChildOfOffices() is invoked when a node experiences a change in its children.

Parametersosid.id.IdofficeIdthe Id of the Office node to monitor
ErrorsNULL_ARGUMENTofficeId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.