Interface RequisiteSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, RequisiteQuerySession
This session provides methods for searching among Requisites .
The search query is constructed using the RequisiteQuery .
getRequisitesByQuery() is the basic search method and returns a
list of Requisites . A more advanced search may be performed with
getRequisitesBySearch() .It accepts a RequisiteSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getRequisitesBySearch() returns a RequisiteSearchResults that can
be used to access the resulting RequisiteList or be used to
perform a search within the result set through RequisiteSearch .
This session defines views that offer differing behaviors for searching.
- federated course catalog view: searches include requisites in course catalogs of which this course catalog is an ancestor in the course catalog hierarchy
- isolated course catalog view: searches are restricted to courses in this course catalog
Requisites may have a query record indicated by their respective
record types. The query record is accessed via the RequisiteQuery
.
-
Method Summary
Modifier and TypeMethodDescriptiongetRequisiteQueryFromInspector(RequisiteQueryInspector requisiteQueryInspector) Gets a requisite query from an inspector.getRequisitesBySearch(RequisiteQuery requisiteQuery, RequisiteSearch requisiteSearch) Gets the search results matching the given search query using the given search.Gets a requisite search.Gets a requisite search order.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.Methods inherited from interface RequisiteQuerySession
canSearchRequisites, getCourseCatalog, getCourseCatalogId, getRequisiteQuery, getRequisitesByQuery, useFederatedCourseCatalogView, useIsolatedCourseCatalogView, useSequesteredRequisiteView, useUnsequesteredRequisiteViewModifier and TypeMethodDescriptionbooleanTests if this user can performRequisitesearches.Gets theCourseCatalogassociated with this session.Gets theCourseCatalogIdassociated with this session.Gets a requisite query.getRequisitesByQuery(RequisiteQuery requisiteQuery) Gets a list ofRequisitesmatching the given requisite query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidThe returns from the search methods omit sequestered requisites.voidAll requisites are returned including sequestered requisites.
-
Method Details
-
getRequisiteSearch
RequisiteSearch getRequisiteSearch()Gets a requisite search.- Returns:
- the requisite search
- Compliance:
mandatory- This method must be implemented.
-
getRequisiteSearchOrder
RequisiteSearchOrder getRequisiteSearchOrder()Gets a requisite search order. TheRequisiteSearchOrderis supplied to aRequisiteSearchto specify the ordering of results.- Returns:
- the requisite search order
- Compliance:
mandatory- This method must be implemented.
-
getRequisitesBySearch
RequisiteSearchResults getRequisitesBySearch(RequisiteQuery requisiteQuery, RequisiteSearch requisiteSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
requisiteQuery- the requisite queryrequisiteSearch- the requisite search- Returns:
- the requisite search results
- Throws:
NullArgumentException-requisiteQueryorrequisiteSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-requisiteQueryorrequisiteSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getRequisiteQueryFromInspector
Gets a requisite query from an inspector. The inspector is available from aRequisiteSearchResults.- Parameters:
requisiteQueryInspector- a requisite query inspector- Returns:
- the requisite query
- Throws:
NullArgumentException-requisiteQueryInspectorisnullUnsupportedException-requisiteQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-