Interface | osid.assessment.AssessmentTakenAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an | ||
Method | getBankId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Bank Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getBank | ||
Description |
Gets the | ||
Return | osid.assessment.Bank | the Bank associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAssessmentsTaken | ||
Description |
Tests if this user can create | ||
Return | boolean | false if AssessmentTaken creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAssessmentTakenWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | assessmentTakenRecordTypes | array of assessment taken record types |
Return | boolean | true if AssessmentTaken creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | assessmentTakenRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssessmentTakenFormForCreate | ||
Description |
Gets the assessment taken form for creating new assessments taken. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | assessmentOfferedId | the Id of the related AssessmentOffered |
osid.type.Type[] | assessmentTakenRecordTypes | array of assessment taken record types to be included in the create operation or an empty list if none | |
Return | osid.assessment.AssessmentTakenForm | the assessment taken form | |
Errors | NOT_FOUND | assessmentOfferedId is not found | |
NULL_ARGUMENT | assessmentOfferedId or assessmentTakenRecordTypes
is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createAssessmentTaken | ||
Description |
Creates a new | ||
Parameters | osid.assessment.AssessmentTakenForm | assessmentTakenForm | the form for this AssessmentTaken |
Return | osid.assessment.AssessmentTaken | the new AssessmentTaken | |
Errors | ILLEGAL_STATE | assessmentTakenForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | assessmentTakenForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
UNSUPPORTED | assessmentOfferedForm did not originate from
getAssessmentTakenFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateAssessmentsTaken | ||
Description |
Tests if this user can update | ||
Return | boolean | false if AssessmentTaken modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssessmentTakenFormForUpdate | ||
Description |
Gets the assessment taken form for updating an existing assessment taken. A new assessment taken form should be requested for each update transaction. | ||
Parameters | osid.id.Id | assessmentTakenId | the Id of the AssessmentTaken |
Return | osid.assessment.AssessmentTakenForm | the assessment taken form | |
Errors | NOT_FOUND | assessmentTakenId is not found | |
NULL_ARGUMENT | assessmentTakenId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateAssessmentTaken | ||
Description |
Updates an existing assessment taken. | ||
Parameters | osid.assessment.AssessmentTakenForm | assessmentTakenForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | assessmentTakenForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | assessmentTakenForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
UNSUPPORTED | assessmentOfferedForm did not originate from
getAssessmentTakenFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteAssessmentsTaken | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if AssessmentTaken deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteAssessmentTaken | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | assessmentTakenId | the Id of the AssessmentTaken to remove |
Errors | NOT_FOUND | assessmentTakenId not found | |
NULL_ARGUMENT | assessmentTakenId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageAssessmentTakenAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if AssessmentTaken aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasAssessmentTaken | ||
Description |
Adds an | ||
Parameters | osid.id.Id | assessmentTakenId | the Id of an AssessmentTaken |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | assessmentTakenId not found | ||
NULL_ARGUMENT | assessmentTakenId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. |