Class DefaultOperationResolver
java.lang.Object
com.broadleafcommerce.common.dataimport.util.DefaultOperationResolver
- All Implemented Interfaces:
OperationResolver
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveOperation
(String recordType, OperationType suppliedOperation, String suppliedId, Map<String, String> row) Determine the id that should be used forBatchRecord.getResourceTierIdentifier()
for the parsed record from a file
-
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 forBatchRecord.getResourceTierIdentifier()
for the parsed record from a file- Specified by:
resolveOperation
in interfaceOperationResolver
- Parameters:
recordType
- the type of record being resolvedsuppliedOperation
- the operation that was given by the user in the file, can benull
suppliedId
- the primary key resolved from the file, can benull
row
- the record parsed from the file- Returns:
- operation that should be used for the record
-