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 JaloSessioncreateSession()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.CATALOGVERSIONCatalogConstants.Attributes.Category.CATALOGVERSIONGeneratedCatalogConstants.Attributes.Media.CATALOGVERSIONGeneratedKeyword.CATALOGVERSIONGeneratedCatalogConstants.Attributes.Product.VARIANTTYPEGeneratedVariantProduct.BASEPRODUCTGeneratedProduct.UNITprotected intgetCurrentTurn()protected java.lang.StringgetRootCatalogType(ComposedType composedType)protected SynchronizationPersistenceAdapterinitPersistenceAdapter()protected voidsetTargetLanguages(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:
getCurrentTurnin classGenericCatalogCopyContext
-
createSession
protected JaloSession createSession()
- Overrides:
createSessionin classAbstractItemCopyContext- Returns:
- current JaloSession
-
getCreationAttributes
protected java.util.Set<AttributeDescriptor> 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
protected void setTargetLanguages(java.util.Collection<Language> languages)
- Overrides:
setTargetLanguagesin classGenericCatalogCopyContext
-
getRootCatalogType
protected java.lang.String getRootCatalogType(ComposedType composedType)
- Overrides:
getRootCatalogTypein classGenericCatalogCopyContext
-
initPersistenceAdapter
protected SynchronizationPersistenceAdapter initPersistenceAdapter()
- Overrides:
initPersistenceAdapterin classGenericCatalogCopyContext
-
-