Class CloneProductAssetsService<P extends Product,R extends CloneProductRequest>
java.lang.Object
com.broadleafcommerce.catalog.clone.product.service.CloneProductAssetsService<P,R>
- All Implemented Interfaces:
CloneProductRelationshipsService<P,,R> org.springframework.core.Ordered
public class CloneProductAssetsService<P extends Product,R extends CloneProductRequest>
extends Object
implements CloneProductRelationshipsService<P,R>
Clone the
ProductAsset.- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCloneProductAssetsService(ProductAssetService<ProductAsset> productAssetService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this service can clone specific relationship type.voidexecuteCloneRelationship(R request, P original, P cloned, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Clone theProductrelationships.intgetOrder()protected ProductAssetService<ProductAsset>The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".
-
Constructor Details
-
CloneProductAssetsService
-
-
Method Details
-
canHandle
Description copied from interface:CloneProductRelationshipsServiceCheck if this service can clone specific relationship type.- Specified by:
canHandlein interfaceCloneProductRelationshipsService<P extends Product,R extends CloneProductRequest> - Parameters:
relationshipType- the relationship type to clone- Returns:
- true if this service can clone specific relationship type, false otherwise
-
executeCloneRelationship
public void executeCloneRelationship(R request, P original, P cloned, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:CloneProductRelationshipsServiceClone theProductrelationships.- Specified by:
executeCloneRelationshipin interfaceCloneProductRelationshipsService<P extends Product,R extends CloneProductRequest> - Parameters:
request- the request to perform the clone operationoriginal- the original product that this is being cloned fromcloned- theProductfor which to clone relationships. The cloned relationships will be assigned to this Productcontext- context information surrounding sandboxing and multitenant state
-
getSubContainerName
Description copied from interface:CloneProductRelationshipsServiceThe name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".- Specified by:
getSubContainerNamein interfaceCloneProductRelationshipsService<P extends Product,R extends CloneProductRequest> - 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()
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
getProductAssetService
-