Interface CloneContentItemService<P extends ContentItem,R extends CloneContentItemRequest>

All Known Implementing Classes:
DefaultCloneContentItemService

public interface CloneContentItemService<P extends ContentItem,R extends CloneContentItemRequest>
The service that is used to clone the ContentItem.
Author:
Susana Cruz (susanaccruz)
  • Method Details

    • cloneContentItem

      P cloneContentItem(R request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)

      Clone the product with an id CloneContentItemRequest.getContentItemId(). This will also clone the ContentItem relationships which are specified in CloneContentItemRequest.getCloneRelationships().

      Parameters:
      request - the request to perform the clone operation
      context - context information surrounding sandboxing and multitenant state
      Returns:
      the cloned ContentItem
    • bulkCloneContentItems

      List<P> bulkCloneContentItems(List<R> requests, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)