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 Details

  • 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: CloneProductRelationshipsManager
      Clone the Product relationships.
      Specified by:
      cloneRelationships in interface CloneProductRelationshipsManager<P extends Product,R extends CloneProductRequest>
      Parameters:
      request - the request to perform the clone operation
      original - the original Product
      cloned - the Product for 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

      protected List<CloneProductRelationshipsService<P,R>> getCloneProductRelationshipsServices()