Interface PreboardedAuditService

All Known Implementing Classes:
PreboardedAuditServiceImpl

public interface PreboardedAuditService
Co-bean carrying the PreboardedCreatedEvent emission for PreboardedExperimentServiceImpl.createPreboarded(String, String, String).

Hoisted out of the create path so the emission method is invoked through a Spring proxy and the @Audited aspect can intercept it. The aspect's findAuditable scans the argument list left-to-right for the first Auditable; in createPreboarded, the PreboardedExperiment is freshly constructed inside the method body (the only arguments are Strings), so the target must be passed in as an argument here.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Record a PreboardedCreatedEvent against the freshly persisted preboarded with a note that interpolates the accession.
  • Method Details

    • recordPreboardedCreated

      void recordPreboardedCreated(PreboardedExperiment preboarded, String accession)
      Record a PreboardedCreatedEvent against the freshly persisted preboarded with a note that interpolates the accession. Dispatch is via the @Audited aspect.
      Parameters:
      preboarded - the freshly persisted preboarded; receives the audit row
      accession - the accession the preboarded was created for; included in the note