public abstract class AbstractEntityDuplicationHelper<T> extends Object implements EntityDuplicationHelper<T>
getCopyHints() and addCopyHint(String, String), 
 using a HashMap as the underlying data structure for storing the hints. Also provides a
 helper method getCopySuffix() for the usual use-case of changing the name of the 
 duplicated entity.| Modifier and Type | Field and Description | 
|---|---|
| protected Map<String,String> | copyHints | 
| protected org.springframework.core.env.Environment | env | 
| Constructor and Description | 
|---|
| AbstractEntityDuplicationHelper(org.springframework.core.env.Environment environment) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCopyHint(String name,
           String hint) | 
| abstract boolean | canHandle(MultiTenantCloneable candidate) | 
| Map<String,String> | getCopyHints() | 
| protected String | getCopySuffix()Defaults to " - Copy" but can be overridden using 
  admin.entity.duplication.suffix.default. | 
| abstract void | modifyInitialDuplicateState(T copy) | 
public AbstractEntityDuplicationHelper(org.springframework.core.env.Environment environment)
protected String getCopySuffix()
admin.entity.duplication.suffix.default.public abstract boolean canHandle(MultiTenantCloneable candidate)
canHandle in interface EntityDuplicationHelper<T>public Map<String,String> getCopyHints()
getCopyHints in interface EntityDuplicationHelper<T>MultiTenantCloneable.createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext) implementations.public void addCopyHint(String name, String hint)
addCopyHint in interface EntityDuplicationHelper<T>public abstract void modifyInitialDuplicateState(T copy)
modifyInitialDuplicateState in interface EntityDuplicationHelper<T>Copyright © 2020. All rights reserved.