Interface OperationResolver
- All Known Implementing Classes:
DefaultOperationResolver
public interface OperationResolver
- Author:
- Phillip Verheyden (phillipuniverse)
-
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
-
Method Details
-
resolveOperation
OperationType resolveOperation(String recordType, @Nullable OperationType suppliedOperation, @Nullable String suppliedId, Map<String, String> row) Determine the id that should be used forBatchRecord.getResourceTierIdentifier()
for the parsed record from a file- 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
-