public class AuditLogServiceImpl extends Object implements AuditLogService
AuditLogService| Modifier and Type | Class and Description |
|---|---|
static class |
AuditLogServiceImpl.FieldAndType |
static class |
AuditLogServiceImpl.MergeResult |
| Modifier and Type | Field and Description |
|---|---|
protected String |
antiSamyPolicyFileLocation |
protected AuditLogDao |
dao |
protected AuditQualifier |
qualifier |
protected RenderManager |
renderManager |
| Constructor and Description |
|---|
AuditLogServiceImpl(RenderManager renderManager,
AuditLogDao dao,
AuditQualifier qualifier) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
cleanString(String string)
Sanitize large format Strings for unauthorized (and possibly exploitative) content.
|
String |
getAntiSamyPolicyFileLocation() |
protected boolean |
isDirty(UpdateDTO dto,
int fieldPos,
AuditFlushContext context,
FlushKey key) |
protected boolean |
isEmpty(OldFieldDTO dto,
int fieldPos) |
protected boolean |
isSkippable(OldFieldDTO dto,
int fieldPos,
AuditFlushContext context,
FlushKey key) |
protected boolean |
isSkippableBasedOnCreator(AuditFlushContext context,
FlushKey key) |
protected Map<FlushKey,AuditLogServiceImpl.MergeResult> |
mergeState(AuditFlushContext context)
Merge multiple change flush events for the same entity into the same structure.
|
protected void |
processUpdate(UpdateDTO updateDTO,
AuditLogServiceImpl.MergeResult mergeResult,
boolean isCreateMerge,
AuditFlushContext context,
FlushKey key) |
protected void |
renderAuditValues(Map<FlushKey,AuditLogServiceImpl.MergeResult> mergedState)
Take the merged and organized change information and render String representations.
|
void |
renderFlush(AuditFlushContext context)
Based on the
AuditFlushContext resulting from the flush of a transaction, perform all operations on the
change data to transform it into a consumable log state. |
void |
setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation) |
protected RenderManager renderManager
protected AuditLogDao dao
protected AuditQualifier qualifier
protected String antiSamyPolicyFileLocation
public AuditLogServiceImpl(RenderManager renderManager, AuditLogDao dao, AuditQualifier qualifier)
public void renderFlush(AuditFlushContext context)
AuditLogServiceAuditFlushContext resulting from the flush of a transaction, perform all operations on the
change data to transform it into a consumable log state.renderFlush in interface AuditLogServicepublic String getAntiSamyPolicyFileLocation()
public void setAntiSamyPolicyFileLocation(String antiSamyPolicyFileLocation)
protected void renderAuditValues(Map<FlushKey,AuditLogServiceImpl.MergeResult> mergedState)
mergedState - protected String cleanString(String string)
string - protected Map<FlushKey,AuditLogServiceImpl.MergeResult> mergeState(AuditFlushContext context)
context - protected boolean isDirty(UpdateDTO dto, int fieldPos, AuditFlushContext context, FlushKey key)
protected boolean isSkippable(OldFieldDTO dto, int fieldPos, AuditFlushContext context, FlushKey key)
protected boolean isSkippableBasedOnCreator(AuditFlushContext context, FlushKey key)
protected boolean isEmpty(OldFieldDTO dto, int fieldPos)
protected void processUpdate(UpdateDTO updateDTO, AuditLogServiceImpl.MergeResult mergeResult, boolean isCreateMerge, AuditFlushContext context, FlushKey key)
Copyright © 2019. All rights reserved.