public interface EnrollmentSearchSession extends EnrollmentQuerySession
This session provides methods for searching among Enrollment
objects. The search query is constructed using the
EnrollmentQuery.
getEnrollmentsByQuery()
is the basic search method and
returns a list of Enrollments.
A more advanced search may
be performed with getEnrollmentsBySearch().
It accepts an
EnrollmentSearch
in addition to the query for the purpose
of specifying additional options affecting the entire search, such as
ordering. getEnrollmentsBySearch()
returns an
EnrollmentSearchResults
that can be used to access the resulting
EnrollmentList
or be used to perform a search within the
result set through EnrollmentSearch.
This session defines views that offer differing behaviors for searching.
Enrollments may have a query record indicated by their respective
record types. The query record is accessed via the EnrollmentQuery.
Modifier and Type | Method and Description |
---|---|
EnrollmentQuery |
getEnrollmentQueryFromInspector(ItemQueryInspector enrollmentQueryInspector)
Gets an enrollment query from an inspector.
|
EnrollmentSearchResults |
getEnrollmentsBySearch(EnrollmentQuery enrollmentQuery,
EnrollmentSearch enrollmentSearch)
Gets the search results matching the given search query using the
given search.
|
EnrollmentSearch |
getEnrollmentSearch()
Gets an enrollment search.
|
EnrollmentSearchOrder |
getEnrollmentSearchOrder()
Gets an enrollment search order.
|
canSearchEnrollments, getCourseCatalog, getCourseCatalogId, getEnrollmentQuery, getEnrollmentsByQuery, useFederatedCourseCatalogView, useIsolatedCourseCatalogView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
EnrollmentSearch getEnrollmentSearch()
mandatory
- This method must be implemented. EnrollmentSearchOrder getEnrollmentSearchOrder()
EnrollmentSearchOrder
is supplied to an EnrollmentSearch
to specify
the ordering of results.mandatory
- This method must be implemented. EnrollmentSearchResults getEnrollmentsBySearch(EnrollmentQuery enrollmentQuery, EnrollmentSearch enrollmentSearch) throws OperationFailedException, PermissionDeniedException
enrollmentQuery
- the enrollment queryenrollmentSearch
- the enrollment searchNullArgumentException
- enrollmentQuery
or enrollmentSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- enrollmentQuery
or enrollmentSearch
is not of this servicemandatory
- This method must be implemented. EnrollmentQuery getEnrollmentQueryFromInspector(ItemQueryInspector enrollmentQueryInspector)
EnrollmentSearchResults.
enrollmentQueryInspector
- an enrollment query inspectorNullArgumentException
- enrollmentQueryInspector
is null
UnsupportedException
- enrollmentQueryInspector
is not of this servicemandatory
- This method must be implemented.