Class DefaultAuditService
java.lang.Object
com.atlassian.confluence.schedule.audit.DefaultAuditService
- All Implemented Interfaces:
AuditService
Default implementation logs to a logger
AuditService.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuditService(com.atlassian.audit.api.AuditService auditService, AuditHelper auditHelper, StandardAuditResourceTypes resourceTypes) -
Method Summary
Modifier and TypeMethodDescriptionvoidauditAction(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.
-
Field Details
-
SCHEDULED_JOB_SCHEDULE
-
SCHEDULED_JOB_INTERVAL
-
-
Constructor Details
-
DefaultAuditService
public DefaultAuditService(com.atlassian.audit.api.AuditService auditService, AuditHelper auditHelper, StandardAuditResourceTypes resourceTypes)
-
-
Method Details
-
auditAction
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
-