Class 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 Detail

      • DisabledAuditLogService

        public DisabledAuditLogService()
    • 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 interface AuditLogService
        Parameters:
        logEntry - - The audit log entry to be saved.
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface AuditLogService
        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 interface AuditLogService
        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.