Class Audit2Bridge

  • All Implemented Interfaces:
    IAuditor

    public class Audit2Bridge
    extends Object
    implements IAuditor
    Implementation of V1 IAuditor in terms of V2 AuditEvent etc. This class is mainly meant for easy transition without adopting all APIs.
    Author:
    Philip Helger
    • Method Detail

      • getCurrentUserIDProvider

        @Nonnull
        public final com.helger.security.authentication.subject.user.ICurrentUserIDProvider getCurrentUserIDProvider()
      • createAuditItem

        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)
        Description copied from interface: IAuditor
        Create a new audit item.
        Specified by:
        createAuditItem in interface IAuditor
        Parameters:
        eActionType - 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.