@Component(value="blProductDuplicateModifier") public class ProductDuplicateModifier extends AbstractEntityDuplicationHelper<Product>
| Modifier and Type | Field and Description |
|---|---|
protected EntityDuplicatorExtensionManager |
extensionManager |
protected GenericEntityService |
genericEntityService |
protected ProductUrlDuplicatorExtensionManager |
productUrlDuplicatorExtensionManager |
copyHints, env| Constructor and Description |
|---|
ProductDuplicateModifier(org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(MultiTenantCloneable candidate) |
void |
modifyInitialDuplicateState(Product original,
Product copy,
MultiTenantCopyContext context) |
protected void |
setNameAndUrl(Product copy,
MultiTenantCopyContext context) |
addCopyHint, getCopyHints, getCopySuffixprotected EntityDuplicatorExtensionManager extensionManager
protected GenericEntityService genericEntityService
protected ProductUrlDuplicatorExtensionManager productUrlDuplicatorExtensionManager
@Autowired public ProductDuplicateModifier(org.springframework.core.env.Environment environment)
public boolean canHandle(MultiTenantCloneable candidate)
canHandle in interface EntityDuplicationHelper<Product>canHandle in class AbstractEntityDuplicationHelper<Product>public void modifyInitialDuplicateState(Product original, Product copy, MultiTenantCopyContext context) throws CloneNotSupportedException
modifyInitialDuplicateState in interface EntityDuplicationHelper<Product>modifyInitialDuplicateState in class AbstractEntityDuplicationHelper<Product>CloneNotSupportedExceptionprotected void setNameAndUrl(Product copy, MultiTenantCopyContext context)
Copyright © 2021. All rights reserved.