OSID Logo
OSID Specifications
workflow package
Version 3.1.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.

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodreliableOfficeNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableOfficeNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeOfficeNotification
Description

Acknowledge an office notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewOffices
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedOffices
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdofficeId the Id of the Office to monitor
ErrorsNULL_ARGUMENT officeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedOffices
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdofficeId the Id of the Office to monitor
ErrorsNULL_ARGUMENT officeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdofficeId the Id of the Office node to monitor
ErrorsNULL_ARGUMENT officeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdofficeId the Id of the Office node to monitor
ErrorsNULL_ARGUMENT officeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.