| Interface | osid.provisioning.BrokerQuerySession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods for searching among  This session defines views that offer differing behaviors for searching. 
  Brokers may have a query record indicated by their 
                respective record types. The query record is accessed via the 
                  | ||
| Method | getDistributorId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Distributor Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getDistributor | ||
| Description | 
                     Gets the   | ||
| Return | osid.provisioning.Distributor | the distributor | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canSearchBrokers | ||
| Description | 
                     Tests if this user can perform   | ||
| Return | boolean |  false  if search methods are not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedDistributorView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include brokers in distributors which are children of this distributor in the distributor hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedDistributorView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts searches to this distributor only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getBrokerQuery | ||
| Description | 
                     Gets a broker query.  | ||
| Return | osid.provisioning.BrokerQuery | the broker query | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBrokersByQuery | ||
| Description | 
                     Gets a list of   | ||
| Parameters | osid.provisioning.BrokerQuery | brokerQuery | the broker query | 
| Return | osid.provisioning.BrokerList | the returned  BrokerList   | |
| Errors | NULL_ARGUMENT |  brokerQuery  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  brokerQuery  is not of this service  |                 ||
| Compliance | mandatory | This method must be implemented. | |