public class ItemCopyCreator extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ItemCopyCreator.AfterItemCopiedCallback |
protected static class |
ItemCopyCreator.ReferenceAttributeResult |
| Modifier | Constructor and Description |
|---|---|
protected |
ItemCopyCreator(GenericCatalogCopyContext genericCatalogCopyContext,
ItemCopyCreator parent,
Item source,
Item target,
Collection<String> blackList,
Collection<String> whiteList,
Map<String,Object> presetedValues) |
protected ItemCopyCreator(GenericCatalogCopyContext genericCatalogCopyContext, ItemCopyCreator parent, Item source, Item target, Collection<String> blackList, Collection<String> whiteList, Map<String,Object> presetedValues) throws IllegalArgumentException
IllegalArgumentExceptionprotected <T> T copy()
protected void notifyCallback()
public ItemCopyCreator.AfterItemCopiedCallback getAfterItemCopiedCallback()
public void setAfterItemCopiedCallback(ItemCopyCreator.AfterItemCopiedCallback callback)
callback - the beforeTxCommitCallback to set@Deprecated protected Item copy(GenericCatalogCopyContext genericCatalogCopyContext)
copy() instead.genericCatalogCopyContext - Item.public Map<String,Object>[] getModifiedValues()
public void resetStoredValues()
protected GenericCatalogCopyContext getCopyContext()
protected void setPartOfReferences()
protected void setOtherReferences()
protected void setReferenceAttributesWaitingOnDelay(Set<AttributeCopyCreator> attributeCopyCreators)
public boolean encounteredOptimisticLockException()
public Exception getOptimisticLockException()
public boolean isTransactionRolledBack()
protected ItemCopyCreator.ReferenceAttributeResult setReferenceAttribute(AttributeCopyCreator acc)
public final Item getSourceItem()
public final Item getTargetItem()
public final boolean isUpdate()
public final boolean isPartOf()
public final ComposedType getTargetType()
protected ItemCopyCreator getParent()
protected final ItemCopyCreator getEnclosingCreatorFor(Item item)
item - the item reference valueprotected void readNonInitialAttributes()
protected void readInitialAttributes()
protected final void readSourceValues(Item targetItem)
protected boolean isEmpty(Object translatedValue, boolean localized)
protected final boolean hasPartOfItems()
public final boolean hasPendingAttributes()
protected final Set<AttributeCopyCreator> getPartOfAttributeCreators()
protected final Set<AttributeCopyCreator> getInitialAttributeCreators()
protected final Set<AttributeCopyCreator> getOtherAttributeCreators()
public final Set<AttributeCopyCreator> getPendingAttributes()
public final Set<AttributeCopyCreator> getFailedAttributes()
public String getReport()
Copyright © 2017 SAP SE. All Rights Reserved.