Class DefaultCloneProductRelationshipsManager<P extends Product,R extends CloneProductRequest>
java.lang.Object
com.broadleafcommerce.catalog.clone.product.DefaultCloneProductRelationshipsManager<P,R>
- All Implemented Interfaces:
CloneProductRelationshipsManager<P,R>
public class DefaultCloneProductRelationshipsManager<P extends Product,R extends CloneProductRequest>
extends Object
implements CloneProductRelationshipsManager<P,R>
Default implementation for
CloneProductRelationshipsManager.- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCloneProductRelationshipsManager(List<CloneProductRelationshipsService<P, R>> cloneProductRelationshipsServices) -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneRelationships(R request, P original, P cloned, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Clone theProductrelationships.protected List<CloneProductRelationshipsService<P,R>> protected voidinitializeChangeContainerIfNecessary(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Product cloned)
-
Constructor Details
-
DefaultCloneProductRelationshipsManager
public DefaultCloneProductRelationshipsManager(List<CloneProductRelationshipsService<P, R>> cloneProductRelationshipsServices)
-
-
Method Details
-
cloneRelationships
public void cloneRelationships(R request, P original, P cloned, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:CloneProductRelationshipsManagerClone theProductrelationships.- Specified by:
cloneRelationshipsin interfaceCloneProductRelationshipsManager<P extends Product,R extends CloneProductRequest> - Parameters:
request- the request to perform the clone operationoriginal- the originalProductcloned- theProductfor which to clone relationships. The cloned relationships will be assigned to this Product.context- context information surrounding sandboxing and multitenant state
-
initializeChangeContainerIfNecessary
protected void initializeChangeContainerIfNecessary(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Product cloned) -
getCloneProductRelationshipsServices
-