Package com.skava.log

Class AuditLogger

java.lang.Object
com.skava.log.AuditLogger
All Implemented Interfaces:
Serializable

public final class AuditLogger extends Object implements Serializable
Audit Logger Definition
Author:
Infosys Equinox
See Also:
  • Field Details

  • Method Details

    • log

      public static void log(org.apache.camel.Exchange exchange)
      Captures the audit log for the Exchange instance
      Parameters:
      exchange - Holds the exchange
    • log

      public static void log(String businessId, String storeId, String collectionId, String action, String traceId, String userId, String message)
      Captures the audit log
      Parameters:
      businessId - Holds the businessId
      storeId - Holds the storeId
      collectionId - Holds the collectionId
      action - Holds the action
      traceId - Holds the traceId
      userId - Holds the userId
      message - Holds the message
    • log

      public static void log(AuditLog log)
      Captures the audit log for the AuditLog instance
      Parameters:
      log - Holds the AuditLog instance
    • getAuditFields

      public static List<org.audit4j.core.dto.Field> getAuditFields(AuditLog log)
      Fetches the audit fields from AuditLog
      Parameters:
      log - Holds the AuditLog
      Returns:
      Collection of Field
    • getAuditFields

      public static List<org.audit4j.core.dto.Field> getAuditFields(Map<String,String> auditFields)
      Fetches the audit fields from Map
      Parameters:
      auditFields - Holds the map of fields with key and value
      Returns:
      Collection of Field
    • mask

      public static String mask(String value, int size)
      Masks the given value with '*' from left with the given size
      Parameters:
      value - Holds the value to be masked
      size - Holds the size (no of chars from left to mask)
      Returns:
      masked value