Interface InquirySearchSession
- All Superinterfaces:
AutoCloseable, Closeable, InquiryQuerySession, OsidSession, OsidSession
This session provides methods for searching among Inquiries .
The search query is constructed using the InquiryQuery .
getInquiriesByQuery() is the basic search method and returns a
list of Inquiries . A more advanced search may be performed with
getInquiriesBySearch() .It accepts an InquirySearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getInquiriesBySearch() returns an InquirySearchResults that can
be used to access the resulting InquiryList or be used to perform
a search within the result set through InquirySearch .
This session defines views that offer differing behaviors for searching.
- federated inquest view: searches include inquiries in inquests of which this inquest is an ancestor in the inquest hierarchy
- isolated inquest view: searches are restricted to inquiries in this inquest
Inquiries may have a record indicated by their respective record
types. The query record is accessed via the InquiryQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetInquiriesBySearch(InquiryQuery inquiryQuery, InquirySearch inquirySearch) Gets the search results matching the given search query using the given search.getInquiryQueryFromInspector(InquiryQueryInspector inquiryQueryInspector) Gets an inquiry query from an inspector.Gets an inquiry search.Gets an inquiry search order.Methods inherited from interface InquiryQuerySession
canSearchInquiries, getInquest, getInquestId, getInquiriesByQuery, getInquiryQuery, useFederatedInquestView, useIsolatedInquestViewModifier and TypeMethodDescriptionbooleanTests if this user can performInquirylookups.Gets theInquestassociated with this session.Gets theInquestIdassociated with this session.getInquiriesByQuery(InquiryQuery inquiryQuery) Gets a list ofInquiriesmatching the given inquiry query,Gets an inquiry query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.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.
-
Method Details
-
getInquirySearch
InquirySearch getInquirySearch()Gets an inquiry search.- Returns:
- the inquiry search
- Compliance:
mandatory- This method must be implemented.
-
getInquirySearchOrder
InquirySearchOrder getInquirySearchOrder()Gets an inquiry search order. TheInquirySearchOrderis supplied to anInquirySearchto specify the ordering of results.- Returns:
- the inquiry search order
- Compliance:
mandatory- This method must be implemented.
-
getInquiriesBySearch
InquirySearchResults getInquiriesBySearch(InquiryQuery inquiryQuery, InquirySearch inquirySearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
inquiryQuery- the inquiry queryinquirySearch- the inquiry search- Returns:
- the inquiry search results
- Throws:
NullArgumentException-inquiryQueryorinquirySearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-inquiryQueryorinquirySearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getInquiryQueryFromInspector
Gets an inquiry query from an inspector. The inspector is available from anInquirySearchResults.- Parameters:
inquiryQueryInspector- an inquiry query inspector- Returns:
- the inquiry query
- Throws:
NullArgumentException-inquiryQueryInspectorisnullUnsupportedException-inquiryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-