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

This session provides methods to re-assign AssessmentOffered objects to Banks. An AssessmentOffered may map to multiple Banks and removing the last reference to an AssessmentOffered 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 AssessmentOffered to another Bank is not a copy operation (eg: does not change its Id ).

MethodcanAssignAssessmentsOffered
Description

Tests if this user can alter assessment offered/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
CompliancemandatoryThis method must be implemented.
MethodcanAssignAssessmentsOfferedToBank
Description

Tests if this user can alter assessment offered/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
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT bankId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableBankIds
Description

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

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

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

Parametersosid.id.IdbankIdthe Id of the Bank
osid.id.IdassessmentOfferedIdthe Id of the AssessmentOffered
Returnosid.id.IdListlist of assignable bank Ids
ErrorsNULL_ARGUMENT bankId or assessmentOfferedId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignAssessmentOfferedToBank
Description

Adds an existing AssessmentOffered to a Bank.

Parametersosid.id.IdassessmentOfferedIdthe Id of the AssessmentOffered
osid.id.IdbankIdthe Id of the Bank
ErrorsALREADY_EXISTS assessmentOfferedId is already assigned to bankId
NOT_FOUND assessmentOfferedId or bankId not found
NULL_ARGUMENT assessmentOfferedId or bankId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodunassignAssessmentOfferedFromBank
Description

Removes an AssessmentOffered from a Bank.

Parametersosid.id.IdassessmentOfferedIdthe Id of the AssessmentOffered
osid.id.IdbankIdthe Id of the Bank
ErrorsNOT_FOUND assessmentOfferedId or bankId not found or assessmentOfferedId not assigned to bankId
NULL_ARGUMENT assessmentOfferedId or bankId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodreassignAssessmentOfferedToBilling
Description

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

Parametersosid.id.IdassessmentOfferedIdthe Id of the AssessmentOffered
osid.id.IdfromBankIdthe Id of the current Bank
osid.id.IdtoBankIdthe Id of the destination Bank
ErrorsNOT_FOUND assessmentOfferedId, fromBankId, or toBankId not found or assessmentOfferedId not mapped to fromBankId
NULL_ARGUMENT assessmentOfferedId, fromBankId, or toBankId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.