public class DefaultAuditService extends Object implements AuditService
AuditService
.Modifier and Type | Field and Description |
---|---|
static String |
SCHEDULED_JOB_INTERVAL |
static String |
SCHEDULED_JOB_SCHEDULE |
Constructor and Description |
---|
DefaultAuditService(com.atlassian.audit.api.AuditService auditService,
AuditHelper auditHelper,
StandardAuditResourceTypes resourceTypes) |
Modifier and Type | Method and Description |
---|---|
void |
auditAction(ScheduledJobKey jobKey,
AuditingAction action)
Audits an action to a job such as run, enable, disable.
|
void |
auditCronJobScheduleChange(ScheduledJobKey jobKey,
String oldValue,
String newValue)
Audits a schedule change to a cron job.
|
void |
auditSimpleJobScheduleChange(ScheduledJobKey jobKey,
Long oldValue,
Long newValue)
Audits a schedule change to a simple job.
|
public static final String SCHEDULED_JOB_SCHEDULE
public static final String SCHEDULED_JOB_INTERVAL
public DefaultAuditService(com.atlassian.audit.api.AuditService auditService, AuditHelper auditHelper, StandardAuditResourceTypes resourceTypes)
public void auditAction(ScheduledJobKey jobKey, AuditingAction action)
AuditService
auditAction
in interface AuditService
jobKey
- the job keyaction
- the action such as run, enable, disablepublic void auditCronJobScheduleChange(ScheduledJobKey jobKey, String oldValue, String newValue)
AuditService
auditCronJobScheduleChange
in interface AuditService
jobKey
- the job keyoldValue
- the old cronnewValue
- the new cronpublic void auditSimpleJobScheduleChange(ScheduledJobKey jobKey, Long oldValue, Long newValue)
AuditService
auditSimpleJobScheduleChange
in interface AuditService
jobKey
- the job keyoldValue
- the old repeat intervalnewValue
- the new repeat intervalCopyright © 2003–2021 Atlassian. All rights reserved.