Interface | osid.assessment.authoring.AssessmentPartAdminSession | ||
---|---|---|---|
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 | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAssessmentParts | ||
Description |
Tests if this user can create assessment parts. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
Return | boolean | false if AssessmentPart creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAssessmentPartWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | assessmentPartRecordTypes | array of assessment part record types |
Return | boolean | true if AssessmentPart creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | assessmentPartRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssessmentPartFormForCreateForAssessment | ||
Description |
Gets the assessment part form for creating new assessment parts for an assessment. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | assessmentId | an assessment Id |
osid.type.Type[] | assessmentPartRecordTypes | array of assessment part record types to be included in the create operation or an empty list if none | |
Return | osid.assessment.authoring.AssessmentPartForm | the assessment part form | |
Errors | NOT_FOUND | assessmentId is not found | |
NULL_ARGUMENT | assessmentId or assessmentPartRecordTypes 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 | createAssessmentPartForAssessment | ||
Description |
Creates a new assessment part. | ||
Parameters | osid.assessment.authoring.AssessmentPartForm | assessmentPartForm | assessment part form |
Return | osid.assessment.authoring.AssessmentPart | the new part | |
Errors | ILLEGAL_STATE | assessmentPartForm already used in a create transaction | |
INVALID_ARGUMENT | assessmentPartForm is invalid | ||
NULL_ARGUMENT | assessmentPartForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
UNSUPPORTED | assessmentPartForm did not originate from
getAssessmentPartFormForCreateForAssessment() | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssessmentPartFormForCreateForAssessmentPart | ||
Description |
Gets the assessment part form for creating new assessment parts under another assessment part. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | assessmentPartId | an assessment part Id |
osid.type.Type[] | assessmentPartRecordTypes | array of assessment part record types to be included in the create operation or an empty list if none | |
Return | osid.assessment.authoring.AssessmentPartForm | the assessment part form | |
Errors | NOT_FOUND | assessmentPartId is not found | |
NULL_ARGUMENT | assessmentPartId or assessmentPartRecordTypes
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 | createAssessmentPartForAssessmentPart | ||
Description |
Creates a new assessment part. | ||
Parameters | osid.assessment.authoring.AssessmentPartForm | assessmentPartForm | assessment part form |
Return | osid.assessment.authoring.AssessmentPart | the new part | |
Errors | ILLEGAL_STATE | assessmentPartForm already used in a create transaction | |
INVALID_ARGUMENT | assessmentPartForm is invalid | ||
NULL_ARGUMENT | assessmentPartForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
UNSUPPORTED | assessmentPartForm did not originate from
getAssessmentPartFormForCreateForAssessmentPart() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateAssessmentParts | ||
Description |
Tests if this user can update | ||
Return | boolean | false if assessment part modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssessmentPartFormForUpdate | ||
Description |
Gets the assessment part form for updating an existing assessment part. A new assessment part form should be requested for each update transaction. | ||
Parameters | osid.id.Id | assessmentPartId | the Id of the AssessmentPart |
Return | osid.assessment.authoring.AssessmentPartForm | the assessment part form | |
Errors | NOT_FOUND | assessmentPartId is not found | |
NULL_ARGUMENT | assessmentPartId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateAssessmentPart | ||
Description |
Updates an existing assessment part. | ||
Parameters | osid.id.Id | assessmentPartId | the Id of the AssessmentPart |
osid.assessment.authoring.AssessmentPartForm | assessmentPartForm | part form | |
Errors | NOT_FOUND | assessmentPartId not found | |
NULL_ARGUMENT | assessmentPartId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
UNSUPPORTED | assessmentPartForm is not of this service | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteAssessmentParts | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if AssessmentPart deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteAssessmentPart | ||
Description |
Removes an asessment part and all mapped items. | ||
Parameters | osid.id.Id | assessmentPartId | the Id of the AssessmentPart |
Errors | NOT_FOUND | assessmentPartId not found | |
NULL_ARGUMENT | assessmentPartId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure occurred | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageAssessmentPartAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if AssessmentPart aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasAssessmentPart | ||
Description |
Adds an | ||
Parameters | osid.id.Id | assessmentPartId | the Id of an AssessmentPart |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | assessmentPartId not found | ||
NULL_ARGUMENT | assessmentPartId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |