Package de.xima.fc.audit.ms.impl.mapper
Interface AuditEntryMapper
-
- All Known Implementing Classes:
AuditEntryMapperImpl
public interface AuditEntryMapperMaps the audit API's input DTOs to the legacy protocol-entry entities. Only the scalar business fields are copied here. The attribution (benutzer) and the resolved relations (mandant, form record / project, processtype) are set byMsAuditServiceafter mapping, because they require a database lookup or the acting user.ignoreByDefaultkeeps every other legacy property untouched.- Since:
- 8.5.6
- Author:
- Norman Lorenz
-
-
Field Summary
Fields Modifier and Type Field Description static AuditEntryMapperINSTANCEShared stateless instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProtocolEntryProcessingtoEntity(FormRecordAuditEntry data)Maps a form-record entry input to a newProtocolEntryProcessing(the process type and form-record / project relations are set by the service).ProtocolEntryClienttoEntity(FormVersionAuditEntry data)Maps a form-version entry input to a newProtocolEntryClient(with the form version set; the tenant relation is resolved and set by the service).ProtocolEntrySystemtoEntity(SystemAuditEntry data)Maps a system entry input to a newProtocolEntrySystem.ProtocolEntryClienttoEntity(TenantAuditEntry data)Maps a tenant entry input to a newProtocolEntryClient(without the tenant relation, which is resolved and set by the service).
-
-
-
Field Detail
-
INSTANCE
static final AuditEntryMapper INSTANCE
Shared stateless instance.
-
-
Method Detail
-
toEntity
ProtocolEntrySystem toEntity(SystemAuditEntry data)
Maps a system entry input to a newProtocolEntrySystem.- Parameters:
data- the input. May benull.- Returns:
- the entity, or
nullifdataisnull. - Since:
- 8.5.6
-
toEntity
ProtocolEntryClient toEntity(TenantAuditEntry data)
Maps a tenant entry input to a newProtocolEntryClient(without the tenant relation, which is resolved and set by the service).- Parameters:
data- the input. May benull.- Returns:
- the entity, or
nullifdataisnull. - Since:
- 8.5.6
-
toEntity
ProtocolEntryClient toEntity(FormVersionAuditEntry data)
Maps a form-version entry input to a newProtocolEntryClient(with the form version set; the tenant relation is resolved and set by the service).- Parameters:
data- the input. May benull.- Returns:
- the entity, or
nullifdataisnull. - Since:
- 8.5.6
-
toEntity
ProtocolEntryProcessing toEntity(FormRecordAuditEntry data)
Maps a form-record entry input to a newProtocolEntryProcessing(the process type and form-record / project relations are set by the service).- Parameters:
data- the input. May benull.- Returns:
- the entity, or
nullifdataisnull. - Since:
- 8.5.6
-
-