Interface AuditService.Validator
-
- All Known Implementing Classes:
AuditRecordValidator
- Enclosing interface:
- AuditService
@Deprecated public static interface AuditService.Validator
Deprecated.since 7.5.0. Validation happens inside atlassian-audit-pluginValidator for audit records
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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
-
-
-
Method Detail
-
validateCreate
ValidationResult validateCreate(AuditRecord record) throws ServiceException
Deprecated.Validate that an audit record can be created. The following rules are enforced:* 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
- Parameters:
record
- the record to be created- Returns:
- an immutable Validation result.
- Throws:
ServiceException
-
validateDelete
ValidationResult validateDelete(Instant before)
Deprecated.Validate that the current user has permissions to remove old audit records and the provided time is not null- Parameters:
before
-- Returns:
- an immutable Validation result
- Since:
- 6.13.0
-
-