@Component(value="blAddressMetadataPreProcessor") public class AddressMetadataPreProcessor extends Object implements RecordPersistencePreProcessor
Constructor and Description |
---|
AddressMetadataPreProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
prePersist(RecordParseResult result,
ImportContext context)
Invoked prior to the
ImportPersister persisting the RecordParseResult.getMainRequest() but after
the LateIdResolver has had a chance to run. |
public void prePersist(RecordParseResult result, ImportContext context) throws org.broadleafcommerce.common.exception.ServiceException
RecordPersistencePreProcessor
Invoked prior to the ImportPersister
persisting the RecordParseResult.getMainRequest()
but after
the LateIdResolver
has had a chance to run. This way, the given RecordParseResult.getMainRequest()
should already have the real id property already filled in and available for use.
Anything about the parseResult can be modified or changed that needs to happen prior to persisting
prePersist
in interface RecordPersistencePreProcessor
org.broadleafcommerce.common.exception.ServiceException
- if there was a some sort of problem in pre-processing the parseResultCopyright © 2020. All rights reserved.