OSID Logo
OSID Specifications
assessment authoring package
Version 3.0.0
Interfaceosid.assessment.authoring.AssessmentPartBankAssignmentSession
Implementsosid.OsidSession
Used Byosid.assessment.authoring.AssessmentAuthoringManager
osid.assessment.authoring.AssessmentAuthoringProxyManager
Description

This session provides methods to re-assign AssessmentPart to Bank mappings. An AssessmentPart may appear in multiple Bank objects and removing the last reference to an AssessmentPart is the equivalent of deleting it. Each Bank may have its own authorizations governing who is allowed to operate on it.

Adding a reference of an AssessmentPart to another Bank is not a copy operation (eg: does not change its Id ).

MethodcanAssignAssessmentParts
Description

Tests if this user can alter assessment part/bank mappings. 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 lookup operations to unauthorized users.

Returnbooleanfalse if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignAssessmentPartsToBank
Description

Tests if this user can alter assessment part/bank mappings. 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 lookup operations to unauthorized users.

Parametersosid.id.IdbankIdthe Id of the Bank
Returnbooleanfalse if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENTbankId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBankIds
Description

Gets a list of bank including and under the given bank node in which any assessment part can be assigned.

Parametersosid.id.IdbankIdthe Id of the Bank
Returnosid.id.IdListlist of assignable bank Ids
ErrorsNULL_ARGUMENTbankId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBankIdsForAssessmentPart
Description

Gets a list of bank including and under the given bank node in which a specific assessment part can be assigned.

Parametersosid.id.IdbankIdthe Id of the Bank
osid.id.IdassessmentPartIdthe Id of the AssessmentPart
Returnosid.id.IdListlist of assignable bank Ids
ErrorsNULL_ARGUMENTbankId or assessmentPartId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignAssessmentPartToBank
Description

Adds an existing AssessmentPart to an Bank .

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart
osid.id.IdbankIdthe Id of the Bank
ErrorsALREADY_EXISTSassessmentPartId is already assigned to bankId
NOT_FOUNDassessmentPartId or bankId not found
NULL_ARGUMENTassessmentPartId or bankId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignAssessmentPartFromBank
Description

Removes an AssessmentPart from an Bank .

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart
osid.id.IdbankIdthe Id of the Bank
ErrorsNOT_FOUNDassessmentPartId or bankId not found or assessmentPartId not assigned to bankId
NULL_ARGUMENTassessmentPartId or bankId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignAssessmentPartToBank
Description

Moves an AssessmentPart from one Bank to another. Mappings to other Banks are unaffected.

Parametersosid.id.IdassessmentPartIdthe Id of the AssessmentPart
osid.id.IdfromBiankIdthe Id of the current Bank
osid.id.IdtoBankIdthe Id of the destination Bank
ErrorsALREADY_EXISTSassessmentPartId already assigned to toBankId
NOT_FOUNDassessmentPartId, fromBankId , or toBankId not found or assessmentPartId not mapped to fromBankId
NULL_ARGUMENTassessmentPartId, fromBankId , or toBankId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.