Class DefaultAuditService
- java.lang.Object
-
- com.atlassian.confluence.schedule.audit.DefaultAuditService
-
- All Implemented Interfaces:
AuditService
public class DefaultAuditService extends Object implements AuditService
Default implementation logs to a loggerAuditService.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSCHEDULED_JOB_INTERVALstatic StringSCHEDULED_JOB_SCHEDULE
-
Constructor Summary
Constructors Constructor Description DefaultAuditService(com.atlassian.audit.api.AuditService auditService, AuditHelper auditHelper, StandardAuditResourceTypes resourceTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauditAction(com.atlassian.scheduler.config.JobId jobId, AuditingAction action)Audits an action to a job such as run, enable, disable.voidauditCronJobScheduleChange(com.atlassian.scheduler.config.JobId jobId, String oldValue, String newValue)Audits a schedule change to a cron job.voidauditSimpleJobScheduleChange(com.atlassian.scheduler.config.JobId jobId, Long oldValue, Long newValue)Audits a schedule change to a simple job.
-
-
-
Constructor Detail
-
DefaultAuditService
public DefaultAuditService(com.atlassian.audit.api.AuditService auditService, AuditHelper auditHelper, StandardAuditResourceTypes resourceTypes)
-
-
Method Detail
-
auditAction
public void auditAction(com.atlassian.scheduler.config.JobId jobId, AuditingAction action)Description copied from interface:AuditServiceAudits an action to a job such as run, enable, disable.- Specified by:
auditActionin interfaceAuditService- Parameters:
jobId- the job IDaction- the action such as run, enable, disable
-
auditCronJobScheduleChange
public void auditCronJobScheduleChange(com.atlassian.scheduler.config.JobId jobId, String oldValue, String newValue)Description copied from interface:AuditServiceAudits a schedule change to a cron job.- Specified by:
auditCronJobScheduleChangein interfaceAuditService- Parameters:
jobId- the job IDoldValue- the old cronnewValue- the new cron
-
auditSimpleJobScheduleChange
public void auditSimpleJobScheduleChange(com.atlassian.scheduler.config.JobId jobId, Long oldValue, Long newValue)Description copied from interface:AuditServiceAudits a schedule change to a simple job.- Specified by:
auditSimpleJobScheduleChangein interfaceAuditService- Parameters:
jobId- the job IDoldValue- the old repeat intervalnewValue- the new repeat interval
-
-