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 TypeMethodDescriptionvoidrecordPreboardedCreated(PreboardedExperiment preboarded, String accession) Record aPreboardedCreatedEventagainst the freshly persisted preboarded with a note that interpolates the accession.
-
Method Details
-
recordPreboardedCreated
Record aPreboardedCreatedEventagainst the freshly persisted preboarded with a note that interpolates the accession. Dispatch is via the@Auditedaspect.- Parameters:
preboarded- the freshly persisted preboarded; receives the audit rowaccession- the accession the preboarded was created for; included in the note
-