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 String
SCHEDULED_JOB_INTERVAL
static String
SCHEDULED_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 void
auditAction(com.atlassian.scheduler.config.JobId jobId, AuditingAction action)
Audits an action to a job such as run, enable, disable.void
auditCronJobScheduleChange(com.atlassian.scheduler.config.JobId jobId, String oldValue, String newValue)
Audits a schedule change to a cron job.void
auditSimpleJobScheduleChange(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:AuditService
Audits an action to a job such as run, enable, disable.- Specified by:
auditAction
in 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:AuditService
Audits a schedule change to a cron job.- Specified by:
auditCronJobScheduleChange
in 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:AuditService
Audits a schedule change to a simple job.- Specified by:
auditSimpleJobScheduleChange
in interfaceAuditService
- Parameters:
jobId
- the job IDoldValue
- the old repeat intervalnewValue
- the new repeat interval
-
-