Class SecurityLogJob

java.lang.Object
de.bytestore.hostinger.security.jobs.log.SecurityLogJob
All Implemented Interfaces:
org.quartz.Job

@Component public class SecurityLogJob extends Object implements org.quartz.Job
  • Constructor Details

    • SecurityLogJob

      public SecurityLogJob()
  • Method Details

    • execute

      public void execute(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
      Executes the security log job.

      This method is called when the security log job is triggered by the scheduler. It performs the following steps:

      1. Authenticates the system user by calling the SystemAuthenticator#withSystem(Runnable) method.
      2. Purges old logs from the security log database by calling the SecurityService.purgeOldLogs(Integer) method.

      This method does not return any value.

      Specified by:
      execute in interface org.quartz.Job
      Parameters:
      jobExecutionContext - the execution context of the job
      Throws:
      org.quartz.JobExecutionException - if an error occurs during the execution of the job