public interface BlockQuerySession extends OsidSession
This session provides methods for searching among Block
objects. The search query is constructed using the BlockQuery.
This session defines views that offer differing behaviors for searching.
Blocks may have a query record indicated by their respective record
types. The query record is accessed via the BlockQuery.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSearchBlocks()
Tests if this user can perform
Block lookups. |
BlockQuery |
getBlockQuery()
Gets a block query.
|
BlockList |
getBlocksByQuery(BlockQuery blockQuery)
Gets a list of
Blocks matching the given block query. |
Oubliette |
getOubliette()
Gets the
Oubliette associated with this session. |
Id |
getOublietteId()
Gets the
Oubliette Id associated with
this session. |
void |
useFederatedOublietteView()
Federates the view for methods in this session.
|
void |
useIsolatedOublietteView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOublietteId()
Oubliette Id associated with
this session. Oubliette Id associated with this sessionmandatory - This method must be implemented. Oubliette getOubliette() throws OperationFailedException, PermissionDeniedException
Oubliette associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canSearchBlocks()
Block lookups. 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 not offer lookup operations to unauthorized
users. false if search methods are not authorized,
true otherwisemandatory - This method must be implemented. void useFederatedOublietteView()
mandatory - This method is must be implemented. void useIsolatedOublietteView()
mandatory - This method is must be implemented. BlockQuery getBlockQuery()
mandatory - This method must be implemented. BlockList getBlocksByQuery(BlockQuery blockQuery) throws OperationFailedException, PermissionDeniedException
Blocks matching the given block query.blockQuery - the block query BlockList NullArgumentException - blockQuery is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - blockQuery is not
of this servicemandatory - This method must be implemented.