public interface OMRSAuditLogStore
| Modifier and Type | Method and Description |
|---|---|
OMRSAuditLogRecord |
getAuditLogRecord(String logRecordId)
Retrieve a specific audit log record.
|
List<OMRSAuditLogRecord> |
getAuditLogRecordsByComponent(String component,
Date startDate,
Date endDate,
int offset,
int maximumRecords)
Retrieve a list of log records written by a specific component.
|
List<OMRSAuditLogRecord> |
getAuditLogRecordsBySeverity(String severity,
Date startDate,
Date endDate,
int offset,
int maximumRecords)
Retrieve a list of log records that have specific severity.
|
List<OMRSAuditLogRecord> |
getAuditLogRecordsByTimeStamp(Date startDate,
Date endDate,
int offset,
int maximumRecords)
Retrieve a list of log records written in a specified time period.
|
String |
getDestinationName()
Return the name of this audit log destination.
|
List<String> |
getSupportedSeverities()
Return the list of supported severities that this destination is configured to support.
|
String |
storeLogRecord(OMRSAuditLogRecord logRecord)
Store the audit log record in the audit log store.
|
String getDestinationName()
List<String> getSupportedSeverities()
String storeLogRecord(OMRSAuditLogRecord logRecord) throws InvalidParameterException, RepositoryErrorException
logRecord - log record to storeInvalidParameterException - indicates that the logRecord parameter is invalid.RepositoryErrorException - indicates that the audit log store is not available or has an error.OMRSAuditLogRecord getAuditLogRecord(String logRecordId) throws InvalidParameterException, FunctionNotSupportedException, RepositoryErrorException
logRecordId - unique identifier for the log recordInvalidParameterException - indicates that the logRecordId parameter is invalid.FunctionNotSupportedException - indicates that the audit log store does not support queries.RepositoryErrorException - indicates that the audit log store is not available or has an error.List<OMRSAuditLogRecord> getAuditLogRecordsByTimeStamp(Date startDate, Date endDate, int offset, int maximumRecords) throws InvalidParameterException, PagingErrorException, FunctionNotSupportedException, RepositoryErrorException
startDate - start of time periodendDate - end of time periodoffset - offset of full collection to begin the return resultsmaximumRecords - maximum number of log records to returnInvalidParameterException - indicates that the start and/or end date parameters are invalid.PagingErrorException - indicates that the offset or the maximumRecords parameters are invalid.FunctionNotSupportedException - indicates that the audit log store does not support queries.RepositoryErrorException - indicates that the audit log store is not available or has an error.List<OMRSAuditLogRecord> getAuditLogRecordsBySeverity(String severity, Date startDate, Date endDate, int offset, int maximumRecords) throws InvalidParameterException, PagingErrorException, FunctionNotSupportedException, RepositoryErrorException
severity - the severity value of messages to returnstartDate - start of time periodendDate - end of time periodoffset - offset of full collection to begin the return resultsmaximumRecords - maximum number of log records to returnInvalidParameterException - indicates that the severity, start and/or end date parameters are invalid.PagingErrorException - indicates that the offset or the maximumRecords parameters are invalid.FunctionNotSupportedException - indicates that the audit log store does not support queries.RepositoryErrorException - indicates that the audit log store is not available or has an error.List<OMRSAuditLogRecord> getAuditLogRecordsByComponent(String component, Date startDate, Date endDate, int offset, int maximumRecords) throws InvalidParameterException, PagingErrorException, FunctionNotSupportedException, RepositoryErrorException
component - name of the component to retrieve events fromstartDate - start of time periodendDate - end of time periodoffset - offset of full collection to begin the return resultsmaximumRecords - maximum number of log records to returnInvalidParameterException - indicates that the component, start and/or end date parameters are invalid.PagingErrorException - indicates that the offset or the maximumRecords parameters are invalid.FunctionNotSupportedException - indicates that the audit log store does not support queries.RepositoryErrorException - indicates that the audit log store is not available or has an error.Copyright © 2018–2020 ODPi. All rights reserved.