| Interface | osid.hierarchy.HierarchyStructureNotificationSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods to receive notifications on adds/changes to a hierarchical structure. 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.  Notifications are triggered with changes to the structure 
                of a hierarchy. For notifications of changes to the   | ||
| Method | getHierarchyId | ||
| Description | 
                     Gets the hierarchy   | ||
| Return | osid.id.Id | the hierarchy  Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getHierarchy | ||
| Description | 
                     Gets the   | ||
| Return | osid.hierarchy.Hierarchy | the  Hierarchy  associated with this session  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canRegisterForHierarchyStructureNotifications | ||
| Description | 
                     Tests if this user can register for   | ||
| Return | boolean |  false  if notification methods are not authorized,  
true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | reliableHierarchyStructureNotifications | ||
| Description | 
                     Reliable notifications are desired. In reliable mode, 
                    notifications are to be acknowledged using   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | unreliableHierarchyStructureNotifications | ||
| Description | 
                     Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | acknowledgeHierarchyStructureNotification | ||
| Description | 
                     Acknowledge a hierarchy structure notification.  | ||
| Parameters | osid.id.Id | notificationId | the  Id  of the notification  | 
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForNewHierarchyNodes | ||
| Description | 
                     Register for notifications of new hierarchy nodes. 
                      | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedHierarchyNodes | ||
| Description | 
                     Registers for notification of deleted hierarchy nodes. 
                      | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedHierarchyNode | ||
| Description | 
                     Registers for notification of a deleted hierarchy node. 
                      | ||
| Parameters | osid.id.Id | nodeId | the  Id  of the  Hierarchy  node to monitor  | 
| Errors | NULL_ARGUMENT |  nodeId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedHierarchy | ||
| Description | 
                     Registers for notification of an updated hierarchy 
                    structure.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedHierarchyForAncestors | ||
| Description | 
                     Registers for notification of an updated hierarchy 
                    structure.   | ||
| Parameters | osid.id.Id | billingId | the  Id  of the node to monitor  | 
| Errors | NULL_ARGUMENT |  nodeId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedHierarchyForDescendants | ||
| Description | 
                     Registers for notification of an updated hierarchy 
                    structure.   | ||
| Parameters | osid.id.Id | nodeId | the  Id  of the node to monitor  | 
| Errors | NULL_ARGUMENT |  nodeId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |