Package com.ibm.fhir.audit.logging.impl
Class DisabledAuditLogService
- java.lang.Object
-
- com.ibm.fhir.audit.logging.impl.DisabledAuditLogService
-
- All Implemented Interfaces:
AuditLogService
public class DisabledAuditLogService extends Object implements AuditLogService
This class serves as a no-op audit service logger. It simply allows audit logging to be effectively disabled.
-
-
Constructor Summary
Constructors Constructor Description DisabledAuditLogService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(PropertyGroup auditLogProperties)
Performs any required audit log service initialization using the passed Properties file.boolean
isEnabled()
void
logEntry(AuditLogEntry logEntry)
Persists the passed audit log entry in a location determined by the log service.
-
-
-
Method Detail
-
logEntry
public void logEntry(AuditLogEntry logEntry)
Description copied from interface:AuditLogService
Persists the passed audit log entry in a location determined by the log service.- Specified by:
logEntry
in interfaceAuditLogService
- Parameters:
logEntry
- - The audit log entry to be saved.
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceAuditLogService
- Returns:
- true if the audit log service is enabled; false if not enabled.
-
initialize
public void initialize(PropertyGroup auditLogProperties) throws Exception
Description copied from interface:AuditLogService
Performs any required audit log service initialization using the passed Properties file.- Specified by:
initialize
in interfaceAuditLogService
- Parameters:
auditLogProperties
- - Contains audit log related properties which are configured in fhir-server-config.json.- Throws:
Exception
- - Any non-recoverable exception thrown during audit log service initialization.
-
-