public class BMECatEurope1ArticlePriceStep extends GeneratedBMECatEurope1ArticlePriceStep
BMECatImportStep.DefaultBMECatObjectProcessorGenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
protected static String |
BMECAT_TAX_CODE |
protected static String |
LAST_VALID_PRICE_ARTICLE_ID |
protected static String |
NONE |
DEFAULT_INITIAL_ATTRIBUTESXML_MIME_TYPE, ZIP_MIME_TYPEBATCHJOB, CODE, CRONJOBPENDINGSTEPSRELATION_MARKMODIFIED, CRONJOBPENDINGSTEPSRELATION_SRC_ORDERED, CRONJOBPENDINGSTEPSRELATION_TGT_ORDERED, CRONJOBPROCESSEDSTEPSRELATION_MARKMODIFIED, CRONJOBPROCESSEDSTEPSRELATION_SRC_ORDERED, CRONJOBPROCESSEDSTEPSRELATION_TGT_ORDERED, ERRORMODE, PENDINGCRONJOBS, PROCESSEDCRONJOBS, SEQUENCENUMBER, SYNCHRONOUSLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
BMECatEurope1ArticlePriceStep() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canUndo(CronJob forSchedule)
Returns
true, if this Step is undoable for the specified CronJob. |
protected DateRange |
convertDateRange(ArticlePriceDetails details)
Creates a property date range object for a given article detail range.
|
protected void |
createPrices(Catalog catalog,
Article article,
BMECatImportCronJob cronJob)
Creates Europe1 prices according to the following rules.
|
protected void |
deletePrices(Catalog catalog,
Article article,
BMECatImportCronJob cronJob)
Deletes all price and tax rows which are directly assigned to the article.
|
protected String |
getLastValidArticleCode(BMECatImportCronJob cronJob,
Catalog catalog) |
protected Tax |
getOrCreateBMECatTaxItem() |
protected Tax |
getOrCreateBMECatTaxItem(String code) |
protected EnumerationValue |
getOrCreateCustomerPriceGroup(Europe1PriceFactory europe1PriceFactory,
Company buyer,
ArticlePrice price) |
protected EnumerationValue |
getOrCreateCustomerTaxGroup(Europe1PriceFactory europe1PriceFactory,
Company buyer,
ArticlePrice price) |
protected String |
getPriceGroupKey(Company buyer,
ArticlePrice price) |
protected void |
log(CronJob cronJob,
String message)
This message logs to both standard logging and cronjob log
|
protected void |
performStep(CronJob cronJob)
Performs
BMECatImportCronJob by creating a BMECat 1.2 Sax parser around the
media data attached to the cronJob. |
protected boolean |
skipArticleOnRestart(Catalog catalog,
Article article,
BMECatImportCronJob cronJob) |
protected void |
undoCreate(BMECatImportCronJob cronJob,
PriceChangeDescriptor changeDesc) |
protected void |
undoProduct(CronJob cronJob,
Product product) |
protected void |
undoRemove(BMECatImportCronJob cronJob,
PriceChangeDescriptor changeDesc) |
protected void |
undoStep(CronJob cronJob)
Removes all keywords created by this step for the specified cronJob.
|
getDefaultAttributeModesgetCompletedCount, getTotalToComplete, importBMECatObject, initializeBMECatImport, updatePricescanPerform, createKeyword, createProcessor, customizeImport, finalizeStep, getBMECatManager, getCatalogManager, getCompletionStatus, getData, getOrCreateKeywords, getProduct, isAbortable, remove, writeToFileaddChange, createItem, debug, error, fatal, getChanges, getChanges, getChanges, getChanges, getFailErrorMode, getIgnoreErrorMode, getMostRecentChange, getNonInitialAttributes, getPauseErrorMode, hasChanges, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, setNonInitialAttributes, toString, warngetBatchJob, getBatchJob, getCode, getCode, getErrorMode, getErrorMode, getSequenceNumber, getSequenceNumber, getSequenceNumberAsPrimitive, getSequenceNumberAsPrimitive, isSynchronous, isSynchronous, isSynchronousAsPrimitive, isSynchronousAsPrimitive, setBatchJob, setBatchJob, setCode, setCode, setErrorMode, setErrorMode, setSequenceNumber, setSequenceNumber, setSequenceNumber, setSequenceNumber, setSynchronous, setSynchronous, setSynchronous, setSynchronousgetInitialPropertiesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplacegetImplementation, setTenantprotected static final String LAST_VALID_PRICE_ARTICLE_ID
protected static final String NONE
protected static final String BMECAT_TAX_CODE
protected boolean canUndo(CronJob forSchedule)
Steptrue, if this Step is undoable for the specified CronJob. Otherwise
false is returned.
If one step of a CronJob returns false the whole CronJob will stop the undo process. The default
implementation returns false. If your subclass of Step supports the undo-feature,
override this method and return true.canUndo in class StepforSchedule - the CronJob which is used for executiontrue, if this Step is undoable for the specified CronJobStep.undoStep(CronJob)protected void undoStep(CronJob cronJob)
BMECatImportStepundoStep in class BMECatImportStepcronJob - context of step executionStep.canUndo(CronJob)protected void performStep(CronJob cronJob) throws AbortCronJobException
BMECatImportStepBMECatImportCronJob by creating a BMECat 1.2 Sax parser around the
media data attached to the cronJob.
First BMECatImportStep.initializeBMECatImport(de.hybris.platform.bmecat.parser.Catalog, BMECatImportCronJob)is called to
pass all informations about the BMECat catalog of the imported document. Afterwards
BMECatImportStep.importBMECatObject(de.hybris.platform.bmecat.parser.Catalog, AbstractValueObject, BMECatImportCronJob) is
called for any other BMECat data object.
performStep in class BMECatImportStepcronJob - the CronJob which is used for executionAbortCronJobException - if the execution is aborted due to an errorStep.canPerform(CronJob)protected boolean skipArticleOnRestart(Catalog catalog, Article article, BMECatImportCronJob cronJob)
skipArticleOnRestart in class BMECatArticlePriceStepprotected String getLastValidArticleCode(BMECatImportCronJob cronJob, Catalog catalog)
protected void deletePrices(Catalog catalog, Article article, BMECatImportCronJob cronJob)
This includes all prices and taxes - not just the ones created by BMECat import!
deletePrices in class BMECatArticlePriceStepcatalog - the catalog which is currently importedarticle - the article to import prices forcronJob - the cronJob which executes this importprotected DateRange convertDateRange(ArticlePriceDetails details)
details - the bmecat price rangeprotected void createPrices(Catalog catalog, Article article, BMECatImportCronJob cronJob)
convertDateRange(ArticlePriceDetails)getPriceGroupKey(de.hybris.platform.bmecat.parser.Company, ArticlePrice) )Taxes are treated somehow special:
createPrices in class BMECatArticlePriceStepcatalog - the catalog which is currently importedarticle - the article to import prices forcronJob - the cronJob which executes this importprotected EnumerationValue getOrCreateCustomerPriceGroup(Europe1PriceFactory europe1PriceFactory, Company buyer, ArticlePrice price)
protected Tax getOrCreateBMECatTaxItem()
protected EnumerationValue getOrCreateCustomerTaxGroup(Europe1PriceFactory europe1PriceFactory, Company buyer, ArticlePrice price)
protected String getPriceGroupKey(Company buyer, ArticlePrice price)
protected void undoCreate(BMECatImportCronJob cronJob, PriceChangeDescriptor changeDesc)
protected void undoRemove(BMECatImportCronJob cronJob, PriceChangeDescriptor changeDesc)
Copyright © 2017 SAP SE. All Rights Reserved.