| Interface | osid.authentication.AgencyLookupSession | ||
|---|---|---|---|
| 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   Agencies may have an additional records indicated by their 
                respective record types. The record may not be accessed 
                through a cast of the   | ||
| Method | canLookupAgencies | ||
| 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 | useComparativeAgencyView | ||
| 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 | usePlenaryAgencyView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getAgency | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | agencyId |  Id  of the  Agency   | 
| Return | osid.authentication.Agency | the agency | |
| Errors | NOT_FOUND |  agencyId  not found  |                 |
| NULL_ARGUMENT |  agencyId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getAgenciesByIds | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.id.IdList | agencyIds | a list of agency  Ids   | 
| Return | osid.authentication.AgencyList | the returned  Agency  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  agencyIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgenciesByGenusType | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.type.Type | agencyGenusType | an agency genus type | 
| Return | osid.authentication.AgencyList | the returned  Agency  list  | |
| Errors | NULL_ARGUMENT |  agencyGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgenciesByParentGenusType | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.type.Type | agencyGenusType | an agency genus type | 
| Return | osid.authentication.AgencyList | the returned  Agency  list  | |
| Errors | NULL_ARGUMENT |  agencyGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgenciesByRecordType | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.type.Type | agencyRecordType | an agency record type | 
| Return | osid.authentication.AgencyList | the returned  Agency  list  | |
| Errors | NULL_ARGUMENT |  agencyRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAgenciesByProvider | ||
| Description | 
                     Gets an   | ||
| Parameters | osid.id.Id | resourceId | a resource  Id   | 
| Return | osid.authentication.AgencyList | the returned  Agency  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 | getAgencies | ||
| Description | 
                     Gets all   | ||
| Return | osid.authentication.AgencyList | an  AgencyList   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |