Interface IAuditAction<TEntity extends IAuditableEntity>
- Type Parameters:
TEntity- the type of entity being audited, which must implementIAuditableEntity
- All Known Implementing Classes:
CertificateAuditAction
public interface IAuditAction<TEntity extends IAuditableEntity>
Interface representing an audit action in the system.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptiongetAuditDetails(TEntity entity, Locale locale, AuditParameter... params) Returns the localized details for an audit entry for this action.getAuditMessage(TEntity entity, Locale locale, AuditParameter... params) Returns the localized message for an audit entry for this action.Returns the basic CRUD action type associated with this audit action.
-
Method Details
-
getCrudActionType
ECrudAction getCrudActionType()Returns the basic CRUD action type associated with this audit action.- Returns:
- the CRUD action type
-
getAuditDetails
Returns the localized details for an audit entry for this action.- Parameters:
entity- the entity being auditedlocale- the locale for localizationparams- optional parameters for additional context- Returns:
- the localized details
-
getAuditMessage
Returns the localized message for an audit entry for this action.- Parameters:
entity- the entity being auditedlocale- the locale for localizationparams- optional parameters for additional context- Returns:
- the localized message
-