| Interface | osid.resource.ResourceLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session defines methods for retrieving resources. A 
                 This lookup session defines several views: 
  The methods   Resources may have an additional records indicated by 
                their respective record types. The record may not be accessed 
                through a cast of the  | ||
| Method | getBinId | ||
| Description | Gets the  | ||
| Return | osid.id.Id | the  Bin Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBin | ||
| Description | Gets the  | ||
| Return | osid.resource.Bin | the  Bin associated with this session | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupResources | ||
| 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 | useComparativeResourceView | ||
| 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 | usePlenaryResourceView | ||
| Description | A complete view of the  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedBinView | ||
| Description | Federates the view for methods in this session. A federated view will include resources in bins which are children of this bin in the bin hierarchy. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedBinView | ||
| Description | Isolates the view for methods in this session. An isolated view restricts lookups to this bin only. | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getResource | ||
| Description | Gets the  | ||
| Parameters | osid.id.Id | resourceId | the  Id of the Resource to retrieve | 
| Return | osid.resource.Resource | the returned  Resource  | |
| Errors | NOT_FOUND | no  Resource found with the given Id  | |
| NULL_ARGUMENT |  resourceId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getResourcesByIds | ||
| Description | Gets a  | ||
| Parameters | osid.id.IdList | resourceIds | the list of  Ids to retrieve | 
| Return | osid.resource.ResourceList | the returned  Resource list | |
| Errors | NOT_FOUND | an  Id was not found | |
| NULL_ARGUMENT |  resourceIds is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getResourcesByGenusType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | resourceGenusType | a resource genus type | 
| Return | osid.resource.ResourceList | the returned  Resource list | |
| Errors | NULL_ARGUMENT |  resourceGenusType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getResourcesByParentGenusType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | resourceGenusType | a resource genus type | 
| Return | osid.resource.ResourceList | the returned  Resource list | |
| Errors | NULL_ARGUMENT |  resourceGenusType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getResourcesByRecordType | ||
| Description | Gets a  | ||
| Parameters | osid.type.Type | resourceRecordType | a resource record type | 
| Return | osid.resource.ResourceList | the returned  Resource list | |
| Errors | NULL_ARGUMENT |  resourceRecordType is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getResources | ||
| Description | Gets all  | ||
| Return | osid.resource.ResourceList | a list of  Resources  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |