Class GenericCatalogCopyContextTest.TestGenericCatalogCopyContext
java.lang.Object
de.hybris.platform.catalog.jalo.synchronization.AbstractItemCopyContext
de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext
de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContextTest.TestGenericCatalogCopyContext
- Enclosing class:
- GenericCatalogCopyContextTest
public class GenericCatalogCopyContextTest.TestGenericCatalogCopyContext
extends GenericCatalogCopyContext
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext
GenericCatalogCopyContext.AbstractParentResolver, GenericCatalogCopyContext.ReferenceParentResolver -
Field Summary
Fields inherited from class de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext
LEGACY_MODE_FLAG, PARTIAL_COLLECTION_TRANSLATION_ALLOWEDFields inherited from class de.hybris.platform.catalog.jalo.synchronization.AbstractItemCopyContext
ctx -
Constructor Summary
ConstructorsConstructorDescriptionTestGenericCatalogCopyContext(SessionContext ctx, CatalogVersionSyncJob job, CatalogVersionSyncCronJob cronJob, org.apache.log4j.Level logLevel, boolean forceUpdate) -
Method Summary
Modifier and TypeMethodDescriptionprotected JaloSessionprotected Set<AttributeDescriptor>Makes sure the following attribute are set during item creation although they are item references (normally item references are translated and set after creating the copy):GeneratedCatalogConstants.Attributes.Product.CATALOGVERSIONCatalogConstants.Attributes.Category.CATALOGVERSIONGeneratedCatalogConstants.Attributes.Media.CATALOGVERSIONGeneratedKeyword.CATALOGVERSIONGeneratedCatalogConstants.Attributes.Product.VARIANTTYPEGeneratedVariantProduct.BASEPRODUCTGeneratedProduct.UNITprotected intprotected StringgetRootCatalogType(ComposedType composedType) protected SynchronizationPersistenceAdapterprotected voidsetTargetLanguages(Collection<Language> languages) Methods inherited from class de.hybris.platform.catalog.jalo.synchronization.GenericCatalogCopyContext
addCreationAttribute, afterCopying, afterCreate, beforeCopying, canBeTranslatedPartially, cleanup, collectPartOfItemsToCopy, computeDependentItemResolvers, computeIsCopyOnDemand, computeParentResolvers, copy, copy, copy, copy, copyMediaData, copyPartOfValues, createAttributeCopyCreator, createCreator, createSyncTimestamp, finishedCopying, forceCopy, getCatalogKeyAttributesCache, getCatalogVersion, getCatalogVersionAttribute, getCatalogVersionAttributeCache, getContainedCatalogItemTypes, getCopiedItemCache, getCopy, getCopyCacheHits, getCopyCacheMisses, getCopyCacheSize, getCopyCreatorBlacklist, getCopyCreatorPresetValues, getCopyCreatorWhitelist, getCopyOnDemandCache, getCounterpartItem, getCronjob, getCurrentlyCopying, getDependentItemResolverCache, getDependentItemTypes, getIsCatalogTypeCache, getJob, getNonCatalogItemUniqueAttributes, getNonCatalogKeyAttributesCache, getRootCatalogTypeCache, getRootUniqueItemType, getSourceVersion, getTargetLanguages, getTargetVersion, getTargetVersionForQueryCatalogItemCopy, getUniqueKeyAttributes, handleStale, isCatalogItem, isCatalogItemType, isCopyOnDemand, isCopyOnDemandCatalogItemType, isCurrentlyCopying, isDependentFromSourceVersion, isExclusiveMode, isForceUpdate, isFromSourceVersion, isPartialCollectionTranslationEnabledGlobally, isRequiredForCreation, isSavePrevousValues, isStarted, isUntranslatablePartOfItem, isUntranslatableProductFeature, logSavedValues, mayBeCatalogItemDependent, mayBeCatalogItemDependent, mustBeTranslated, mustBeTranslated, popCurrentlyCopying, processQueryResult, pushCurrentlyCopying, queryCatalogItemCopy, queryCopy, queryExistingSyncTimestamp, queryNonCatalogItemCopy, registerCopy, setCategoryOptions, setCopyCacheHits, setCopyCacheMisses, setCopyCacheSize, setSavePrevousValues, setTimestamp, translate, translateAD, translateItemValue, translateValue, updateSyncTimestampMethods inherited from class de.hybris.platform.catalog.jalo.synchronization.AbstractItemCopyContext
allItems, createCopyDescriptor, debug, debug, error, error, getCatalogManager, getCtx, getFlexibleSearch, getSession, getTypeCopyDescriptor, ignoreAttribute, info, info, isAtomic, isAtomic, isDebugEnabled, isErrorEnabled, isInfoEnabled, isPartOf, isWarnEnabled, log, log, safeToString, splitDescriptors, toItem, toItems, toString, valuesToString, warn, warn
-
Constructor Details
-
TestGenericCatalogCopyContext
public TestGenericCatalogCopyContext(SessionContext ctx, CatalogVersionSyncJob job, CatalogVersionSyncCronJob cronJob, org.apache.log4j.Level logLevel, boolean forceUpdate)
-
-
Method Details
-
getCurrentTurn
protected int getCurrentTurn()- Specified by:
getCurrentTurnin classGenericCatalogCopyContext
-
createSession
- Overrides:
createSessionin classAbstractItemCopyContext- Returns:
- current JaloSession
-
getCreationAttributes
Description copied from class:GenericCatalogCopyContextMakes sure the following attribute are set during item creation although they are item references (normally item references are translated and set after creating the copy):GeneratedCatalogConstants.Attributes.Product.CATALOGVERSIONCatalogConstants.Attributes.Category.CATALOGVERSIONGeneratedCatalogConstants.Attributes.Media.CATALOGVERSIONGeneratedKeyword.CATALOGVERSIONGeneratedCatalogConstants.Attributes.Product.VARIANTTYPEGeneratedVariantProduct.BASEPRODUCTGeneratedProduct.UNIT
- Overrides:
getCreationAttributesin classGenericCatalogCopyContext
-
setTargetLanguages
- Overrides:
setTargetLanguagesin classGenericCatalogCopyContext
-
getRootCatalogType
- Overrides:
getRootCatalogTypein classGenericCatalogCopyContext
-
initPersistenceAdapter
- Overrides:
initPersistenceAdapterin classGenericCatalogCopyContext
-