@Component(value="blDefaultValueRecordProcessor") public class DefaultValueRecordProcessor extends Object implements RecordPersistencePreProcessor
Modifier and Type | Field and Description |
---|---|
protected DynamicEntityDaoProvider |
entityDaoProvider |
protected org.broadleafcommerce.openadmin.web.service.FormBuilderService |
formService |
Constructor and Description |
---|
DefaultValueRecordProcessor() |
Modifier and Type | Method and Description |
---|---|
protected String |
getDefaultValue(org.broadleafcommerce.openadmin.dto.BasicFieldMetadata fmd) |
void |
prePersist(RecordParseResult parseResult,
ImportContext context)
Invoked prior to the
ImportPersister persisting the RecordParseResult.getMainRequest() but after
the LateIdResolver has had a chance to run. |
protected DynamicEntityDaoProvider entityDaoProvider
protected org.broadleafcommerce.openadmin.web.service.FormBuilderService formService
public void prePersist(RecordParseResult parseResult, 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 parseResultprotected String getDefaultValue(org.broadleafcommerce.openadmin.dto.BasicFieldMetadata fmd)
Copyright © 2020. All rights reserved.