Interface EntrySearchSession
- All Superinterfaces:
AutoCloseable, Closeable, EntryQuerySession, OsidSession, OsidSession
This session provides methods for searching among entries. The search
query is constructed using the EntryQuery .
getEntryByQuery() is the basic search method and returns a list of
Entries . A more advanced search may be performed with
getEntriesBySearch() .It accepts an EntrySearch in addition to
the query for the purpose of specifying additional options affecting the
entire search, such as ordering. getEntriesBySearch() returns an
EntrySearchResult that can be used to access the resulting
EntryList or be used to perform a search within the result set through
EntrySearch .-
Method Summary
Modifier and TypeMethodDescriptiongetEntriesBySearch(EntryQuery entryQuery, EntrySearch entrySearch) Gets a list ofEntryelements matching the given search.getEntryQueryFromInspector(EntryQueryInspector entryQueryInspector) Gets an entry query from an inspector.Gets an entry search.Gets an entry search order.Methods inherited from interface EntryQuerySession
canSearchEntries, getDictionary, getDictionaryId, getEntriesByQuery, getEntryQuery, useFederatedDictionaryView, useIsolatedDictionaryViewModifier and TypeMethodDescriptionbooleanTests if this user can perform dictionary entry searches.Gets theDictionaryassociated with this session.Gets theDictionaryIdassociated with this session.getEntriesByQuery(EntryQuery entryQuery) Gets a list ofEntryelements matching the given search.Gets an entry 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
-
getEntrySearch
EntrySearch getEntrySearch()Gets an entry search.- Returns:
- the entry search
- Compliance:
mandatory- This method must be implemented.
-
getEntrySearchOrder
EntrySearchOrder getEntrySearchOrder()Gets an entry search order. TheEntrySearchOrderis supplied to anEntrySearchto specify the ordering of results.- Returns:
- the entry search order
- Compliance:
mandatory- This method must be implemented.
-
getEntriesBySearch
EntrySearchResults getEntriesBySearch(EntryQuery entryQuery, EntrySearch entrySearch) throws OperationFailedException, PermissionDeniedException Gets a list ofEntryelements matching the given search.- Parameters:
entryQuery- the entry queryentrySearch- the entry search- Returns:
- the returned search results
- Throws:
NullArgumentException-entryQueryorentrySearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-entrySearchorentryQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getEntryQueryFromInspector
Gets an entry query from an inspector. The inspector is available from anEntrySearchResults.- Parameters:
entryQueryInspector- an entry query inspector- Returns:
- the entry query
- Throws:
NullArgumentException-entryQueryInspectorisnullUnsupportedException-entryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-