public interface AssessmentTakenBankSession extends OsidSession
This session provides methods to retrieve AssessmentTaken
to Bank mappings. An AssessmentTaken
may appear in multiple Banks. Each Bank may
have its own authorizations governing who is allowed to look at it.
This lookup session defines two views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupAssessmentTakenBankMappings()
Tests if this user can perform lookups of assessment taken/bank
mappings.
|
AssessmentTakenList |
getAssessmentsTakenByBank(Id bankId)
Gets the list of
AssessmentTakens associated with a
Bank. |
AssessmentTakenList |
getAssessmentsTakenByBanks(IdList bankIds)
Gets the list of
AssessmentTaken objects corresponding
to a list of Banks. |
IdList |
getAssessmentTakenIdsByBank(Id bankId)
Gets the list of
AssessmentTaken Ids
associated with a Bank. |
IdList |
getAssessmentTakenIdsByBanks(IdList bankIds)
Gets the list of
AssessmentTaken Ids corresponding to a
list of Banks. |
IdList |
getBankIdsByAssessmentTaken(Id assessmentTakenId)
Gets the list of
Bank Ids mapped to an
AssessmentTaken. |
BankList |
getBanksByAssessmentTaken(Id assessmentTakenId)
Gets the list of
Banks mapped to an
AssessmentTaken. |
void |
useComparativeBankView()
The returns from the lookup methods may omit or translate elements
based on this session, such as assessment, and not result in an error.
|
void |
usePlenaryBankView()
A complete view of the
AssessmentTaken and Bank
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupAssessmentTakenBankMappings()
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 useComparativeBankView()
mandatory - This method is must be implemented. void usePlenaryBankView()
AssessmentTaken 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 getAssessmentTakenIdsByBank(Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AssessmentTaken Ids
associated with a Bank. bankId - Id of the Bank Ids NotFoundException - bankId is not foundNullArgumentException - bankId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. AssessmentTakenList getAssessmentsTakenByBank(Id bankId) throws NotFoundException, OperationFailedException, PermissionDeniedException
AssessmentTakens associated with a
Bank. bankId - Id of the Bank NotFoundException - bankId is not foundNullArgumentException - bankId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. IdList getAssessmentTakenIdsByBanks(IdList bankIds) throws OperationFailedException, PermissionDeniedException
AssessmentTaken Ids corresponding to a
list of Banks. bankIds - list of bank Ids Ids NullArgumentException - bankIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. AssessmentTakenList getAssessmentsTakenByBanks(IdList bankIds) throws OperationFailedException, PermissionDeniedException
AssessmentTaken objects corresponding
to a list of Banks. bankIds - list of bank Ids NullArgumentException - bankIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. IdList getBankIdsByAssessmentTaken(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Bank Ids mapped to an
AssessmentTaken. assessmentTakenId - Id of an
AssessmentTaken Ids NotFoundException - assessmentTakenId is
not foundNullArgumentException - assessmentTakenId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. BankList getBanksByAssessmentTaken(Id assessmentTakenId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Banks mapped to an
AssessmentTaken. assessmentTakenId - Id of an
AssessmentTaken NotFoundException - assessmentTakenId is
not foundNullArgumentException - assessmentTakenId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented.