Interface CloneProductRelationshipsService<P extends Product,R extends CloneProductRequest>

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
CloneCategoryProductService, CloneProductAssetsService, CloneProductTagsService, CloneProductVariantsService, ClonePromotionalProductService

public interface CloneProductRelationshipsService<P extends Product,R extends CloneProductRequest> extends org.springframework.core.Ordered
The service that is used to clone the specified Product relationships.
Author:
Dima Myroniuk (dmyroniuk)
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(String relationshipType)
    Check if this service can clone specific relationship type.
    void
    executeCloneRelationship(R request, P original, P cloned, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Clone the Product relationships.
    The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Method Details

    • canHandle

      boolean canHandle(String relationshipType)
      Check if this service can clone specific relationship type.
      Parameters:
      relationshipType - the relationship type to clone
      Returns:
      true if this service can clone specific relationship type, false otherwise
    • executeCloneRelationship

      void executeCloneRelationship(R request, P original, P cloned, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Clone the Product relationships.
      Parameters:
      request - the request to perform the clone operation
      original - the original product that this is being cloned from
      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
    • getSubContainerName

      String getSubContainerName()
      The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".
      Returns:
      The name of the sub-container (second-level entity), which is typically snake-cased and capitalized, i.e., "PRICE_DATA"
      See Also:
      • ChangeContainer.getSubContainerName()