Package com.axelor.auth
Class AuditableRunner
- java.lang.Object
-
- com.axelor.auth.AuditableRunner
-
public class AuditableRunner extends Object
This class can be used to run batch jobs that requires to keep track of audit logs.
-
-
Constructor Summary
Constructors Constructor Description AuditableRunner(UserRepository users)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(Runnable job)
Run a batch job.<T> T
run(Callable<T> job)
Run a batch job.
-
-
-
Constructor Detail
-
AuditableRunner
@Inject public AuditableRunner(UserRepository users)
-
-
Method Detail
-
run
public void run(Runnable job)
Run a batch job.- Parameters:
job
- the job to run
-
-