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

This session defines methods for looking up Item to AssessmentPart mappings.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated assessment part view: only items in the specified assessment part are accessible
  • federated assessment part view: includes items in assessment parts that are descendants of the specified assessment part

The methods useFederatedAssessmentPartView() and useIsolatedAssessmentPartView() behave as a radio group and one should be selected before invoking any lookup methods.

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.
MethodcanAccessAssessmentPartItems
Description

Tests if this user can perform assessment part lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all 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 lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeAsseessmentPartItemView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryAssessmentPartItemView
Description

A complete view of the returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedBankView
Description

Federates the view for methods in this session. A federated view will include assessment parts in catalogs which are children of this catalog in the bank hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedBankView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this bank only.

CompliancemandatoryThis method is must be implemented.
MethodgetAssessmentPartItems
Description

Gets the list of items mapped to the given AssessmentPart. In plenary mode, the returned list contains all known items or an error results. Otherwise, the returned list may contain only those items that are accessible through this session.

Parametersosid.id.IdassessmentPartId Id of the AssessmentPart
Returnosid.assessment.ItemListlist of items
ErrorsNOT_FOUND assessmentPartId not found
NULL_ARGUMENT assessmentPartId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetAssessmentPartsByItem
Description

Gets the assessment parts containing the given item. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session.

Parametersosid.id.IditemId Id of the Item
Returnosid.assessment.authoring.AssessmentPartListthe returned AssessmentPart list
ErrorsNOT_FOUND itemId is not found
NULL_ARGUMENT itemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.