Interface EntityDuplicationHelper<T>
- All Known Implementing Classes:
AbstractEntityDuplicationHelper
,OfferDuplicateModifier
,ProductDuplicateModifier
public interface EntityDuplicationHelper<T>
Provides additional metadata and performs final modifications for an entity before persistence.
In order to perform duplication using EntityDuplicator
, an
EntityDuplicationHelper
must be made for a specific entity.
- Author:
- Nathan Moore (nathanmoore).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCopyHint
(String name, String hint) boolean
canHandle
(MultiTenantCloneable candidate) void
modifyInitialDuplicateState
(T original, T copy, MultiTenantCopyContext context)
-
Method Details
-
canHandle
-
getCopyHints
- Returns:
- Hints used to fine tune copying - generally support for hints is included in
MultiTenantCloneable.createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext)
implementations.
-
addCopyHint
-
modifyInitialDuplicateState
void modifyInitialDuplicateState(T original, T copy, MultiTenantCopyContext context) throws CloneNotSupportedException - Throws:
CloneNotSupportedException
-