OSID Logo
OSID Specifications
assessment package
Version 3.1.0
Interfaceosid.assessment.AssessmentTakenBankAssignmentSession
Implementsosid.OsidSession
Used Byosid.assessment.AssessmentManager
osid.assessment.AssessmentProxyManager
Description

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

Moving or adding a reference of an AssessmentTaken to another Bank is not a copy operation (eg: does not change its Id ).

MethodcanAssignAssessmentsTaken
Description

Tests if this user can alter assessment taken/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.

Returnboolean false if mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignAssessmentsTakenToBank
Description

Tests if this user can alter assessment taken/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.IdbankId the Id of the Bank
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT bankId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableBankIds
Description

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

Parametersosid.id.IdbankId the Id of the Bank
Returnosid.id.IdList list of assignable bank Ids
ErrorsNULL_ARGUMENT bankId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableBankIdsForAssessmentTaken
Description

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

Parametersosid.id.IdbankId the Id of the Bank
osid.id.IdassessmentTakenId the Id of the AssessmentTaken
Returnosid.id.IdList list of assignable bank Ids
ErrorsNULL_ARGUMENT bankId or assessmentTakenId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignAssessmentTakenToBank
Description

Adds an existing AssessmentTaken to a Bank.

Parametersosid.id.IdassessmentTakenId the Id of the AssessmentTaken
osid.id.IdbankId the Id of the Bank
ErrorsALREADY_EXISTS assessmentTakenId is already assigned to bankId
NOT_FOUND assessmentTakenId or bankId not found
NULL_ARGUMENT assessmentTakenId or bankId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodunassignAssessmentTakenFromBank
Description

Removes an AssessmentTaken from a Bank.

Parametersosid.id.IdassessmentTakenId the Id of the AssessmentTaken
osid.id.IdbankId the Id of the Bank
ErrorsNOT_FOUND assessmentTakenId or bankId not found or assessmentTakenId not assigned to bankId
NULL_ARGUMENT assessmentTakenId or bankId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodreassignAssessmentTakenToBank
Description

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

Parametersosid.id.IdassessmentTakenId the Id of the AssessmentTaken
osid.id.IdfromBankId the Id of the current Bank
osid.id.IdtoBankId the Id of the destination Bank
ErrorsALREADY_EXISTS assessmentTakenId already assigned to toBankId
NOT_FOUND assessmentTakenId, fromBankId, or toBankId not found or assessmentTakenId not mapped to fromBankId
NULL_ARGUMENT assessmentTakenId, fromBankId, or toBankId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.