public class BMECatArticleToCategoryStep extends GeneratedBMECatArticleToCategoryStep
| Modifier and Type | Class and Description |
|---|---|
static class |
BMECatArticleToCategoryStep.Product2CategoryPair
BMECatArticleToCategoryStep.Product2CategoryPair
|
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 |
LAST_VALID_PRODUCT2CATEGORY_KEY |
protected static BMECatArticleToCategoryStep.Product2CategoryPair |
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 |
|---|
BMECatArticleToCategoryStep() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canUndo(CronJob cronJob)
Defines that this step can be undone
|
protected Category |
getCatalogCategory(BMECatImportCronJob cronJob,
String code)
Getting the catalog category
|
int |
getCompletedCount(BMECatImportCronJob cronJob) |
protected BMECatArticleToCategoryStep.Product2CategoryPair |
getLastValidProduct2CategoryCode(BMECatImportCronJob cronJob,
Catalog catalogValueObj) |
int |
getTotalToComplete(BMECatImportCronJob cronJob) |
protected void |
importArticleToCategoryMapping(BMECatImportCronJob cronJob,
Catalog catalogValueObject,
ArticleToCatalogGroupMap articleToCategoryValueObject)
Creates the mapping between the specified Article and Category using the
Language from current
SessionContext. |
protected void |
importBMECatObject(Catalog catalogValueObject,
AbstractValueObject object,
BMECatImportCronJob cronJob)
Imports product to category binding
|
protected void |
initializeBMECatImport(Catalog catalog,
BMECatImportCronJob cronJob)
Initialzes the CategoryCache map.
|
protected void |
performStep(CronJob cronJob)
Resets last imported key product2category mapping
|
protected void |
undoStep(CronJob cronJob)
Undo all changes done by cronjob
|
getDefaultAttributeModescanPerform, 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_PRODUCT2CATEGORY_KEY
protected static final BMECatArticleToCategoryStep.Product2CategoryPair NONE
protected void importBMECatObject(Catalog catalogValueObject, AbstractValueObject object, BMECatImportCronJob cronJob) throws ParseAbortException
importBMECatObject in class BMECatImportStepcatalogValueObject - the parsed catalog dataobject - the parsed value objectcronJob - the cronJob which executes the current importParseAbortExceptionpublic int getCompletedCount(BMECatImportCronJob cronJob)
getCompletedCount in class BMECatImportSteppublic int getTotalToComplete(BMECatImportCronJob cronJob)
getTotalToComplete in class BMECatImportStepprotected boolean canUndo(CronJob cronJob)
canUndo in class StepcronJob - the CronJob which is used for executionStep.undoStep(CronJob)protected void performStep(CronJob cronJob) throws AbortCronJobException
performStep in class BMECatImportStepcronJob - AbortCronJobException - if the execution is aborted due to an errorStep.canPerform(CronJob)protected void importArticleToCategoryMapping(BMECatImportCronJob cronJob, Catalog catalogValueObject, ArticleToCatalogGroupMap articleToCategoryValueObject)
Language from current
SessionContext. Restart is enabled by skipping all already processed product2category items.cronJob - catalogValueObject - articleToCategoryValueObject - protected BMECatArticleToCategoryStep.Product2CategoryPair getLastValidProduct2CategoryCode(BMECatImportCronJob cronJob, Catalog catalogValueObj)
protected void undoStep(CronJob cronJob)
undoStep in class BMECatImportStepcronJob - context of step executionStep.canUndo(CronJob)protected Category getCatalogCategory(BMECatImportCronJob cronJob, String code)
cronJob - code - protected void initializeBMECatImport(Catalog catalog, BMECatImportCronJob cronJob)
initializeBMECatImport in class BMECatImportStepcatalog - object which holds information about the BMECat catalog tagcronJob - context under which this step isCopyright © 2017 SAP SE. All Rights Reserved.