OSID Logo
OSID Specifications
logging package
Version 3.0.0
Release Candidate Preview
Interfaceosid.logging.LogEntryQuerySession
Implementsosid.OsidSession
Description

This session provides methods for searching among log entries. The search query is constructed using the LogEntryQuery.

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
MethodgetLogId
Description

Gets the Log Id associated with this session.

Returnosid.id.Idthe Log Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetLog
Description

Gets the Log associated with this session.

Returnosid.logging.Logthe Log associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanSearchLogEntries
Description

Tests if this user can perform LogEntry searches. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer search operations to unauthorized users.

Returnboolean false if search methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedLogView
Description

Federates the view for methods in this session. A federated view will include entries in logs which are children of this log in the log hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedLogView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this log only.

CompliancemandatoryThis method is must be implemented.
MethodgetLogEntryQuery
Description

Gets a log entry query

Returnosid.logging.LogEntryQuerythe log entry query
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByQuery
Description

Gets a list of log entries matching the given log entry query

Parametersosid.logging.LogEntryQuerylogEntryQuerythe log entry query
Returnosid.logging.LogEntryListthe returned LogEntryList
ErrorsNULL_ARGUMENT logEntryQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED logEntryQuery is not of this service
CompliancemandatoryThis method must be implemented.