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

This session provides the means for adding items to an assessment part. The item is identified inside an assesment part using its own Id. To add the same item to the assessment part, multiple assessment parts should be used and placed at the same level in the AssessmentPart hierarchy.

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

Tests if this user can manage mapping of Items to AssessmentParts. 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 an application hint that may opt not to offer composition operations.

Returnboolean false if assessment part composition is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodaddItem
Description

Appends an item to an assessment part.

Parametersosid.id.IditemId Id of the Item
osid.id.IdassessmentPartId Id of the AssessmentPart
ErrorsALREADY_EXISTS itemId already part of assessmentPartId
NOT_FOUND itemId or assessmentPartId not found
NULL_ARGUMENT itemId or assessmentPartId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization fauilure
CompliancemandatoryThis method must be implemented.
MethodmoveItemAhead
Description

Reorders items in an assessment part by moving the specified item in front of a reference item.

Parametersosid.id.IditemId Id of the Item
osid.id.IdassessmentPartId Id of the AssessmentPartId
osid.id.IdreferenceId Id of the reference Item
ErrorsNOT_FOUND itemId or referenceId not found in assessmentPartId
NULL_ARGUMENT itemId, referenceId or assessmentPartId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization fauilure
CompliancemandatoryThis method must be implemented.
MethodmoveItemBehind
Description

Reorders items in an assessment part by moving the specified item behind of a reference item.

Parametersosid.id.IditemId Id of the Item
osid.id.IdassessmentPartId Id of the AssessmentPartId
osid.id.IdreferenceId Id of the reference Item
ErrorsNOT_FOUND itemId or referenceId not found in assessmentPartId
NULL_ARGUMENT itemId, referenceId or assessmentPartId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization fauilure
CompliancemandatoryThis method must be implemented.
MethodorderItems
Description

Reorders a set of items in an assessment part.

Parametersosid.id.Id[]itemIds Ids for a set of Items
osid.id.IdassessmentPartId Id of the AssessmentPartId
ErrorsNOT_FOUND assessmentPartId not found or, an itemId not related to assessmentPartId
NULL_ARGUMENT itemIds or agendaId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodremoveItem
Description

Removes an Item from an AssessmentPartId.

Parametersosid.id.IditemId Id of the Item
osid.id.IdassessmentPartId Id of the AssessmentPartId
ErrorsNOT_FOUND itemId not found in assessmentPartId
NULL_ARGUMENT itemId or assessmentPartId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization fauilure
CompliancemandatoryThis method must be implemented.