@Deprecated public class GenericCatalogCopyContext extends ItemCopyContext
UNIQUE_PREFIX| Constructor and Description |
|---|
GenericCatalogCopyContext(SyncItemJob job,
SessionContext ctx,
Level logLevel,
boolean forceUpdate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Item |
findExistingCopyToUpdate(ItemCopyCreator parentCreator,
Item original,
boolean asPartOf)
Deprecated.
This method is called every time a new
ItemCopyCreatoris instantiated. |
protected void |
finishedCopying(ItemCopyCreator icc)
Deprecated.
Superclass method overridden to call
setTimestamp(ItemCopyCreator) for each copied item. |
protected void |
getContainedCatalogItems(AttributeDescriptor attributeDescriptor,
ComposedType composedType,
java.util.Set addTo)
Deprecated.
Overwrite to treat more value types as pseudo-partOf.
|
protected java.util.Set |
getContainedCatalogItemTypes(AttributeDescriptor attributeDescriptor)
Deprecated.
|
protected Item |
getCopy(java.lang.Object source)
Deprecated.
Retrieves Items, PKs and Strings from cache and translated them into items again.
|
protected java.util.Map |
getCopyCreatorPresetValues(Item original,
Item copyToupdate)
Deprecated.
|
protected Item |
getCounterpartItem(Item original)
Deprecated.
|
protected SyncItemJob |
getJob()
Deprecated.
|
CatalogVersion |
getSourceVersion()
Deprecated.
|
protected java.util.Set<Language> |
getTargetLanguages()
Deprecated.
|
CatalogVersion |
getTargetVersion()
Deprecated.
|
boolean |
isFromSourceVersion(Item item)
Deprecated.
Determines whether or not an item belongs to this contexts source version.
|
protected boolean |
isPartOf(AttributeDescriptor attributeDescriptor)
Deprecated.
Used by
ItemCopyContext.splitDescriptors(TypeCopyDescriptor, ComposedType)to determine whether an attribute holds partOf
values. |
protected boolean |
isUntranslatable(AttributeCopyCreator acc,
Item original)
Deprecated.
Superclass method overridden to avoid copying catalog items which do not originate from the source
version.
|
protected boolean |
isUpToDate(ItemCopyCreator parentCC,
Item original,
Item copy)
Deprecated.
Tells whether a item pair is up to date and must not be updated right now.
|
protected boolean |
mustBeTranslated(AttributeCopyCreator acc,
Item original)
Deprecated.
Makes sure each catalog items must always be translated.
|
void |
setCategoryOptions(boolean copyProducts,
boolean copySubcategories)
Deprecated.
Sets special options for copying categories:
copyProducts - all products of a explicitly copied category are copied as well
copySubcategories - all sub categories of a explicitly copied category are copied as well
|
protected void |
setTargetLanguages(java.util.Collection<Language> languages)
Deprecated.
|
protected void |
setTimestamp(ItemCopyCreator icc)
Deprecated.
Registers the source item's modification time stamp inside a
ItemSyncTimestamp instance to allow checking
for modifications later. |
protected java.lang.Object |
translate(AttributeCopyCreator acc)
Deprecated.
Filters localized attribute values by available catalog languages.
|
addCopiedItem, addCreationAttribute, allItems, allItems, beforeCopying, checkPendingReferences, cleanup, collectPartOfItemsToCopy, copy, copy, copy, copy, copyMediaData, copyPartOfValues, createAttributeCopyCreator, createCopyDescriptor, debug, error, forceCopy, getCopyCreatorBlacklist, getCopyCreatorWhitelist, getCreationAttributes, getCtx, getMediaTypeCode, getTypeCopyDescriptor, hasCopy, ignoreAttribute, info, isAlreadyCopied, isAtomic, isAtomic, isCurrentlyCopying, isCurrentlyCopying, isDebugEnabled, isErrorEnabled, isInfoEnabled, isRequiredForCreation, isSavePrevousValues, isWarnEnabled, log, popCurrentlyCopying, processPendingReferences, pushCurrentlyCopying, registerCopy, registerPendingReference, safeToString, setSavePrevousValues, splitDescriptors, started, toItem, toItem, toString, transformCacheKey, transformCacheKeys, translateAD, translateValue, translateValue, valuesToString, warnpublic GenericCatalogCopyContext(SyncItemJob job, SessionContext ctx, Level logLevel, boolean forceUpdate)
ctx - protected void setTargetLanguages(java.util.Collection<Language> languages)
protected java.util.Set<Language> getTargetLanguages()
public void setCategoryOptions(boolean copyProducts,
boolean copySubcategories)
public final CatalogVersion getSourceVersion()
public final CatalogVersion getTargetVersion()
protected SyncItemJob getJob()
protected boolean isUpToDate(ItemCopyCreator parentCC, Item original, Item copy)
ItemCopyContextisUpToDate in class ItemCopyContextpublic boolean isFromSourceVersion(Item item) throws JaloInvalidParameterException
item - the item to checkJaloInvalidParameterException - if the item is no catalog itemprotected java.lang.Object translate(AttributeCopyCreator acc)
translate in class ItemCopyContextprotected void finishedCopying(ItemCopyCreator icc)
setTimestamp(ItemCopyCreator) for each copied item.finishedCopying in class ItemCopyContextprotected void setTimestamp(ItemCopyCreator icc)
ItemSyncTimestamp instance to allow checking
for modifications later.icc - the finished copy createdprotected Item findExistingCopyToUpdate(ItemCopyCreator parentCreator, Item original, boolean asPartOf)
ItemCopyContextItemCopyCreatoris instantiated. It allows to find automatically an
existing copy of a given original item. If such one exists the copy process will update it instead of creating a
new one.findExistingCopyToUpdate in class ItemCopyContextItemCopyContext.findExistingCopyToUpdate(ItemCopyCreator,
de.hybris.platform.jalo.Item, boolean)protected boolean mustBeTranslated(AttributeCopyCreator acc, Item original)
mustBeTranslated in class ItemCopyContextItemCopyContext.mustBeTranslated(de.hybris.platform.catalog.jalo.copy.AttributeCopyCreator,
de.hybris.platform.jalo.Item)protected java.util.Map getCopyCreatorPresetValues(Item original, Item copyToupdate)
getCopyCreatorPresetValues in class ItemCopyContextItemCopyContext.getCopyCreatorPresetValues(Item, Item)protected boolean isUntranslatable(AttributeCopyCreator acc, Item original)
isUntranslatable in class ItemCopyContextprotected boolean isPartOf(AttributeDescriptor attributeDescriptor)
ItemCopyContextItemCopyContext.splitDescriptors(TypeCopyDescriptor, ComposedType)to determine whether an attribute holds partOf
values. These values are always copied (created or translated if already existing) when the original item is being
copied.isPartOf in class ItemCopyContextprotected final java.util.Set getContainedCatalogItemTypes(AttributeDescriptor attributeDescriptor)
protected void getContainedCatalogItems(AttributeDescriptor attributeDescriptor, ComposedType composedType, java.util.Set addTo)
protected Item getCopy(java.lang.Object source)
ItemCopyContextgetCopy in class ItemCopyContextsource - the source Item, item PKor PK StringCopyright © 2018 SAP SE. All Rights Reserved.