Class AuditableRunner

java.lang.Object
com.axelor.auth.AuditableRunner

@Deprecated public class AuditableRunner extends Object
Deprecated.
This class can be used to run batch jobs that requires to keep track of audit logs.
  • Constructor Details

    • AuditableRunner

      @Inject public AuditableRunner(UserRepository users)
      Deprecated.
  • Method Details

    • batchUser

      public static User batchUser()
      Deprecated.
      Get the batch user.
      Returns:
      current user
    • run

      public void run(Runnable job)
      Deprecated.
      Run a batch job.
      Parameters:
      job - the job to run
    • run

      public <T> T run(Callable<T> job) throws Exception
      Deprecated.
      Run a batch job.
      Type Parameters:
      T - type of the result
      Parameters:
      job - the job to run
      Returns:
      job result
      Throws:
      Exception - if unable to compute a result