public class BMECatInfoStep extends GeneratedBMECatInfoStep
BMECatImportStep.DefaultBMECatObjectProcessorGenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionDEFAULT_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 |
|---|
BMECatInfoStep() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addKeywords(BMECatImportCronJob cronJob,
java.util.Collection keywords) |
static void |
addMimes(BMECatImportCronJob cronJob,
java.util.Collection mimes) |
protected void |
addToArticleCount(BMECatImportCronJob cronJob,
int add) |
protected void |
addToCategoryAssignmentCount(BMECatImportCronJob cronJob,
int add) |
protected void |
addToCategoryCount(BMECatImportCronJob cronJob,
int add) |
protected ClassificationSystem |
addToClassificationMappings(BMECatImportCronJob cronJob,
java.lang.String qualifier) |
protected void |
addToCountryMappings(BMECatImportCronJob cronJob,
java.util.Collection codes) |
protected Currency |
addToCurrencyMappings(BMECatImportCronJob cronJob,
java.lang.String code) |
protected Unit |
addToUnitMappings(BMECatImportCronJob cronJob,
java.lang.String code) |
protected boolean |
canUndo(CronJob forSchedule)
Returns
true, if this Step is undoable for the specified CronJob. |
int |
getCompletionStatus() |
static int |
getMimeCount(BMECatImportCronJob cronJob) |
protected void |
importBMECatObject(Catalog catalog,
AbstractValueObject object,
BMECatImportCronJob cronJob)
Analyzes articles, medias, categories, currencies, units and countries.
|
protected void |
initializeBMECatImport(Catalog catalogValueObject,
BMECatImportCronJob cronJob)
Analyzes the catalog.
|
protected void |
performStep(CronJob forSchedule)
Performs
BMECatImportCronJob by creating a BMECat 1.2 Sax parser around the
media data attached to the cronJob. |
protected void |
saveArticleCount(BMECatImportCronJob cronJob) |
protected void |
saveCategoryAssignmentCount(BMECatImportCronJob cronJob) |
protected void |
saveCategoryCount(BMECatImportCronJob cronJob) |
protected void |
saveKeywordCount(BMECatImportCronJob cronJob) |
protected void |
saveMimeCount(BMECatImportCronJob cronJob) |
protected void |
undoStep(CronJob forSchedule)
Does nothing right now.
|
getDefaultAttributeModescanPerform, createKeyword, createProcessor, customizeImport, finalizeStep, getBMECatManager, getCatalogManager, getCompletedCount, getCompletionStatus, getData, getOrCreateKeywords, getProduct, getTotalToComplete, 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, isMarkModifiedDisabled, 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, getImplementation, 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, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantprotected 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 forSchedule)
undoStep in class BMECatImportStepforSchedule - context of step executionStep.canUndo(CronJob)protected void performStep(CronJob forSchedule) 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 BMECatImportStepforSchedule - the CronJob which is used for executionAbortCronJobException - if the execution is aborted due to an errorStep.canPerform(CronJob)public int getCompletionStatus()
protected void saveCategoryAssignmentCount(BMECatImportCronJob cronJob)
protected void addToCategoryAssignmentCount(BMECatImportCronJob cronJob, int add)
protected void saveArticleCount(BMECatImportCronJob cronJob)
protected void addToArticleCount(BMECatImportCronJob cronJob, int add)
protected void saveKeywordCount(BMECatImportCronJob cronJob)
protected void addKeywords(BMECatImportCronJob cronJob, java.util.Collection keywords)
protected void saveMimeCount(BMECatImportCronJob cronJob)
public static int getMimeCount(BMECatImportCronJob cronJob)
public static void addMimes(BMECatImportCronJob cronJob, java.util.Collection mimes)
protected void saveCategoryCount(BMECatImportCronJob cronJob)
protected void addToCategoryCount(BMECatImportCronJob cronJob, int add)
protected Unit addToUnitMappings(BMECatImportCronJob cronJob, java.lang.String code)
protected Currency addToCurrencyMappings(BMECatImportCronJob cronJob, java.lang.String code)
protected ClassificationSystem addToClassificationMappings(BMECatImportCronJob cronJob, java.lang.String qualifier)
protected void addToCountryMappings(BMECatImportCronJob cronJob, java.util.Collection codes)
protected void importBMECatObject(Catalog catalog, AbstractValueObject object, BMECatImportCronJob cronJob) throws ParseAbortException
importBMECatObject in class BMECatImportStepcatalog - the parsed catalog dataobject - the parsed value objectcronJob - the cronJob which executes the current importParseAbortExceptionprotected void initializeBMECatImport(Catalog catalogValueObject, BMECatImportCronJob cronJob)
initializeBMECatImport in class BMECatImportStepcatalogValueObject - object which holds information about the BMECat catalog tagcronJob - context under which this step isCopyright © 2018 SAP SE. All Rights Reserved.