Interface LogEntrySmartLogSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session manages queries and sequencing to create "smart" dynamic
catalogs. A LogEntryQuery can be retrieved from this session and
mapped to this Log to create a virtual collection of log entries.
The log entries may be sequenced using the LogEntrySearchOrder
from this session.
This Log has a default query that matches any log entry and a
default search order that specifies no sequencing. The queries may be
examined using a LogEntryQueryInspector . The query may be
modified by converting the inspector back to a LogEntryQuery .
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyLogEntryQuery(LogEntryQuery logEntryQuery) Applies a logEntry query to this log.voidapplyLogEntrySequencing(LogEntrySearchOrder logEntrySearchOrder) Applies a logEntry search order to this log.booleanTests if this user can manage smart log.getLog()Gets theLogassociated with this session.Gets a logEntry query.getLogEntryQueryFromInspector(LogEntryQueryInspector logEntryQueryInspector) Gets a logEntry query from an inspector.Gets a logEntry search order.getLogId()Gets theLogIdassociated with this session.Gets a logEntry query inspector for this log.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
-
getLogId
Id getLogId()Gets theLogIdassociated with this session.- Returns:
- the
Log Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getLog
Gets theLogassociated with this session.- Returns:
- the
Logassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageSmartLog
boolean canManageSmartLog()Tests if this user can manage smart log. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.- Returns:
falseif smart log management is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getLogEntryQuery
LogEntryQuery getLogEntryQuery()Gets a logEntry query.- Returns:
- the log entry query
- Compliance:
mandatory- This method must be implemented.
-
getLogEntrySearchOrder
LogEntrySearchOrder getLogEntrySearchOrder()Gets a logEntry search order.- Returns:
- the logEntry search order
- Compliance:
mandatory- This method must be implemented.
-
applyLogEntryQuery
void applyLogEntryQuery(LogEntryQuery logEntryQuery) throws OperationFailedException, PermissionDeniedException Applies a logEntry query to this log.- Parameters:
logEntryQuery- the logEntry query- Throws:
NullArgumentException-logEntryQueryisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-logEntryQuerynot of this service- Compliance:
mandatory- This method must be implemented.
-
inspectLogEntryQuery
LogEntryQueryInspector inspectLogEntryQuery() throws OperationFailedException, PermissionDeniedExceptionGets a logEntry query inspector for this log.- Returns:
- the logEntry query inspector
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
applyLogEntrySequencing
void applyLogEntrySequencing(LogEntrySearchOrder logEntrySearchOrder) throws OperationFailedException, PermissionDeniedException Applies a logEntry search order to this log.- Parameters:
logEntrySearchOrder- the logEntry search order- Throws:
NullArgumentException-logEntrySearchOrderisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-logEntrySearchOrdernot of this service- Compliance:
mandatory- This method must be implemented.
-
getLogEntryQueryFromInspector
Gets a logEntry query from an inspector.- Parameters:
logEntryQueryInspector- a resorce relationship query inspector- Returns:
- the logEntry query
- Throws:
NullArgumentException-logEntryQueryInspectorisnullUnsupportedException-logEntryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-