Class UpdatePricesSpecification
java.lang.Object
com.broadleafcommerce.dataimport.processor.specification.DefaultSpecification
com.broadleafcommerce.dataimport.processor.specification.UpdatePricesSpecification
- All Implemented Interfaces:
GlobalImportSpecification
,ImportSpecification
public class UpdatePricesSpecification
extends DefaultSpecification
implements GlobalImportSpecification
The default specification for the
DefaultImportType.UPDATE_CATALOG_PRICES
import type.- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields inherited from class com.broadleafcommerce.dataimport.processor.specification.DefaultSpecification
dependencyMappings, fieldConfigMap
Fields inherited from interface com.broadleafcommerce.dataimport.processor.specification.ImportSpecification
ROW_DETERMINATION_COLUMN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether or not this specification can actually handle the given import.boolean
Whether or not the entity is catalog discriminated.boolean
Whether or not the entity is sandbox discriminated.protected void
populateHeaderFieldConfigsByRowType
(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, populateDynamicHeaderMappingsByRowType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.dataimport.processor.specification.GlobalImportSpecification
getParentEntityIdHeader, hasParentEntity
Methods inherited from interface com.broadleafcommerce.dataimport.processor.specification.ImportSpecification
getDependencyMappings, getFieldConfigMap, getHeaderFieldConfigsByRowType, getImportDataNormalizers, getImportType, getMainRecordType, getName, getRequiredAuthorities, getRequiredHeaders, getRequiredHeaders, getRequiredScopes, isRequiresRowTypeHeader, mapDynamicFieldToHeader, mapDynamicHeaderToField, parentEntityIdRequiredInRequest, resolveAndRemoveRecordType, resolveRecordTypeBeforePropertyMapping, shouldAllowUnmappedHeaders, shouldAutoGenerateOperationTypeForEachRecord, shouldAutoGenerateResourceTierIdForEachRecord
-
Constructor Details
-
UpdatePricesSpecification
-
UpdatePricesSpecification
-
-
Method Details
-
canHandle
Description copied from interface:ImportSpecification
Whether or not this specification can actually handle the given import. Checks will generally be based on the import type.- Specified by:
canHandle
in interfaceImportSpecification
- Overrides:
canHandle
in 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:DefaultSpecification
This 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:
populateHeaderFieldConfigsByRowType
in 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()
.
-
isCatalogDiscriminated
public boolean isCatalogDiscriminated()Description copied from interface:ImportSpecification
Whether or not the entity is catalog discriminated.- Specified by:
isCatalogDiscriminated
in interfaceImportSpecification
- Returns:
- true if the entity is catalog discriminated or false otherwise
-
isSandboxDiscriminated
public boolean isSandboxDiscriminated()Description copied from interface:ImportSpecification
Whether or not the entity is sandbox discriminated.- Specified by:
isSandboxDiscriminated
in interfaceImportSpecification
- Returns:
- true if the entity is sandbox discriminated or false otherwise
-