Class ItemCopyCreator
java.lang.Object
de.hybris.platform.catalog.jalo.synchronization.ItemCopyCreator
- Direct Known Subclasses:
CatalogItemCopyCreator
Manages the copying process of the assigned item.
- Since:
- 3.1-u6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static enum -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedItemCopyCreator(GenericCatalogCopyContext genericCatalogCopyContext, ItemCopyCreator parent, Item source, Item target, Collection<String> blackList, Collection<String> whiteList, Map<String, Object> presetedValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToStoredValues(Map<String, Object> attributes) protected <T> Tcopy()protected Itemcopy(GenericCatalogCopyContext genericCatalogCopyContext) Deprecated.booleanbooleanprotected GenericCatalogCopyContextprotected final ItemCopyCreatorgetEnclosingCreatorFor(Item item) Finds the parent creator which actually copies the given item value.final Set<AttributeCopyCreator>protected final Set<AttributeCopyCreator>protected final Set<AttributeCopyCreator>protected ItemCopyCreatorprotected final Set<AttributeCopyCreator>final Set<AttributeCopyCreator>final Itemfinal Itemfinal ComposedTypeinthashCode()protected final booleanfinal booleanprotected booleanfinal booleanisPartOf()booleanfinal booleanisUpdate()protected voidprotected voidprotected voidprotected final voidreadSourceValues(Item targetItem) Reads all copyable attribute values of the source item which are not blocked by the blacklist or already defined by the preset value map.voidvoidprotected voidprotected voidprotected ItemCopyCreator.ReferenceAttributeResultprotected voidsetReferenceAttributesWaitingOnDelay(Set<AttributeCopyCreator> attributeCopyCreators) toString()
-
Constructor Details
-
ItemCopyCreator
protected ItemCopyCreator(GenericCatalogCopyContext genericCatalogCopyContext, ItemCopyCreator parent, Item source, Item target, Collection<String> blackList, Collection<String> whiteList, Map<String, Object> presetedValues) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-
Method Details
-
copy
protected <T> T copy() -
notifyCallback
protected void notifyCallback() -
getAfterItemCopiedCallback
- Returns:
- the beforeTxCommitCallback
-
setAfterItemCopiedCallback
- Parameters:
callback- the beforeTxCommitCallback to set
-
copy
@Deprecated(since="5.0.1", forRemoval=false) protected Item copy(GenericCatalogCopyContext genericCatalogCopyContext) Deprecated.since 5.0.1 usecopy()instead.- Parameters:
genericCatalogCopyContext-- Returns:
- copied
Item.
-
getStoredValues
-
getModifiedValues
- Returns:
- [ {previousValues}, {storedValues} ]
-
resetStoredValues
public void resetStoredValues() -
addToStoredValues
-
getCopyContext
-
setPartOfReferences
protected void setPartOfReferences() -
setOtherReferences
protected void setOtherReferences() -
setReferenceAttributesWaitingOnDelay
protected void setReferenceAttributesWaitingOnDelay(Set<AttributeCopyCreator> attributeCopyCreators) -
encounteredOptimisticLockException
public boolean encounteredOptimisticLockException() -
getOptimisticLockException
-
isTransactionRolledBack
public boolean isTransactionRolledBack() -
setReferenceAttribute
-
getSourceItem
-
getTargetItem
-
isUpdate
public final boolean isUpdate() -
isPartOf
public final boolean isPartOf() -
getTargetType
-
getParent
-
getEnclosingCreatorFor
Finds the parent creator which actually copies the given item value. This method is used for translating references from partOf items to their enclosing items.- Parameters:
item- the item reference value- Returns:
- the parent copy creator which copies the item, or null no such creator exists
-
readNonInitialAttributes
protected void readNonInitialAttributes() -
readInitialAttributes
protected void readInitialAttributes() -
readSourceValues
Reads all copyable attribute values of the source item which are not blocked by the blacklist or already defined by the preset value map. -
isEmpty
-
hasPartOfItems
protected final boolean hasPartOfItems() -
hasPendingAttributes
public final boolean hasPendingAttributes() -
getPartOfAttributeCreators
-
getInitialAttributeCreators
-
getOtherAttributeCreators
-
getPendingAttributes
-
getFailedAttributes
-
getPendingAttributeQualifiers
-
toString
-
getReport
-
hashCode
public int hashCode() -
equals
-
copy()instead.