| Interface | osid.repository.AssetNotificationSession | ||
|---|---|---|---|
| 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 | getRepositoryId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Repository Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepository | ||
| Description | 
                     Gets the   | ||
| Return | osid.repository.Repository | the  Repository  associated with this session  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canRegisterForAssetNotifications | ||
| 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 | useFederatedRepositoryView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include assets in repositories which are children of this repository in the repository hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedRepositoryView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts notifications to this repository only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | registerForNewAssets | ||
| Description | 
                     Register for notifications of new assets.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForNewAssetsByGenusType | ||
| Description | 
                     Registers for notification of new assets of the given 
                    asset genus type.   | ||
| Parameters | osid.type.Type | assetGenusType | the genus type of the  Asset  to monitor  | 
| Errors | NULL_ARGUMENT |  assetGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedAssets | ||
| Description | 
                     Registers for notification of updated assets.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedAssetsByGenusType | ||
| Description | 
                     Registers for notification of updated assets of the 
                    given asset genus type.   | ||
| Parameters | osid.type.Type | assetGenusType | the genus type of the  Asset  to monitor  | 
| Errors | NULL_ARGUMENT |  assetGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForChangedAsset | ||
| Description | 
                     Registers for notification of an updated asset.   | ||
| Parameters | osid.id.Id | assetId | the  Id  of the  Asset  to monitor  | 
| Errors | NULL_ARGUMENT |  assetId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedAssets | ||
| Description | 
                     Registers for notification of deleted assets.   | ||
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedAssetsByGenusType | ||
| Description | 
                     Registers for notification of deleted assets of the 
                    given asset genus type.   | ||
| Parameters | osid.type.Type | assetGenusType | the genus type of the  Asset  to monitor  | 
| Errors | NULL_ARGUMENT |  assetGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | registerForDeletedAsset | ||
| Description | 
                     Registers for notification of a deleted asset.   | ||
| Parameters | osid.id.Id | assetId | the  Id  of the  Asset  to monitor  | 
| Errors | NULL_ARGUMENT |  assetId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |