Package com.helger.photon.audit
Interface IAuditor
-
- All Known Implementing Classes:
AbstractAuditor,AsynchronousAuditor,Audit2Bridge,DoNothingAuditor,LoggingAuditor,SimpleAuditManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IAuditor
Main interface for an auditing service. Not serializable.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcreateAuditItem(EAuditActionType eActionType, com.helger.commons.state.ESuccess eSuccess, com.helger.commons.type.ObjectType aActionObjectType, String sAction, Object... aArgs)Create a new audit item.default voidonCreateFailure(com.helger.commons.type.ObjectType aObjectType, Object... aArgs)The creation of an object failed.default voidonCreateSuccess(com.helger.commons.type.ObjectType aObjectType, Object... aArgs)The creation of an object succeeded.default voidonDeleteFailure(com.helger.commons.type.ObjectType aObjectType, Object... aArgs)The deletion of an object failed.default voidonDeleteSuccess(com.helger.commons.type.ObjectType aObjectType, Object... aArgs)The deletion of an object succeeded.default voidonExecuteFailure(com.helger.commons.type.ObjectType aObjectType, String sWhat, Object... aArgs)The execution of something on an object failed.default voidonExecuteFailure(String sWhat, Object... aArgs)The execution of something failed.default voidonExecuteSuccess(com.helger.commons.type.ObjectType aObjectType, String sWhat, Object... aArgs)The execution of something on an object succeeded.default voidonExecuteSuccess(String sWhat, Object... aArgs)The execution of something succeeded.default voidonModifyFailure(com.helger.commons.type.ObjectType aObjectType, String sWhat, Object... aArgs)The modification of an object failed.default voidonModifySuccess(com.helger.commons.type.ObjectType aObjectType, String sWhat, Object... aArgs)The modification of an object succeeded.default voidonUndeleteFailure(com.helger.commons.type.ObjectType aObjectType, Object... aArgs)The undeletion of an object failed.default voidonUndeleteSuccess(com.helger.commons.type.ObjectType aObjectType, Object... aArgs)The undeletion of an object succeeded.
-
-
-
Method Detail
-
createAuditItem
void createAuditItem(@Nonnull EAuditActionType eActionType, @Nonnull com.helger.commons.state.ESuccess eSuccess, @Nullable com.helger.commons.type.ObjectType aActionObjectType, @Nullable String sAction, @Nullable Object... aArgs)
Create a new audit item.- Parameters:
eActionType- Action type. May not benull.eSuccess- Success or failure? May not benull.aActionObjectType- Action object type. May benullif sAction is set.sAction- The performed action. May benullif aActionObjectType is set.aArgs- An optional array of arguments. May benullor empty.
-
onCreateSuccess
default void onCreateSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
The creation of an object succeeded.- Parameters:
aObjectType- The object typeaArgs- Additional arguments
-
onCreateFailure
default void onCreateFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
The creation of an object failed.- Parameters:
aObjectType- The object typeaArgs- Additional arguments
-
onModifySuccess
default void onModifySuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
The modification of an object succeeded.- Parameters:
aObjectType- The object typesWhat- What was modified?aArgs- Additional arguments
-
onModifyFailure
default void onModifyFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
The modification of an object failed.- Parameters:
aObjectType- The object typesWhat- What was modified?aArgs- Additional arguments
-
onDeleteSuccess
default void onDeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
The deletion of an object succeeded.- Parameters:
aObjectType- The object typeaArgs- Additional arguments
-
onDeleteFailure
default void onDeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
The deletion of an object failed.- Parameters:
aObjectType- The object typeaArgs- Additional arguments
-
onUndeleteSuccess
default void onUndeleteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
The undeletion of an object succeeded.- Parameters:
aObjectType- The object typeaArgs- Additional arguments
-
onUndeleteFailure
default void onUndeleteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nullable Object... aArgs)
The undeletion of an object failed.- Parameters:
aObjectType- The object typeaArgs- Additional arguments
-
onExecuteSuccess
default void onExecuteSuccess(@Nonnull String sWhat, @Nullable Object... aArgs)
The execution of something succeeded.- Parameters:
sWhat- What has been executed?aArgs- Additional arguments
-
onExecuteFailure
default void onExecuteFailure(@Nonnull String sWhat, @Nullable Object... aArgs)
The execution of something failed.- Parameters:
sWhat- What has been executed?aArgs- Additional arguments
-
onExecuteSuccess
default void onExecuteSuccess(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
The execution of something on an object succeeded.- Parameters:
aObjectType- The object typesWhat- What has been executed?aArgs- Additional arguments
-
onExecuteFailure
default void onExecuteFailure(@Nonnull com.helger.commons.type.ObjectType aObjectType, @Nonnull String sWhat, @Nullable Object... aArgs)
The execution of something on an object failed.- Parameters:
aObjectType- The object typesWhat- What has been executed?aArgs- Additional arguments
-
-