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 TypeMethodDescriptionboolean
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 theProduct
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
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 theProduct
relationships.- Parameters:
request
- the request to perform the clone operationoriginal
- the original product that this is being cloned fromcloned
- theProduct
for which to clone relationships. The cloned relationships will be assigned to this Productcontext
- 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()
-