| Interface | osid.repository.RepositoryLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods for retrieving  This session defines views that offer differing behaviors when retrieving multiple objects. 
  Generally, the comparative view should be used for most 
                applications as it permits operation even if there is data 
                that cannot be accessed. For example, a browsing application 
                may only need to examine the   Repositories may have an additional records indicated by 
                their respective record types. The record may not be accessed 
                through a cast of the   | ||
| Method | canLookupRepositories | ||
| Description | 
                     Tests if this user can perform   | ||
| Return | boolean |  false  if lookup methods are not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeRepositoryView | ||
| Description | 
                     The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryRepositoryView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getRepository | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | repositoryId |  Id  of the  Repository   | 
| Return | osid.repository.Repository | the repository | |
| Errors | NOT_FOUND |  repositoryId  not found  |                 |
| NULL_ARGUMENT |  repositoryId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getRepositoriesByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | repositoryIds | the list of  Ids  to retrieve  | 
| Return | osid.repository.RepositoryList | the returned  Repository list   | |
| Errors | NOT_FOUND | an  Id  was not found  |                 |
| NULL_ARGUMENT |  repositoryIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoriesByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | repositoryGenusType | a repository genus type | 
| Return | osid.repository.RepositoryList | the returned  Repository list   | |
| Errors | NULL_ARGUMENT |  repositoryGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoriesByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | repositoryGenusType | a repository genus type | 
| Return | osid.repository.RepositoryList | the returned  Repository list   | |
| Errors | NULL_ARGUMENT |  repositoryGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoriesByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | repositoryRecordType | a repository record type | 
| Return | osid.repository.RepositoryList | the returned  Repository list   | |
| Errors | NULL_ARGUMENT |  repositoryRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoriesByProvider | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
| Return | osid.repository.RepositoryList | the returned  Repository list   | |
| Errors | NULL_ARGUMENT |  resourceId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositories | ||
| Description | 
                     Gets all   | ||
| Return | osid.repository.RepositoryList | a list of  Repositories   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |