public interface ModuleSearchSession extends ModuleQuerySession
This session provides methods for searching Module
objects. The search query is constructed using the ModuleQuery.
The module record Type
also specifies the record
for the module query.
getModulesByQuery()
is the basic search method and
returns a list of CourseCatalog
elements. A more advanced
search may be performed with getModulesBySearch().
It
accepts a ModuleSearch
in addition to the query for the
purpose of specifying additional options affecting the entire search, such
as ordering. getModulesBySearch()
returns a
ModuleSearchResults
that can be used to access the resulting
ModuleList
or be used to perform a search within the result
set through ModuleSearch.
Modules may have a query record indicated by their respective record
types. The query record is accessed via the ModuleQuery.
The returns in this session may not be cast directly to these interfaces.
Modifier and Type | Method and Description |
---|---|
ModuleQuery |
getModuleQueryFromInspector(ModuleQueryInspector moduleQueryInspector)
Gets a module query from an inspector.
|
ModuleSearchResults |
getModulesBySearch(ModuleQuery moduleQuery,
ModuleSearch moduleSearch)
Gets the search results matching the given search.
|
ModuleSearch |
getModuleSearch()
Gets a module search.
|
ModuleSearchOrder |
getModuleSearchOrder()
Gets a module search order.
|
canSearchModules, getCourseCatalog, getCourseCatalogId, getModuleQuery, getModulesByQuery, useFederatedCourseCatalogView, useIsolatedCourseCatalogView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
ModuleSearch getModuleSearch()
mandatory
- This method must be implemented. ModuleSearchOrder getModuleSearchOrder()
ModuleSearchOrder
is
supplied to a ModuleSearch
to specify the ordering of
results.mandatory
- This method must be implemented. ModuleSearchResults getModulesBySearch(ModuleQuery moduleQuery, ModuleSearch moduleSearch) throws OperationFailedException, PermissionDeniedException
moduleQuery
- the module querymoduleSearch
- the module searchNullArgumentException
- moduleQuery
or
moduleSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- moduleQuery
or
moduleSearch
is not of this servicemandatory
- This method must be implemented. ModuleQuery getModuleQueryFromInspector(ModuleQueryInspector moduleQueryInspector)
ModuleSearchResults.
moduleQueryInspector
- a module query inspectorNullArgumentException
- moduleQueryInspector
is null
UnsupportedException
- moduleQueryInspector
is not of this servicemandatory
- This method must be implemented.