OSID Logo
OSID Specifications
assessment package
Version 3.1.0
Interfaceosid.assessment.AssessmentBasicAuthoringSession
Implementsosid.OsidSession
Used Byosid.assessment.AssessmentManager
osid.assessment.AssessmentProxyManager
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.Id the Bank Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetBank
Description

Gets the Bank associated with this session.

Returnosid.assessment.Bank the Bank associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetItems
Description

Gets the items in sequence from an assessment.

Parametersosid.id.IdassessmentId the Id of the Assessment
Returnosid.assessment.ItemList list of items
ErrorsNOT_FOUND assessmentid not found
NULL_ARGUMENT assessmentId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodaddItem
Description

Adds an existing Item to an assessment.

Parametersosid.id.IdassessmentId the Id of the Assessment
osid.id.IditemId the Id of the Item
ErrorsNOT_FOUND assessmentId or itemId not found
NULL_ARGUMENT assessmentId or itemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodremoveItem
Description

Removes an Item from this assessment.

Parametersosid.id.IdassessmentId the Id of the Assessment
osid.id.IditemId the Id of the Item
ErrorsNOT_FOUND assessmentId or itemId not found or itemId not on assessmentid
NULL_ARGUMENT assessmentId or itemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodmoveItem
Description

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

Parametersosid.id.IdassessmentId the Id of the Assessment
osid.id.IditemId the Id of an Item
osid.id.IdprecedingItemId the Id of a preceeding Item in the sequence
ErrorsNOT_FOUND assessmentId is not found, or itemId or precedingItemId not on assessmentId
NULL_ARGUMENT assessmentId, itemId or precedingItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodorderItems
Description

Sequences existing items in an assessment.

Parametersosid.id.Id[]itemIds the Id of the Items
osid.id.IdassessmentId the 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.