Class CustomerSpecification
java.lang.Object
com.broadleafcommerce.dataimport.processor.specification.DefaultSpecification
com.broadleafcommerce.dataimport.processor.specification.CustomerSpecification
- All Implemented Interfaces:
GlobalImportSpecification,ImportSpecification
public class CustomerSpecification
extends DefaultSpecification
implements GlobalImportSpecification
- Author:
- Vitalii Voronkov (vvoronkov)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields inherited from class com.broadleafcommerce.dataimport.processor.specification.DefaultSpecification
dependencyMappings, fieldConfigMapFields inherited from interface com.broadleafcommerce.dataimport.processor.specification.ImportSpecification
ROW_DETERMINATION_COLUMN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether or not this specification can actually handle the given import.protected voidpopulateHeaderFieldConfigsByRowType(Map<String, Map<String, ImportFieldConfig>> headerFieldConfigsByRowType) This method is always invoked in the constructor - seeDefaultSpecification.createUnmodifiableHeaderFieldConfigsByRowType().Methods inherited from class com.broadleafcommerce.dataimport.processor.specification.DefaultSpecification
getDependencyMappings, getDynamicHeaderMappingConfigsByRowType, getFieldConfigMap, getHeaderFieldConfigsByRowType, getImportType, getName, getRequiredAuthorities, getRequiredHeaders, getRequiredHeaders, getRequiredScopes, isRequiresRowTypeHeader, mapDynamicFieldToHeader, mapDynamicHeaderToField, populateDynamicHeaderMappingsByRowTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.dataimport.processor.specification.GlobalImportSpecification
getParentEntityIdHeader, hasParentEntityMethods inherited from interface com.broadleafcommerce.dataimport.processor.specification.ImportSpecification
getDependencyMappings, getFieldConfigMap, getHeaderFieldConfigsByRowType, getImportDataNormalizers, getImportType, getMainRecordType, getName, getRequiredAuthorities, getRequiredHeaders, getRequiredHeaders, getRequiredScopes, isCatalogDiscriminated, isRequiresRowTypeHeader, isSandboxDiscriminated, mapDynamicFieldToHeader, mapDynamicHeaderToField, parentEntityIdRequiredInRequest, resolveAndRemoveRecordType, resolveRecordTypeBeforePropertyMapping, shouldAllowUnmappedHeaders, shouldAutoGenerateOperationTypeForEachRecord, shouldAutoGenerateResourceTierIdForEachRecord
-
Constructor Details
-
CustomerSpecification
-
CustomerSpecification
-
-
Method Details
-
canHandle
Description copied from interface:ImportSpecificationWhether or not this specification can actually handle the given import. Checks will generally be based on the import type.- Specified by:
canHandlein interfaceImportSpecification- Overrides:
canHandlein classDefaultSpecification- Returns:
- whether or not this specification can actually handle the given import
-
populateHeaderFieldConfigsByRowType
protected void populateHeaderFieldConfigsByRowType(Map<String, Map<String, ImportFieldConfig>> headerFieldConfigsByRowType) Description copied from class:DefaultSpecificationThis method is always invoked in the constructor - seeDefaultSpecification.createUnmodifiableHeaderFieldConfigsByRowType().Extensions of this class should override this method and use it to populate the values that they want to ultimately be in
DefaultSpecification.getHeaderFieldConfigsByRowType().- Overrides:
populateHeaderFieldConfigsByRowTypein classDefaultSpecification- Parameters:
headerFieldConfigsByRowType- a special, mutable map instance which implementations should populate with field configurations. This map will ultimately be copied into an unmodifiable separate instance that will actually be used forDefaultSpecification.getHeaderFieldConfigsByRowType().
-