public class BMECatCategoryStep extends GeneratedBMECatCategoryStep
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 EnumerationValue |
CATALOGVERSION |
protected static EnumerationValue |
DESCRIPTION |
protected static EnumerationValue |
ID |
protected static EnumerationValue |
KEYWORDS |
protected static EnumerationValue |
NAME |
protected static EnumerationValue |
ORDER |
protected static EnumerationValue |
PARENT |
CATEGORYATTRIBUTEMAPPING, CATEGORYTYPE, 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 |
|---|
BMECatCategoryStep() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canUndo(CronJob forSchedule)
Returns
true, if this Step is undoable for the specified CronJob. |
protected Category |
createCatalogCategory(Item.ItemAttributeMap values) |
protected Map |
createDefaultMapping(ComposedType targetType)
Creates and returns the default category attribute mapping.
|
protected void |
finalizeStep(CronJob cronJob)
Methods gives step the possibility to act before the step is finished.
|
protected Category |
getCatalogCategory(BMECatImportCronJob cronJob,
String code) |
int |
getCompletedCount(BMECatImportCronJob cronJob) |
int |
getTotalToComplete(BMECatImportCronJob cronJob) |
protected Item.ItemAttributeMap |
getValues(BMECatImportCronJob cronJob,
CatalogStructure csValueObject) |
protected void |
importBMECatObject(Catalog catalogValueObject,
AbstractValueObject obj,
BMECatImportCronJob cronJob)
Called once for each parsed BMECat value object except the
Catalog
itself, which is passed to
BMECatImportStep.initializeBMECatImport(de.hybris.platform.bmecat.parser.Catalog, BMECatImportCronJob)instead. |
protected void |
initializeBMECatImport(Catalog catalog,
BMECatImportCronJob cronJob)
Called once per step to pass information about the importing catalog before all object will be processed
|
protected void |
performStep(CronJob forSchedule)
Performs
BMECatImportCronJob by creating a BMECat 1.2 Sax parser around the
media data attached to the cronJob. |
void |
setNonInitialAttributes(SessionContext ctx,
Item item,
Item.ItemAttributeMap nonInitialAttributes)
Implements default setting of category type and the attribute mapping if these attributes are not specified during
step creation.
|
protected void |
undoStep(CronJob forSchedule)
Removes all created categories.
|
void |
updateCatalogCategory(BMECatImportCronJob cronJob,
Category category,
CatalogStructure csValueObject) |
void |
updateCatalogVersion(BMECatImportCronJob cronJob,
CatalogGroupSystem cgsValueObject) |
getAllCategoryAttributeMapping, getAllCategoryAttributeMapping, getCategoryType, getCategoryType, getDefaultAttributeModes, setAllCategoryAttributeMapping, setAllCategoryAttributeMapping, setCategoryType, setCategoryTypecanPerform, createKeyword, createProcessor, customizeImport, 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, 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 EnumerationValue ID
protected static EnumerationValue ORDER
protected static EnumerationValue PARENT
protected static EnumerationValue DESCRIPTION
protected static EnumerationValue KEYWORDS
protected static EnumerationValue NAME
protected static EnumerationValue CATALOGVERSION
public void setNonInitialAttributes(SessionContext ctx, Item item, Item.ItemAttributeMap nonInitialAttributes) throws JaloBusinessException
setNonInitialAttributes in class Stepctx - item - nonInitialAttributes - JaloBusinessExceptionprotected void initializeBMECatImport(Catalog catalog, BMECatImportCronJob cronJob)
BMECatImportStepinitializeBMECatImport in class BMECatImportStepcatalog - object which holds information about the BMECat catalog tagcronJob - context under which this step isBMECatImportStep.initializeBMECatImport(Catalog, BMECatImportCronJob)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.performStep(de.hybris.platform.cronjob.jalo.CronJob)protected void importBMECatObject(Catalog catalogValueObject, AbstractValueObject obj, BMECatImportCronJob cronJob) throws ParseAbortException
BMECatImportStepCatalog
itself, which is passed to
BMECatImportStep.initializeBMECatImport(de.hybris.platform.bmecat.parser.Catalog, BMECatImportCronJob)instead.importBMECatObject in class BMECatImportStepcatalogValueObject - the parsed catalog dataobj - the parsed value objectcronJob - the cronJob which executes the current importParseAbortExceptionBMECatImportStep.importBMECatObject(Catalog, AbstractValueObject,
BMECatImportCronJob)public int getCompletedCount(BMECatImportCronJob cronJob)
getCompletedCount in class BMECatImportSteppublic int getTotalToComplete(BMECatImportCronJob cronJob)
getTotalToComplete in class BMECatImportStepprotected 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 - Step.canUndo(de.hybris.platform.cronjob.jalo.CronJob)protected void undoStep(CronJob forSchedule)
undoStep in class BMECatImportStepforSchedule - the current running cronJobStep.undoStep(de.hybris.platform.cronjob.jalo.CronJob)public void updateCatalogVersion(BMECatImportCronJob cronJob, CatalogGroupSystem cgsValueObject)
public void updateCatalogCategory(BMECatImportCronJob cronJob, Category category, CatalogStructure csValueObject)
protected Category createCatalogCategory(Item.ItemAttributeMap values)
protected Category getCatalogCategory(BMECatImportCronJob cronJob, String code)
protected Item.ItemAttributeMap getValues(BMECatImportCronJob cronJob, CatalogStructure csValueObject)
protected Map createDefaultMapping(ComposedType targetType)
CategoryAttributeEnum-EnumerationType. Values are AttributeDescriptors of the specified
targetType.targetType - the composed type which should be used for the category importprotected void finalizeStep(CronJob cronJob)
BMECatImportStepfinalizeStep in class BMECatImportStepCopyright © 2017 SAP SE. All Rights Reserved.