Interface LoggingManager
- All Superinterfaces:
AutoCloseable, Closeable, LoggingProfile, OsidManager, OsidManager, OsidProfile, Sourceable
The logging manager provides access to logging sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:
-
LoggingSession: a session to write to a log -
LogEntryLookupSession: a session to read a log -
LogEntryQuerySession: a session to search a log -
LogEntrySearchSession: a session to search a log -
LogEntryAdminSession: a session to manage log entries in a log -
LogEntryNotificationSession: a session to subscribe to notifications of new log entries -
LogEntryLogSession: a session to examine log entry to log mappings -
LogEntryLogAssignmentSession: a session to manage log entry to log mappings -
LogEntrySmartLogSession: a session to manage dynamic logs -
LogLookupSession: a session to retrieve log objects -
LogQuerySession: a session to search for logs -
LogSearchSession: a session to search for logs -
LogAdminSession: a session to create, update and delete logs -
LogNotificationSession: a session to receive notifications for changes in logs -
LogHierarchyTraversalSession: a session to traverse hierarchies of logs -
LogHierarchyDesignSession: a session to manage hierarchies of logs
The logging manager also provides a profile for determing the supported search types supported by this service.
LoggingManager may be accessed by multiple processing threads.-
Method Summary
Modifier and TypeMethodDescriptionGets theOsidSessionassociated with the log administrative service.Gets theOsidSessionassociated with the logging entry administrative service.getLogEntryAdminSessionForLog(Id logId) Gets theOsidSessionassociated with the log entry administrative service for the given log.Gets the session for assigning log entry to logs mappings.Gets the session for retrieving log entry to log mappings.Gets theOsidSessionassociated with the log reading service.getLogEntryLookupSessionForLog(Id logId) Gets theOsidSessionassociated with the log reading service for the given log.getLogEntryNotificationSession(LogEntryReceiver logEntryReceiver) Gets theOsidSessionassociated with the logging entry notification service.getLogEntryNotificationSessionForLog(LogEntryReceiver logEntryReceiver, Id logId) Gets theOsidSessionassociated with the log entry notification service for the given log.Gets theOsidSessionassociated with the logging entry query service.getLogEntryQuerySessionForLog(Id logId) Gets theOsidSessionassociated with the log entry query service for the given log.Gets theOsidSessionassociated with the logging entry search service.getLogEntrySearchSessionForLog(Id logId) Gets theOsidSessionassociated with the log entry search service for the given log.getLogEntrySmartLogSession(Id logId) Gets the session for managing dynamic logEntry log.Gets aLoggingBatchManager.Gets theOsidSessionassociated with the logging service.getLoggingSessionForLog(Id logId) Gets theOsidSessionassociated with the logging service for the given log.Gets theOsidSessionassociated with the log hierarchy design service.Gets theOsidSessionassociated with the log hierarchy service.Gets theOsidSessionassociated with the log lookup service.getLogNotificationSession(LogReceiver logReceiver) Gets theOsidSessionassociated with the log notification service.Gets theOsidSessionassociated with the log query service.Gets theOsidSessionassociated with the log search service.Methods inherited from interface LoggingProfile
getContentTypes, getLogEntryRecordTypes, getLogEntrySearchRecordTypes, getLogRecordTypes, getLogSearchRecordTypes, getPriorityTypes, supportsContentType, supportsLogAdmin, supportsLogEntryAdmin, supportsLogEntryLog, supportsLogEntryLogAssignment, supportsLogEntryLookup, supportsLogEntryNotification, supportsLogEntryQuery, supportsLogEntryRecordType, supportsLogEntrySearch, supportsLogEntrySearchRecordType, supportsLogEntrySmartLog, supportsLogging, supportsLoggingBatch, supportsLogHierarchy, supportsLogHierarchyDesign, supportsLogLookup, supportsLogNotification, supportsLogQuery, supportsLogRecordType, supportsLogSearch, supportsLogSearchRecordType, supportsPriorityType, supportsVisibleFederationMethods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceMethods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersionMethods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderId
-
Method Details
-
getLoggingSession
Gets theOsidSessionassociated with the logging service.- Returns:
- a
LoggingSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogging()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogging()} is {@code true}.
-
getLoggingSessionForLog
Gets theOsidSessionassociated with the logging service for the given log.- Parameters:
logId- theIdof theLog- Returns:
- a
LoggingSession - Throws:
NotFoundException- noLogfound by the givenIdNullArgumentException-logIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogging()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogging()} and {@code supportsVisibleFederation()} are {@code true}
-
getLogEntryLookupSession
Gets theOsidSessionassociated with the log reading service.- Returns:
- a
LogEntryLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryLookup()} is {@code true}.
-
getLogEntryLookupSessionForLog
LogEntryLookupSession getLogEntryLookupSessionForLog(Id logId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the log reading service for the given log.- Parameters:
logId- theIdof theLog- Returns:
- a
LogEntryLookupSession - Throws:
NotFoundException- noLogfound by the givenIdNullArgumentException-logIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryLookup()} and {@code supportsVisibleFederation()} are {@code true}
-
getLogEntryQuerySession
Gets theOsidSessionassociated with the logging entry query service.- Returns:
- a
LogEntryQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryQuery()} is {@code true}.
-
getLogEntryQuerySessionForLog
LogEntryQuerySession getLogEntryQuerySessionForLog(Id logId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the log entry query service for the given log.- Parameters:
logId- theIdof theLog- Returns:
- a
LogEntryQuerySession - Throws:
NotFoundException- noLogfound by the givenIdNullArgumentException-logIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryQuery()} and {@code supportsVisibleFederation()} are {@code true}
-
getLogEntrySearchSession
Gets theOsidSessionassociated with the logging entry search service.- Returns:
- a
LogEntrySearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogEntrySearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntrySearch()} is {@code true}.
-
getLogEntrySearchSessionForLog
LogEntrySearchSession getLogEntrySearchSessionForLog(Id logId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the log entry search service for the given log.- Parameters:
logId- theIdof theLog- Returns:
- a
LogEntrySearchSession - Throws:
NotFoundException- noLogfound by the givenIdNullArgumentException-logIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntrySearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntrySearch()} and {@code supportsVisibleFederation()} are {@code true}
-
getLogEntryAdminSession
Gets theOsidSessionassociated with the logging entry administrative service.- Returns:
- a
LogEntryAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryAdmin()} is {@code true}.
-
getLogEntryAdminSessionForLog
LogEntryAdminSession getLogEntryAdminSessionForLog(Id logId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the log entry administrative service for the given log.- Parameters:
logId- theIdof theLog- Returns:
- a
LogEntryAdminSession - Throws:
NotFoundException- noLogfound by the givenIdNullArgumentException-logIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryAdmin()} and {@code supportsVisibleFederation()} are {@code true}
-
getLogEntryNotificationSession
LogEntryNotificationSession getLogEntryNotificationSession(LogEntryReceiver logEntryReceiver) throws OperationFailedException Gets theOsidSessionassociated with the logging entry notification service.- Parameters:
logEntryReceiver- the receiver- Returns:
- a
LogEntryNotificationSession - Throws:
NullArgumentException-logEntryReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryNotification()} is {@code true}.
-
getLogEntryNotificationSessionForLog
LogEntryNotificationSession getLogEntryNotificationSessionForLog(LogEntryReceiver logEntryReceiver, Id logId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the log entry notification service for the given log.- Parameters:
logEntryReceiver- the receiverlogId- theIdof theLog- Returns:
- a
LogEntryNotificationSession - Throws:
NotFoundException- noLogfound by the givenIdNullArgumentException-logEntryReceiverorlogIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryNotification()} and {@code supportsVisibleFederation()} are {@code true}
-
getLogEntryLogSession
Gets the session for retrieving log entry to log mappings.- Returns:
- a
LogEntryLogSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryLog()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryLog()} is {@code true}.
-
getLogEntryLogAssignmentSession
Gets the session for assigning log entry to logs mappings.- Returns:
- a
LogEntryLogAssignmentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogEntryLogAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntryLogAssignment()} is {@code true}.
-
getLogEntrySmartLogSession
LogEntrySmartLogSession getLogEntrySmartLogSession(Id logId) throws NotFoundException, OperationFailedException Gets the session for managing dynamic logEntry log.- Parameters:
logId- theIdof the log- Returns:
- a
LogEntrySmartLogSession - Throws:
NotFoundException-logIdnot foundNullArgumentException-logIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogEntrySmartLog()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogEntrySmartLog()} is {@code true}.
-
getLogLookupSession
Gets theOsidSessionassociated with the log lookup service.- Returns:
- a
LogLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogLookup()} is {@code true}.
-
getLogQuerySession
Gets theOsidSessionassociated with the log query service.- Returns:
- a
LogQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogQuery()} is {@code true}.
-
getLogSearchSession
Gets theOsidSessionassociated with the log search service.- Returns:
- a
LogSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogSearch()} is {@code true}.
-
getLogAdminSession
Gets theOsidSessionassociated with the log administrative service.- Returns:
- a
LogAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogAdmin()} is {@code true}.
-
getLogNotificationSession
LogNotificationSession getLogNotificationSession(LogReceiver logReceiver) throws OperationFailedException Gets theOsidSessionassociated with the log notification service.- Parameters:
logReceiver- the receiver- Returns:
- a
LogNotificationSession - Throws:
NullArgumentException-logReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsLogNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogNotification()} is {@code true}.
-
getLogHierarchySession
Gets theOsidSessionassociated with the log hierarchy service.- Returns:
- a
LogHierarchySessionfor logs - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogHierarchy()} is {@code true}.
-
getLogHierarchyDesignSession
Gets theOsidSessionassociated with the log hierarchy design service.- Returns:
- a
HierarchyDesignSessionfor logs - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLogHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLogHierarchyDesign()} is {@code true}.
-
getLoggingBatchManager
Gets aLoggingBatchManager.- Returns:
- a
LoggingBatchManager - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsLoggingBatch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLoggingBatch()} is {@code true}.
-