public class SyncItemJob.SyncItemCopyContext extends GenericCatalogCopyContext
UNIQUE_PREFIX| Constructor and Description |
|---|
SyncItemCopyContext(SyncItemCronJob cronjob,
SyncItemJob job,
CatalogVersion srcV,
CatalogVersion tgtV,
Map<PK,PK> finishedSynchronizedItems) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishedCopying(ItemCopyCreator icc)
Superclass method overridden to register a copied item permanently via
SyncItemJob.registerSynchronizedItem(SyncItemCronJob, Item, Item, String). |
protected SyncItemJob.SyncAttributeDescriptorConfigData |
getAttributeConfig(AttributeDescriptor attributeDescriptor) |
protected SyncItemJob.SyncAttributeDescriptorConfigData |
getAttributeConfig(ComposedType type,
AttributeDescriptor attributeDescriptor) |
protected Set<String> |
getCopyCreatorWhitelist(Item original,
Item toUpdate)
Builds a white list based upon the SyncItemJob.attributeDescriptors set.
|
protected SyncItemCronJob |
getCronjob()
Redirecting logs to cronjob log mechanism
|
boolean |
isDebugEnabled()
Redirecting logs to cronjob log mechanism
|
boolean |
isErrorEnabled()
Redirecting logs to cronjob log mechanism
|
boolean |
isInfoEnabled()
Redirecting logs to cronjob log mechanism
|
protected boolean |
isPartOf(AttributeDescriptor attributeDescriptor)
Overwritten to optionally treat any attribute as partOf if configured so in
SyncAttributeDescriptorConfig. |
protected boolean |
isUntranslatable(AttributeCopyCreator acc,
Item original)
Overwritten to switch off translation if configured so in
SyncAttributeDescriptorConfig. |
boolean |
isWarnEnabled()
Redirecting logs to cronjob log mechanism
|
protected void |
log(String message,
Level level)
Redirecting logs to cronjob log mechanism
|
findExistingCopyToUpdate, getContainedCatalogItems, getContainedCatalogItemTypes, getCopy, getCopyCreatorPresetValues, getCounterpartItem, getJob, getSourceVersion, getTargetLanguages, getTargetVersion, isFromSourceVersion, isUpToDate, mustBeTranslated, setCategoryOptions, setTargetLanguages, setTimestamp, translateaddCopiedItem, addCreationAttribute, allItems, allItems, beforeCopying, checkPendingReferences, cleanup, collectPartOfItemsToCopy, copy, copy, copy, copy, copyMediaData, copyPartOfValues, createAttributeCopyCreator, createCopyDescriptor, debug, error, forceCopy, getCopyCreatorBlacklist, getCreationAttributes, getCtx, getMediaTypeCode, getTypeCopyDescriptor, hasCopy, ignoreAttribute, info, isAlreadyCopied, isAtomic, isAtomic, isCurrentlyCopying, isCurrentlyCopying, isRequiredForCreation, isSavePrevousValues, popCurrentlyCopying, processPendingReferences, pushCurrentlyCopying, registerCopy, registerPendingReference, safeToString, setSavePrevousValues, splitDescriptors, started, toItem, toItem, toString, transformCacheKey, transformCacheKeys, translateAD, translateValue, translateValue, valuesToString, warnpublic SyncItemCopyContext(SyncItemCronJob cronjob, SyncItemJob job, CatalogVersion srcV, CatalogVersion tgtV, Map<PK,PK> finishedSynchronizedItems)
protected Set<String> getCopyCreatorWhitelist(Item original, Item toUpdate)
This applies to catalog items only. Any other item which is copied as partOf value is copied completely.
getCopyCreatorWhitelist in class ItemCopyContextprotected boolean isUntranslatable(AttributeCopyCreator acc, Item original)
SyncAttributeDescriptorConfig.isUntranslatable in class GenericCatalogCopyContextprotected boolean isPartOf(AttributeDescriptor attributeDescriptor)
SyncAttributeDescriptorConfig.isPartOf in class GenericCatalogCopyContextprotected SyncItemJob.SyncAttributeDescriptorConfigData getAttributeConfig(AttributeDescriptor attributeDescriptor)
protected SyncItemJob.SyncAttributeDescriptorConfigData getAttributeConfig(ComposedType type, AttributeDescriptor attributeDescriptor)
protected void log(String message, Level level)
log in class ItemCopyContextpublic boolean isDebugEnabled()
isDebugEnabled in class ItemCopyContextpublic boolean isInfoEnabled()
isInfoEnabled in class ItemCopyContextpublic boolean isWarnEnabled()
isWarnEnabled in class ItemCopyContextpublic boolean isErrorEnabled()
isErrorEnabled in class ItemCopyContextprotected SyncItemCronJob getCronjob()
protected void finishedCopying(ItemCopyCreator icc)
SyncItemJob.registerSynchronizedItem(SyncItemCronJob, Item, Item, String).finishedCopying in class GenericCatalogCopyContextCopyright © 2017 SAP SE. All Rights Reserved.