public class Audit2Bridge extends Object implements IAuditor
IAuditor in terms of V2 AuditEvent etc.
This class is mainly meant for easy transition without adopting all APIs.| Modifier and Type | Field and Description |
|---|---|
static String |
AUDIT_FIELD_OBJECT_TYPE |
static String |
AUDIT_FIELD_USER_ACTION |
| Constructor and Description |
|---|
Audit2Bridge(com.helger.security.authentication.subject.user.ICurrentUserIDProvider aCurrentUserIDProvider,
IAuditEventConsumer aAuditEventConsumer,
Function<Object,String> aToStringConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
createAuditItem(EAuditActionType eActionType,
com.helger.commons.state.ESuccess eSuccess,
com.helger.commons.type.ObjectType aActionObjectType,
String sUserAction,
Object... aArgs)
Create a new audit item.
|
IAuditEventConsumer |
getAuditEventConsumer() |
com.helger.security.authentication.subject.user.ICurrentUserIDProvider |
getCurrentUserIDProvider() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonCreateFailure, onCreateSuccess, onDeleteFailure, onDeleteSuccess, onExecuteFailure, onExecuteFailure, onExecuteSuccess, onExecuteSuccess, onModifyFailure, onModifySuccess, onUndeleteFailure, onUndeleteSuccesspublic static final String AUDIT_FIELD_OBJECT_TYPE
public static final String AUDIT_FIELD_USER_ACTION
@Nonnull public final com.helger.security.authentication.subject.user.ICurrentUserIDProvider getCurrentUserIDProvider()
@Nonnull public final IAuditEventConsumer getAuditEventConsumer()
public void createAuditItem(@Nonnull EAuditActionType eActionType, @Nonnull com.helger.commons.state.ESuccess eSuccess, @Nullable com.helger.commons.type.ObjectType aActionObjectType, @Nullable String sUserAction, @Nullable Object... aArgs)
IAuditorcreateAuditItem in interface IAuditoreActionType - Action type. May not be null.eSuccess - Success or failure? May not be null.aActionObjectType - Action object type. May be null if sAction is set.sUserAction - The performed action. May be null if aActionObjectType
is set.aArgs - An optional array of arguments. May be null or empty.Copyright © 2014–2023 Philip Helger. All rights reserved.