@Immutable public abstract class AbstractAuditor extends Object implements IAuditor
IAuditor.| Constructor and Description |
|---|
AbstractAuditor(ICurrentUserIDProvider aCurrentUserIDProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createAuditString(String sObjectType,
Object[] aArgs) |
protected abstract void |
handleAuditItem(IAuditItem aAuditItem)
Implement this method to handle the created audit items.
|
void |
onCreateFailure(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs)
The creation of an object failed.
|
void |
onCreateSuccess(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs)
The creation of an object succeeded.
|
void |
onDeleteFailure(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs)
The deletion of an object failed.
|
void |
onDeleteSuccess(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs)
The deletion of an object succeeded.
|
void |
onExecuteFailure(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs)
The execution of something on an object failed.
|
void |
onExecuteFailure(String sWhat,
Object... aArgs)
The execution of something failed.
|
void |
onExecuteSuccess(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs)
The execution of something on an object succeeded.
|
void |
onExecuteSuccess(String sWhat,
Object... aArgs)
The execution of something succeeded.
|
void |
onModifyFailure(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs)
The modification of an object failed.
|
void |
onModifySuccess(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs)
The modification of an object succeeded.
|
void |
onUndeleteFailure(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs)
The undeletion of an object failed.
|
void |
onUndeleteSuccess(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs)
The undeletion of an object succeeded.
|
void |
setCurrentUserIDProvider(ICurrentUserIDProvider aCurrentUserIDProvider) |
protected boolean |
useJsonNotation() |
public AbstractAuditor(@Nonnull ICurrentUserIDProvider aCurrentUserIDProvider)
public final void setCurrentUserIDProvider(@Nonnull ICurrentUserIDProvider aCurrentUserIDProvider)
@OverrideOnDemand protected boolean useJsonNotation()
true to create a Json string, false to
create a legacy comma separated listprotected abstract void handleAuditItem(@Nonnull IAuditItem aAuditItem)
aAuditItem - The audit item to handle. Never null.@Nonnull @OverrideOnDemand protected String createAuditString(@Nonnull String sObjectType, @Nullable Object[] aArgs)
public void onCreateSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
IAuditoronCreateSuccess in interface IAuditoraObjectType - The object typeaArgs - Additional argumentspublic void onCreateFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
IAuditoronCreateFailure in interface IAuditoraObjectType - The object typeaArgs - Additional argumentspublic void onModifySuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
IAuditoronModifySuccess in interface IAuditoraObjectType - The object typesWhat - What was modified?aArgs - Additional argumentspublic void onModifyFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
IAuditoronModifyFailure in interface IAuditoraObjectType - The object typesWhat - What was modified?aArgs - Additional argumentspublic void onDeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
IAuditoronDeleteSuccess in interface IAuditoraObjectType - The object typeaArgs - Additional argumentspublic void onDeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
IAuditoronDeleteFailure in interface IAuditoraObjectType - The object typeaArgs - Additional argumentspublic void onUndeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
IAuditoronUndeleteSuccess in interface IAuditoraObjectType - The object typeaArgs - Additional argumentspublic void onUndeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
IAuditoronUndeleteFailure in interface IAuditoraObjectType - The object typeaArgs - Additional argumentspublic void onExecuteSuccess(@Nonnull String sWhat, @Nullable Object... aArgs)
IAuditoronExecuteSuccess in interface IAuditorsWhat - What has been executed?aArgs - Additional argumentspublic void onExecuteFailure(@Nonnull String sWhat, @Nullable Object... aArgs)
IAuditoronExecuteFailure in interface IAuditorsWhat - What has been executed?aArgs - Additional argumentspublic void onExecuteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
IAuditoronExecuteSuccess in interface IAuditoraObjectType - The object typesWhat - What has been executed?aArgs - Additional argumentspublic void onExecuteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
IAuditoronExecuteFailure in interface IAuditoraObjectType - The object typesWhat - What has been executed?aArgs - Additional argumentsCopyright © 2014–2015 Philip Helger. All rights reserved.