Class CloneCategoryAssetsService<P extends Category,R extends CloneCategoryRequest>
java.lang.Object
com.broadleafcommerce.catalog.clone.category.service.CloneCategoryAssetsService<P,R>
- All Implemented Interfaces:
CloneCategoryRelationshipsService<P,
,R> org.springframework.core.Ordered
public class CloneCategoryAssetsService<P extends Category,R extends CloneCategoryRequest>
extends Object
implements CloneCategoryRelationshipsService<P,R>
Clone the
CategoryAsset
.- Author:
- Chad Harchar (charchar)
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionCloneCategoryAssetsService
(CategoryAssetService<CategoryAsset> categoryAssetService) -
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.protected CategoryAssetService<CategoryAsset>
int
getOrder()
The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".
-
Constructor Details
-
CloneCategoryAssetsService
-
-
Method Details
-
canHandle
Description copied from interface:CloneCategoryRelationshipsService
Check if this service can clone specific relationship type.- Specified by:
canHandle
in interfaceCloneCategoryRelationshipsService<P extends Category,
R extends CloneCategoryRequest> - Parameters:
relationshipType
- the relationship type to clone- Returns:
- true if this service can clone specific relationship type, false otherwise
-
executeCloneRelationship
public void executeCloneRelationship(@NonNull R request, @NonNull P original, @NonNull P cloned, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:CloneCategoryRelationshipsService
Clone theCategory
relationships.- Specified by:
executeCloneRelationship
in interfaceCloneCategoryRelationshipsService<P extends Category,
R extends CloneCategoryRequest> - 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
Description copied from interface:CloneCategoryRelationshipsService
The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".- Specified by:
getSubContainerName
in interfaceCloneCategoryRelationshipsService<P extends Category,
R extends CloneCategoryRequest> - 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:
getOrder
in interfaceorg.springframework.core.Ordered
-
getCategoryAssetService
-