| Interface | osid.billing.CustomerNotificationSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods to receive notifications on 
                adds/changes to   The two views defined in this session correspond to the 
                views in the   | ||
| Method | getBusinessId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Business Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBusiness | ||
| Description | 
                     Gets the   | ||
| Return | osid.billing.Business | the business | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canRegisterForCustomerNotifications | ||
| 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 | useFederatedBusinessView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include customers in catalogs which are children of this catalog in the business hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedBusinessView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts notifications to this business only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | reliableCustomerNotifications | ||
| Description | 
                     Reliable notifications are desired. In reliable mode, 
                    notifications are to be acknowledged using   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | unreliableCustomerNotifications | ||
| Description | 
                     Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | acknowledgeCustomerNotification | ||
| Description | 
                     Acknowledge a customer 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 | registerForNewCustomers | ||
| Description | 
                     Register for notifications of new customers.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForNewCustomersForResource | ||
| Description | 
                     Register for notifications of new customers for the 
                    given resource.   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource  to monitor  | 
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCustomers | ||
| Description | 
                     Registers for notification of updated customers.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCustomersForResource | ||
| Description | 
                     Registers for notification of updated customers for the 
                    given resource.   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource  to monitor  | 
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedCustomer | ||
| Description | 
                     Registers for notification of an updated customer. 
                      | ||
| Parameters | osid.id.Id | customerId | the  Id  of the  Customer  to monitor  | 
| Errors | NULL_ARGUMENT |  customerId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCustomers | ||
| Description | 
                     Registers for notification of deleted customers.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCustomersForResource | ||
| Description | 
                     Registers for notification of deleted customers by the 
                    given resource.   | ||
| Parameters | osid.id.Id | resourceId | the  Id  of the  Resource  to monitor  | 
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedCustomer | ||
| Description | 
                     Registers for notification of a deleted customer. 
                      | ||
| Parameters | osid.id.Id | customerId | the  Id  of the  Customer  to monitor  | 
| Errors | NULL_ARGUMENT |  customerId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |