@ThreadSafe public final class AuditHelper extends Object
EAuditActionType - CREATE, MODIFY,
DELETE, UNDELETE, EXECUTE) this class provided static helpers methods.| Modifier and Type | Method and Description |
|---|---|
static IAuditor |
getAuditor() |
static boolean |
isDefaultAuditorSet() |
static void |
onAuditCreateFailure(com.helger.commons.type.ObjectType aObjectType)
Deprecated.
|
static void |
onAuditCreateFailure(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs) |
static void |
onAuditCreateSuccess(com.helger.commons.type.ObjectType aObjectType) |
static void |
onAuditCreateSuccess(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs) |
static void |
onAuditDeleteFailure(com.helger.commons.type.ObjectType aObjectType)
Deprecated.
|
static void |
onAuditDeleteFailure(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs) |
static void |
onAuditDeleteSuccess(com.helger.commons.type.ObjectType aObjectType)
Deprecated.
|
static void |
onAuditDeleteSuccess(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs) |
static void |
onAuditExecuteFailure(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs) |
static void |
onAuditExecuteFailure(String sWhat,
Object... aArgs) |
static void |
onAuditExecuteSuccess(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs) |
static void |
onAuditExecuteSuccess(String sWhat,
Object... aArgs) |
static void |
onAuditModifyFailure(com.helger.commons.type.ObjectType aObjectType,
String sWhat)
Deprecated.
|
static void |
onAuditModifyFailure(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs) |
static void |
onAuditModifySuccess(com.helger.commons.type.ObjectType aObjectType,
String sWhat)
Deprecated.
|
static void |
onAuditModifySuccess(com.helger.commons.type.ObjectType aObjectType,
String sWhat,
Object... aArgs) |
static void |
onAuditUndeleteFailure(com.helger.commons.type.ObjectType aObjectType)
Deprecated.
|
static void |
onAuditUndeleteFailure(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs) |
static void |
onAuditUndeleteSuccess(com.helger.commons.type.ObjectType aObjectType)
Deprecated.
|
static void |
onAuditUndeleteSuccess(com.helger.commons.type.ObjectType aObjectType,
Object... aArgs) |
static void |
setAuditor(IAuditor aAuditor)
Set the global auditor to use.
|
static void |
setDefaultAuditor()
Set the default auditor again.
|
public static boolean isDefaultAuditorSet()
true if the current Auditor is the default auditor.public static void setAuditor(@Nonnull IAuditor aAuditor)
aAuditor - The auditor to be set. May not be null.public static void setDefaultAuditor()
public static void onAuditCreateSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType)
public static void onAuditCreateSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditCreateFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType)
public static void onAuditCreateFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditModifySuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat)
public static void onAuditModifySuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditModifyFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat)
public static void onAuditModifyFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditDeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType)
public static void onAuditDeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditDeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType)
public static void onAuditDeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditUndeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType)
public static void onAuditUndeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
@Deprecated @UnsupportedOperation @DevelopersNote(value="Use the version with parameters!") public static void onAuditUndeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType)
public static void onAuditUndeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
public static void onAuditExecuteSuccess(@Nonnull String sWhat, @Nullable Object... aArgs)
public static void onAuditExecuteFailure(@Nonnull String sWhat, @Nullable Object... aArgs)
public static void onAuditExecuteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
Copyright © 2014–2023 Philip Helger. All rights reserved.