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

This session manages queries and sequencing to create "smart" dynamic bank. An AssessmentPartQuery can be retrieved from this session and mapped to this Bank to create a virtual collection of assessment parts. The assessment part may be sequenced using the AssessmentPartSearchOrder from this session.

This Bank has a default query that matches any assessment part and a default search order that specifies no sequencing. The queries may be examined using an AssessmentPartQueryInspector. The query may be modified by converting the inspector back to an AssessmentPartQuery.

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
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanManageSmartBanks
Description

Tests if this user can manage smart bank. A return of true does not guarantee successful authorization. A return of false indicates that it is known 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 operations to unauthorized users.

Returnboolean false if smart bank management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentPartQuery
Description

Gets an assessment part query.

Returnosid.assessment.authoring.AssessmentPartQuerythe assessment part query
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentPartSearchOrder
Description

Gets an assessment part search order.

Returnosid.assessment.authoring.AssessmentPartSearchOrderthe assessment part search order
CompliancemandatoryThis method must be implemented.
MethodapplyAssessmentPartQuery
Description

Applies an assessment part query to this bank.

Parametersosid.assessment.authoring.AssessmentPartQueryassessmentPartQuerythe assessment part query
ErrorsNULL_ARGUMENT assessmentPartQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED assessmentPartQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectAssessmentPartQuery
Description

Gets an assessment part query inspector for this bank.

Returnosid.assessment.authoring.AssessmentPartQueryInspectorthe assessment part query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyAssessmentPartSequencing
Description

Applies an assessment part search order to this bank.

Parametersosid.assessment.authoring.AssessmentPartSearchOrderassessmentPartSearchOrderthe assessment part search order
ErrorsNULL_ARGUMENT assessmentPartSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTED assessmentPartSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetAssessmentPartQueryFromInspector
Description

Gets an assessment part query from an inspector.

Parametersosid.assessment.authoring.AssessmentPartQueryInspectorassessmentPartQueryInspectoran assessment part query inspector
Returnosid.assessment.authoring.AssessmentPartQuerythe assessment part query
ErrorsNULL_ARGUMENT assessmentPartQueryInspector is null
UNSUPPORTED assessmentPartQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.