| Interface | osid.course.program.CredentialAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create a   For updates,   The delete operations delete   This session includes an  | ||
| 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 | canCreateCredentials | ||
| Description | Tests if this user can create  | ||
| Return | boolean |  false if Credential creation is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCredentialWithRecordTypes | ||
| Description | Tests if this user can create a single  | ||
| Parameters | osid.type.Type[] | credentialRecordTypes | array of credential record types | 
| Return | boolean |  true if Credential creation using the 
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT |  credentialRecordTypes is null  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentialFormForCreate | ||
| Description | Gets the credential form for creating new credentials. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | credentialRecordTypes | array of credential record types | 
| Return | osid.course.program.CredentialForm | the credential form | |
| Errors | NULL_ARGUMENT |  credentialRecordTypes is null  | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createCredential | ||
| Description | Creates a new  | ||
| Parameters | osid.course.program.CredentialForm | credentialForm | the form for this  Credential  | 
| Return | osid.course.program.Credential | the new  Credential  | |
| Errors | ILLEGAL_STATE |  credentialForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  credentialForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  credentialForm did not originate from 
getCredentialFormForCreate()  | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateCredentials | ||
| Description | Tests if this user can update  | ||
| Return | boolean |  false if credential modification is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCredentialFormForUpdate | ||
| Description | Gets the credential form for updating an existing credential. A new credential form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | credentialId | the  Id of the credential  | 
| Return | osid.course.program.CredentialForm | the credential form | |
| Errors | NOT_FOUND |  credentialId is not found | |
| NULL_ARGUMENT |  credentialId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCredential | ||
| Description | Updates an existing credential. | ||
| Parameters | osid.course.program.CredentialForm | credentialForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  credentialForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  credentialForm is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  credentialForm did not originate from getCredentialFormForUpdate() 
 | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteCredentials | ||
| Description | Tests if this user can delete  | ||
| Return | boolean |  false if credential deletion is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCredential | ||
| Description | Deletes a  | ||
| Parameters | osid.id.Id | credentialId | the  Id of the Credential to remove | 
| Errors | NOT_FOUND |  credentialId not found | |
| NULL_ARGUMENT |  credentialId is null  | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageCredentialAliases | ||
| Description | Tests if this user can manage  | ||
| Return | boolean |  false if credential aliasing is not 
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCredential | ||
| Description | Adds an  | ||
| Parameters | osid.id.Id | credentialId | the  Id of a credential  | 
| osid.id.Id | aliasId | the alias  Id  | |
| Errors | ALREADY_EXISTS |  aliasId is in use as a primary Id  | |
| NOT_FOUND |  credentialId not found | ||
| NULL_ARGUMENT |  credentialId or aliasId is null 
 | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |