Class AuditLog

java.lang.Object
com.skava.oms.log.AuditLog

public final class AuditLog extends Object
  • Field Details

  • Method Details

    • auditEvent

      public static void auditEvent(String action, OmsServiceEntityResponse<OrderDTO> orderResponse)
      Fetches the values in AuditEvent class
      Parameters:
      action - holds the action message
      orderResponse - holds the fields values
    • getAuditFields

      public static List<org.audit4j.core.dto.Field> getAuditFields(OrderDTO order)
      Add all the values in Fields class list
      Parameters:
      order - holds the fields values
      Returns:
      fields list
    • getCollectionID

      public static String getCollectionID(long collectionId)
      Performs the type casting operation
      Parameters:
      collectionId - holds the long collectionId values
      Returns:
      the converted string
    • getValues

      public static String getValues(String values, String defaultValues)
      Fetches the default value for the given value
      Parameters:
      values - Holds the value to be checked
      defaultValues - Holds the default value to be returned if given values is invalid
      Returns:
      values if is valid otherwise defaultValues.