public interface CredentialSearchSession extends CredentialQuerySession
This session provides methods for searching among credential
objects. The search query is constructed using the
CredentialQuery.
getCredentialsByQuery()
is the basic search method and
returns a list of Credentials.
A more advanced search may
be performed with getCredentialsBySearch().
It accepts a
CredentialSearch
in addition to the query for the purpose
of specifying additional options affecting the entire search, such as
ordering. getCredentialsBySearch()
returns a
CredentialSearchResults
that can be used to access the resulting
CredentialList
or be used to perform a search within the
result set through CredentialSearch.
This session defines views that offer differing behaviors for searching.
Credentials may have a query record indicated by their respective
record types. The query record is accessed via the CredentialQuery.
Modifier and Type | Method and Description |
---|---|
CredentialQuery |
getCredentialQueryFromInspector(CredentialQueryInspector credentialQueryInspector)
Gets a credential query from an inspector.
|
CredentialSearchResults |
getCredentialsBySearch(CredentialQuery credentialQuery,
CredentialSearch credentialSearch)
Gets the search results matching the given search query using the
given search.
|
CredentialSearch |
getCredentialSearch()
Gets a credential search.
|
CredentialSearchOrder |
getCredentialSearchOrder()
Gets a credential search order.
|
canSearchCredentials, getCourseCatalog, getCourseCatalogId, getCredentialQuery, getCredentialsByQuery, useFederatedCourseCatalogView, useIsolatedCourseCatalogView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
CredentialSearch getCredentialSearch()
mandatory
- This method must be implemented. CredentialSearchOrder getCredentialSearchOrder()
CredentialSearchOrder
is supplied to a CredentialSearch
to specify
the ordering of results.mandatory
- This method must be implemented. CredentialSearchResults getCredentialsBySearch(CredentialQuery credentialQuery, CredentialSearch credentialSearch) throws OperationFailedException, PermissionDeniedException
credentialQuery
- the credential querycredentialSearch
- the credential searchNullArgumentException
- credentialQuery
or credentialSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- credentialQuery
or credentialSearch
is not of this servicemandatory
- This method must be implemented. CredentialQuery getCredentialQueryFromInspector(CredentialQueryInspector credentialQueryInspector)
CredentialSearchResults.
credentialQueryInspector
- a credential query inspectorNullArgumentException
- credentialQueryInspector
is null
UnsupportedException
- credentialQueryInspector
is not of this servicemandatory
- This method must be implemented.