| Interface | osid.repository.CompositionSmartRepositorySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session manages queries and sequencing to create 
                "smart" dynamic catalogs. A   This   | ||
| 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 | canManageSmartRepository | ||
| Description | 
                     Tests if this user can manage smart repository. A 
                    return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known methods in this session will result in a   | ||
| Return | boolean |  false  if smart repository management is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompositionQuery | ||
| Description | 
                     Gets a composition query.  | ||
| Return | osid.repository.CompositionQuery | the composition query | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompositionSearchOrder | ||
| Description | 
                     Gets a composition search order.  | ||
| Return | osid.repository.CompositionSearchOrder | the composition search order | |
| Compliance | mandatory | This method must be implemented. | |
| Method | applyCompositionQuery | ||
| Description | 
                     Applies a composition query to this repository.  | ||
| Parameters | osid.repository.CompositionQuery | compositionQuery | the composition query | 
| Errors | NULL_ARGUMENT |  compositionQuery  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| UNSUPPORTED |  compositionQuery  not of this service  |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | inspectCompositionQuery | ||
| Description | 
                     Gets a composition query inspector for this repository.  | ||
| Return | osid.repository.CompositionQueryInspector | the composition query inspector | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | applyCompositionSequencing | ||
| Description | 
                     Applies a composition search order to this repository.  | ||
| Parameters | osid.repository.CompositionSearchOrder | compositionSearchOrder | the composition search order | 
| Errors | NULL_ARGUMENT |  compositionSearchOrder  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| UNSUPPORTED |  compositionSearchOrder  not of this service  |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompositionQueryFromInspector | ||
| Description | 
                     Gets a composition query from an inspector.  | ||
| Parameters | osid.repository.CompositionQueryInspector | compositionQueryInspector | a resorce relationship query inspector | 
| Return | osid.repository.CompositionQuery | the composition query | |
| Errors | NULL_ARGUMENT |  compositionQueryInspector  is  null   |                 |
| UNSUPPORTED |  compositionQueryInspector  is not of this service  |                 ||
| Compliance | mandatory | This method must be implemented. | |