@Deprecated public static interface AuditService.Validator
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validateCreate(AuditRecord record)
Deprecated.
Validate that an audit record can be created.
|
ValidationResult |
validateDelete(Instant before)
Deprecated.
Validate that the current user has permissions to remove old audit records and the provided time is not null
|
ValidationResult validateCreate(AuditRecord record) throws ServiceException
* Author must not be null, or an invalid user * AffectedObject may not be null * Collection attributes (changedValues, AssociatedObjects) may not be null * Affected/Associated object instances may not be null, or have null attributes * ChangedValue instances may not be null, have a null or empty name, and both old and new values can't be null or empty
record
- the record to be createdServiceException
ValidationResult validateDelete(Instant before)
before
- Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences