public interface AssessmentPartBankSession extends OsidSession
This session provides methods to retrieve AssessmentPart
to Bank
mappings. an AssessmentPart
may
appear in multiple Bank
objects. Each bank may have its own
authorizations governing who is allowed to look at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupAssessmentPartBankMappings()
Tests if this user can perform lookups of assessment part/bank
mappings.
|
IdList |
getAssessmentPartIdsByBank(Id bankId)
Gets the list of
AssessmentPartIds associated with an
Bank. |
IdList |
getAssessmentPartIdsByBanks(IdList bankIds)
Gets the list of
AssessmentPart Ids corresponding to a
list of Banks. |
AssessmentPartList |
getAssessmentPartsByBank(Id bankId)
Gets the list of assessment parts associated with an
Bank. |
AssessmentPartList |
getAssessmentPartsByBanks(IdList bankIds)
Gets the list of assessment part corresponding to a list of
Banks. |
IdList |
getBankIdsByAssessmentPart(Id assessmentPartId)
Gets the
Bank Ids mapped to an
AssessmentPart. |
BankList |
getBanksByAssessmentPart(Id assessmentPartId)
Gets the
Banks mapped to an AssessmentPart. |
void |
useComparativeAssessmentPartBankView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryAssessmentPartBankView()
A complete view of the
AssessmentPart and Bank
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupAssessmentPartBankMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeAssessmentPartBankView()
mandatory
- This method is must be implemented. void usePlenaryAssessmentPartBankView()
AssessmentPart
and Bank
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.mandatory
- This method is must be implemented. IdList getAssessmentPartIdsByBank(Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AssessmentPartIds
associated with an
Bank.
bankId
- Id
of the Bank
Ids
NotFoundException
- bankId
is not foundNullArgumentException
- bankId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AssessmentPartList getAssessmentPartsByBank(Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Bank.
bankId
- Id
of the Bank
NotFoundException
- bankId
is not foundNullArgumentException
- bankId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getAssessmentPartIdsByBanks(IdList bankIds) throws OperationFailedException, PermissionDeniedException
AssessmentPart Ids
corresponding to a
list of Banks.
bankIds
- list of bank Ids
Ids
NullArgumentException
- bankIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. AssessmentPartList getAssessmentPartsByBanks(IdList bankIds) throws OperationFailedException, PermissionDeniedException
Banks.
bankIds
- list of bank Ids
NullArgumentException
- bankIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getBankIdsByAssessmentPart(Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Bank
Ids
mapped to an
AssessmentPart.
assessmentPartId
- Id
of an AssessmentPart
NotFoundException
- assessmentPartId
is
not foundNullArgumentException
- assessmentPartId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. BankList getBanksByAssessmentPart(Id assessmentPartId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Banks
mapped to an AssessmentPart.
assessmentPartId
- Id
of an AssessmentPart
NotFoundException
- assessmentPartId
is
not foundNullArgumentException
- assessmentPartId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.