OSID Logo
OSID Specifications
assessment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.assessment.AssessmentBasicAuthoringSession
Implementsosid.OsidSession
Description

This session defines methods to manage assessment items in an assessment. This session is used for simple assessments without sections or parts. Updating the items on an assessment authored with sections and parts may result in an error.

MethodgetBankId
Description

Gets the Bank Id associated with this session.

Returnosid.id.Idthe Bank Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetBank
Description

Gets the Bank associated with this session.

Returnosid.assessment.Bankthe Bank associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAuthorAssessments
Description

Tests if this user can author assessments. 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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer authoring operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetItems
Description

Gets the items in sequence from an assessment.

Parametersosid.id.IdassessmentIdthe Id of the Assessment
Returnosid.assessment.ItemListlist of items
ErrorsNOT_FOUND assessmentid not found
NULL_ARGUMENT assessmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodaddItem
Description

Adds an existing Item to an assessment.

Parametersosid.id.IdassessmentIdthe Id of the Assessment
osid.id.IditemIdthe Id of the Item
ErrorsNOT_FOUND assessmentId or itemId not found
NULL_ARGUMENT assessmentId or itemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodremoveItem
Description

Removes an Item from this assessment.

Parametersosid.id.IdassessmentIdthe Id of the Assessment
osid.id.IditemIdthe Id of the Item
ErrorsNOT_FOUND assessmentId or itemId not found or itemId not on assessmentid
NULL_ARGUMENT assessmentId or itemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodmoveItem
Description

Moves an existing item to follow another item in an assessment.

Parametersosid.id.IdassessmentIdthe Id of the Assessment
osid.id.IditemIdthe Id of an Item
osid.id.IdpreceedingItemIdthe Id of a preceeding Item in the sequence
ErrorsNOT_FOUND assessmentId is not found, or itemId or preceedingItemId not on assessmentId
NULL_ARGUMENT assessmentId, itemId or preceedingItemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodorderItems
Description

Sequences existing items in an assessment.

Parametersosid.id.Id[]itemIdsthe Id of the Items
osid.id.IdassessmentIdthe Id of the Assessment
ErrorsNOT_FOUND assessmentId is not found or an itemId is not on assessmentId
NULL_ARGUMENT assessmentId or itemIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.