Interface CloneCategoryRelationshipsService<P extends Category,R extends CloneCategoryRequest>
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
CloneCategoryAssetsService
,CloneCategoryProductRelationshipService
,CloneCategoryTranslationsService
public interface CloneCategoryRelationshipsService<P extends Category,R extends CloneCategoryRequest>
extends org.springframework.core.Ordered
The service that is used to clone the specified
Category
relationships.- Author:
- Chad Harchar (charchar)
-
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 theCategory
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 theCategory
relationships.- Parameters:
request
- the request to perform the clone operationoriginal
- the original category that this is being cloned fromcloned
- theCategory
for which to clone relationships. The cloned relationships will be assigned to this Categorycontext
- 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()
-