public interface ActivityUnitSearchSession extends ActivityUnitQuerySession
This session provides methods for searching among ActivityUnit
objects. The search query is constructed using the
ActivityUnitQuery.
getActivityUnitsByQuery()
is the basic search method
and returns a list of ActivityUnits.
A more advanced search
may be performed with getActivityUnitsBySearch().
It
accepts an ActivityUnitSearch
in addition to the query for
the purpose of specifying additional options affecting the entire search,
such as ordering. getActivityUnitsBySearch()
returns an
ActivityUnitSearchResults
that can be used to access the
resulting ActivityUnitList
or be used to perform a search
within the result set through ActivityUnitSearch.
This session defines views that offer differing behaviors for searching.
Activity Units may have a query record indicated by their respective
record types. The query record is accessed via the
ActivityUnitQuery.
Modifier and Type | Method and Description |
---|---|
ActivityUnitQuery |
getActivityUnitQueryFromInspector(ItemQueryInspector activityUnitQueryInspector)
Gets an activity unit query from an inspector.
|
ActivityUnitSearchResults |
getActivityUnitsBySearch(ActivityUnitQuery activityUnitQuery,
ActivityUnitSearch activityUnitSearch)
Gets the search results matching the given search query using the
given search.
|
ActivityUnitSearch |
getActivityUnitSearch()
Gets an activity unit search.
|
ActivityUnitSearchOrder |
getActivityUnitSearchOrder()
Gets an activity search order.
|
canSearchActivityUnits, getActivityUnitQuery, getActivityUnitsByQuery, getCourseCatalog, getCourseCatalogId, useFederatedCourseCatalogView, useIsolatedCourseCatalogView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
ActivityUnitSearch getActivityUnitSearch()
mandatory
- This method must be implemented. ActivityUnitSearchOrder getActivityUnitSearchOrder()
ActivityUnitSearchOrder
is supplied to an ActivityUnitSearch
to specify
the ordering of results.mandatory
- This method must be implemented. ActivityUnitSearchResults getActivityUnitsBySearch(ActivityUnitQuery activityUnitQuery, ActivityUnitSearch activityUnitSearch) throws OperationFailedException, PermissionDeniedException
activityUnitQuery
- the activity unit queryactivityUnitSearch
- the activity unit searchNullArgumentException
- activityUnitQuery
or activityUnitSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- activityUnitQuery
or activityUnitSearch
is not of this servicemandatory
- This method must be implemented. ActivityUnitQuery getActivityUnitQueryFromInspector(ItemQueryInspector activityUnitQueryInspector)
ActivityUnitSearchResults.
activityUnitQueryInspector
- an activity unit query inspectorNullArgumentException
-
activityUnitQueryInspector
is null
UnsupportedException
-
activityUnitQueryInspector
is not of this servicemandatory
- This method must be implemented.