Class DefaultOperationResolver

java.lang.Object
com.broadleafcommerce.common.dataimport.util.DefaultOperationResolver
All Implemented Interfaces:
OperationResolver

public class DefaultOperationResolver extends Object implements OperationResolver
Author:
Phillip Verheyden (phillipuniverse)
  • Constructor Details

    • DefaultOperationResolver

      public DefaultOperationResolver()
  • Method Details

    • resolveOperation

      public OperationType resolveOperation(String recordType, @Nullable OperationType suppliedOperation, @Nullable String suppliedId, Map<String,String> row)
      Description copied from interface: OperationResolver
      Determine the id that should be used for BatchRecord.getResourceTierIdentifier() for the parsed record from a file
      Specified by:
      resolveOperation in interface OperationResolver
      Parameters:
      recordType - the type of record being resolved
      suppliedOperation - the operation that was given by the user in the file, can be null
      suppliedId - the primary key resolved from the file, can be null
      row - the record parsed from the file
      Returns:
      operation that should be used for the record