| Interface | osid.course.program.CredentialLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods for retrieving credentials. A 
                 This lookup session defines several views: 
  The methods   Credentials may have an additional records indicated by 
                their respective record types. The record may not be accessed 
                through a cast of the   | ||
| Method | getCourseCatalogId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  CourseCatalog Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCourseCatalog | ||
| Description | 
                     Gets the   | ||
| Return | osid.course.CourseCatalog | the course catalog | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupCredentials | ||
| 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 | useComparativeCredentialView | ||
| 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 | usePlenaryCredentialView | ||
| Description | 
                     A complete view of the   | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedCourseCatalogView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include credentials in catalogs which are children of this catalog in the course catalog hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedCourseCatalogView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts retrievals to this course catalog only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getCredential | ||
| Description | 
                     Gets the   | ||
| Parameters | osid.id.Id | credentialId | the  Id  of the  Credential  to retrieve  | 
| Return | osid.course.program.Credential | the returned  Credential   | |
| Errors | NOT_FOUND | no  Credential  found with the given  Id   |                 |
| NULL_ARGUMENT |  credentialId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentialsByIds | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.id.IdList | credentialIds | the list of  Ids  to retrieve  | 
| Return | osid.course.program.CredentialList | the returned  CredentialList  list  | |
| Errors | NOT_FOUND | an  Id was  not found  |                 |
| NULL_ARGUMENT |  credentialIds  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentialsByGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | credentialGenusType | a credential genus type | 
| Return | osid.course.program.CredentialList | the returned  CredentialList  list  | |
| Errors | NULL_ARGUMENT |  credentialGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentialsByParentGenusType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | credentialGenusType | a credential genus type | 
| Return | osid.course.program.CredentialList | the returned  CredentialList  list  | |
| Errors | NULL_ARGUMENT |  credentialGenusType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentialsByRecordType | ||
| Description | 
                     Gets a   | ||
| Parameters | osid.type.Type | credentialRecordType | a credential record type | 
| Return | osid.course.program.CredentialList | the returned  CredentialList  list  | |
| Errors | NULL_ARGUMENT |  credentialRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentials | ||
| Description | 
                     Gets all   | ||
| Return | osid.course.program.CredentialList | a list of  Credentials   | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |