public interface BankQuerySession extends OsidSession
This session provides methods for searching among Bank
objects. The search query is constructed using the BankQuery.
Banks may have aquery record indicated by their respective record
types. The query record is accessed via the BankQuery.
Modifier and Type | Method and Description |
---|---|
boolean |
canSearchBanks()
Tests if this user can perform
Bank searches. |
BankQuery |
getBankQuery()
Gets a bank query.
|
BankList |
getBanksByQuery(BankQuery bankQuery)
Gets a list of
Bank objects matching the given bank
query. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canSearchBanks()
Bank
searches. A return
of true does not guarantee successful authorization. A return of false
indicates that it is known all 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 search operations to
unauthorized users. false
if search methods are not authorized,
true
otherwisemandatory
- This method must be implemented. BankQuery getBankQuery()
mandatory
- This method must be implemented. BankList getBanksByQuery(BankQuery bankQuery) throws OperationFailedException, PermissionDeniedException
Bank
objects matching the given bank
query.bankQuery
- the bank query BankList
NullArgumentException
- bankQuery
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- bankQuery
is not
of this servicemandatory
- This method must be implemented.