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_ALLOWED
-
Fields inherited from class de.hybris.platform.catalog.jalo.synchronization.AbstractItemCopyContext
ctx
-
-
Constructor Summary
Constructors Constructor Description TestGenericCatalogCopyContext(SessionContext ctx, CatalogVersionSyncJob job, CatalogVersionSyncCronJob cronJob, org.apache.log4j.Level logLevel, boolean forceUpdate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaloSession
createSession()
protected java.util.Set<AttributeDescriptor>
getCreationAttributes()
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.CATALOGVERSION
CatalogConstants.Attributes.Category.CATALOGVERSION
GeneratedCatalogConstants.Attributes.Media.CATALOGVERSION
GeneratedKeyword.CATALOGVERSION
GeneratedCatalogConstants.Attributes.Product.VARIANTTYPE
GeneratedVariantProduct.BASEPRODUCT
GeneratedProduct.UNIT
protected int
getCurrentTurn()
protected java.lang.String
getRootCatalogType(ComposedType composedType)
protected SynchronizationPersistenceAdapter
initPersistenceAdapter()
protected void
setTargetLanguages(java.util.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, 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, updateSyncTimestamp
-
Methods 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 Detail
-
TestGenericCatalogCopyContext
public TestGenericCatalogCopyContext(SessionContext ctx, CatalogVersionSyncJob job, CatalogVersionSyncCronJob cronJob, org.apache.log4j.Level logLevel, boolean forceUpdate)
-
-
Method Detail
-
getCurrentTurn
protected int getCurrentTurn()
- Specified by:
getCurrentTurn
in classGenericCatalogCopyContext
-
createSession
protected JaloSession createSession()
- Overrides:
createSession
in classAbstractItemCopyContext
- Returns:
- current JaloSession
-
getCreationAttributes
protected java.util.Set<AttributeDescriptor> getCreationAttributes()
Description copied from class:GenericCatalogCopyContext
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.CATALOGVERSION
CatalogConstants.Attributes.Category.CATALOGVERSION
GeneratedCatalogConstants.Attributes.Media.CATALOGVERSION
GeneratedKeyword.CATALOGVERSION
GeneratedCatalogConstants.Attributes.Product.VARIANTTYPE
GeneratedVariantProduct.BASEPRODUCT
GeneratedProduct.UNIT
- Overrides:
getCreationAttributes
in classGenericCatalogCopyContext
-
setTargetLanguages
protected void setTargetLanguages(java.util.Collection<Language> languages)
- Overrides:
setTargetLanguages
in classGenericCatalogCopyContext
-
getRootCatalogType
protected java.lang.String getRootCatalogType(ComposedType composedType)
- Overrides:
getRootCatalogType
in classGenericCatalogCopyContext
-
initPersistenceAdapter
protected SynchronizationPersistenceAdapter initPersistenceAdapter()
- Overrides:
initPersistenceAdapter
in classGenericCatalogCopyContext
-
-