Interface LogEntrySearchSession
- All Superinterfaces:
AutoCloseable, Closeable, LogEntryQuerySession, OsidSession, OsidSession
This session provides methods for searching among log entries. The
search query is constructed using the LogEntryQuery .
getLogEntriesByQuery() is the basic search method and returns a
list of log entries. A more advanced search may be performed with
getLogEntriesBySearch() . It accepts a LogEntrySearch in addition
to the query for the purpose of specifying additional options affecting
the entire search, such as ordering. getLogEntriesBySearch()
returns a LogEntrySearchResults that can be used to access the
resulting LogEntryList or be used to perform a search within the
result set through LogEntrySearch .
This session defines views that offer differing behaviors for searching.
- federated log view: searches include entries in logs of which this log is an ancestor in the log hierarchy
- isolated log view: searches are restricted to entries in this log only
-
Method Summary
Modifier and TypeMethodDescriptiongetLogEntriesBySearch(LogEntryQuery logEntryQuery, LogEntrySearch logEntrySearch) Gets the search results matching the given search query using the given search.getLogEntryQueryFromInspector(LogQueryInspector logEntryQueryInspector) Gets a log entry query from an inspector.Gets a log entry search.Gets a log entry search order.Methods inherited from interface LogEntryQuerySession
canSearchLogEntries, getLog, getLogEntriesByQuery, getLogEntryQuery, getLogId, useFederatedLogView, useIsolatedLogViewModifier and TypeMethodDescriptionbooleanTests if this user can performLogEntrysearches.getLog()Gets theLogassociated with this session.getLogEntriesByQuery(LogEntryQuery logEntryQuery) Gets a list of log entries matching the given log entry queryGets a log entry querygetLogId()Gets theLogIdassociated with this session.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
-
getLogEntrySearch
LogEntrySearch getLogEntrySearch()Gets a log entry search.- Returns:
- the log entry search
- Compliance:
mandatory- This method must be implemented.
-
getLogEntrySearchOrder
LogEntrySearchOrder getLogEntrySearchOrder()Gets a log entry search order. TheLogEntrySearchOrderis supplied to aLogEntrySearchto specify the ordering of results.- Returns:
- the log entry search order
- Compliance:
mandatory- This method must be implemented.
-
getLogEntriesBySearch
LogEntrySearchResults getLogEntriesBySearch(LogEntryQuery logEntryQuery, LogEntrySearch logEntrySearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
logEntryQuery- the log entry querylogEntrySearch- the log entry search- Returns:
- the returned search results
- Throws:
NullArgumentException-logEntryQueryorlogEntrySearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-logEntryQueryorlogEntrySearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getLogEntryQueryFromInspector
Gets a log entry query from an inspector. The inspector is available from aLogEntrySearchResults.- Parameters:
logEntryQueryInspector- a log entry query inspector- Returns:
- the log entry query
- Throws:
NullArgumentException-logEntryQueryInspectorisnullUnsupportedException-logEntryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-