Class CliExpressionExperimentAuditServiceImpl

java.lang.Object
ubic.gemma.cli.audit.CliExpressionExperimentAuditServiceImpl
All Implemented Interfaces:
CliExpressionExperimentAuditService

@Service public class CliExpressionExperimentAuditServiceImpl extends Object implements CliExpressionExperimentAuditService
Default CliExpressionExperimentAuditService implementation. The recordMade* methods are pure annotation-driven audit emitters (empty body); computeSampleCorrelation actually runs the work because the audit emission shape is AuditedOnError, which only fires when the wrapped invocation throws.

The two distinct @AuditedOnError declarations match the legacy shape verbatim: FilteringException produced a typed audit row in the CLI's first catch, every other Exception produced one in the second. The aspect's most-specific-instanceof dispatch chooses the filtering-exception variant when it applies; otherwise the default Throwable declaration acts as the catch-all.

  • Constructor Details

    • CliExpressionExperimentAuditServiceImpl

      public CliExpressionExperimentAuditServiceImpl()
  • Method Details

    • recordMadePrivate

      @Audited(value=ubic.gemma.model.common.auditAndSecurity.eventType.MakePrivateEvent.class, messageSpel="#note") public void recordMadePrivate(ubic.gemma.model.expression.experiment.ExpressionExperiment ee, String note)
      Description copied from interface: CliExpressionExperimentAuditService
      Records a MakePrivateEvent on the experiment. Used by MakeExperimentPrivateCli.
      Specified by:
      recordMadePrivate in interface CliExpressionExperimentAuditService
    • recordMadePublic

      @Audited(value=ubic.gemma.model.common.auditAndSecurity.eventType.MakePublicEvent.class, messageSpel="#note") public void recordMadePublic(ubic.gemma.model.expression.experiment.ExpressionExperiment ee, String note)
      Description copied from interface: CliExpressionExperimentAuditService
      Records a MakePublicEvent on the experiment. Used by MakeExperimentsPublicCli.
      Specified by:
      recordMadePublic in interface CliExpressionExperimentAuditService
    • computeSampleCorrelation

      @AuditedOnError(value=ubic.gemma.model.common.auditAndSecurity.eventType.FailedSampleCorrelationAnalysisEvent.class,exception=ubic.gemma.core.analysis.preprocess.filter.FilteringException.class) @AuditedOnError(ubic.gemma.model.common.auditAndSecurity.eventType.FailedSampleCorrelationAnalysisEvent.class) public void computeSampleCorrelation(ubic.gemma.model.expression.experiment.ExpressionExperiment ee) throws ubic.gemma.core.analysis.preprocess.filter.FilteringException
      Description copied from interface: CliExpressionExperimentAuditService
      Runs the sample-correlation compute step for an experiment. The annotation surface records a FailedSampleCorrelationAnalysisEvent if the call throws (either a FilteringException or any other Exception). Used by ExpressionDataCorrMatCli.
      Specified by:
      computeSampleCorrelation in interface CliExpressionExperimentAuditService
      Throws:
      ubic.gemma.core.analysis.preprocess.filter.FilteringException