Class AuditAsyncService

java.lang.Object
com.eurodyn.qlack.fuse.audit.service.AuditService
com.eurodyn.qlack.fuse.audit.service.AuditAsyncService

@Service @Validated public class AuditAsyncService extends AuditService
Provides Audit CRUD functionality. Async ensures that each method will be executed at a separate thread
Author:
European Dynamics SA.
  • Constructor Details

  • Method Details

    • audit

      @Async public void audit(String level, String event, String description)
      Description copied from class: AuditService
      Adds an audit of an EVENT with minimal information.
      Overrides:
      audit in class AuditService
      Parameters:
      level - the audit level
      event - the audit EVENT
      description - the audit description
    • audit

      @Async public void audit(String level, String event, String description, Object... args)
      Description copied from class: AuditService
      Adds an audit of an EVENT with minimal information.
      Overrides:
      audit in class AuditService
      Parameters:
      level - the audit level
      event - the audit EVENT
      description - the audit description
      args - the arguments to be passed on a MessageFormat for the description argument.
    • audit

      @Async public void audit(String level, String event, String groupName, String description, String sessionID, Object traceData)
      Description copied from class: AuditService
      Adds an audit of an EVENT that occurred in the application
      Overrides:
      audit in class AuditService
      Parameters:
      level - the audit level
      event - the audit EVENT
      groupName - the name of the group that the audit is part of
      description - a description of the audit
      sessionID - the id of the session that the audit occurred
      traceData - an object containing the trace of the audit
    • audit

      @Async public String audit(String level, String event, String groupName, String description, String sessionID, Object traceData, String referenceId)
      Description copied from class: AuditService
      Adds an audit of an EVENT that occurred in the application
      Overrides:
      audit in class AuditService
      Parameters:
      level - the audit level
      event - the audit EVENT
      groupName - the name of the group that the audit is part of
      description - a description of the audit
      sessionID - the id of the session that the audit occurred
      traceData - an object containing the trace of the audit
      referenceId - the reference id of the audit
      Returns:
      the id of the created audit
    • audit

      @Async public void audit(String level, String event, String groupName, String description, String sessionID, String traceData)
      Description copied from class: AuditService
      Creates an audit of an EVENT that occurred in the application
      Overrides:
      audit in class AuditService
      Parameters:
      level - the audit level
      event - the audit EVENT
      groupName - the name of the group that the audit is part of
      description - a description of the audit
      sessionID - the id of the session that the audit occurred
      traceData - a String containing the trace of the audit
    • audit

      @Async public String audit(AuditDTO audit)
      Description copied from class: AuditService
      Adds an audit of an EVENT that occurred in the application
      Overrides:
      audit in class AuditService
      Parameters:
      audit - a DTO containing all information of the audit to persist
      Returns:
      the id of the created audit
    • deleteAudit

      @Async public void deleteAudit(String id)
      Description copied from class: AuditService
      Deletes an audit
      Overrides:
      deleteAudit in class AuditService
      Parameters:
      id - the id of the audit to delete
    • truncateAudits

      @Async public void truncateAudits()
      Description copied from class: AuditService
      Deletes all persisted audits
      Overrides:
      truncateAudits in class AuditService
    • truncateAudits

      @Async public void truncateAudits(Date createdOn)
      Description copied from class: AuditService
      Deletes all audits created before given date
      Overrides:
      truncateAudits in class AuditService
      Parameters:
      createdOn - the date before which all audits will be deleted
    • truncateAudits

      @Async public void truncateAudits(long retentionPeriod)
      Description copied from class: AuditService
      Deletes all audits created before the given period (eg. last 7 days)
      Overrides:
      truncateAudits in class AuditService
      Parameters:
      retentionPeriod - the period that audits should be kept