Interface CloneCategoryService<P extends Category,R extends CloneCategoryRequest>
- All Known Implementing Classes:
DefaultCloneCategoryService
public interface CloneCategoryService<P extends Category,R extends CloneCategoryRequest>
The service that is used to clone the
Category
.- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptioncloneCategory
(R request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Clone the category with an idCloneCategoryRequest.getCategoryId()
.
-
Method Details
-
cloneCategory
P cloneCategory(R request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Clone the category with an id
CloneCategoryRequest.getCategoryId()
. This will also clone theCategory
relationshipsDefaultRelationshipType
which are specified inCloneCategoryRequest.getCloneRelationships()
.Additional relationships can be cloned via the P@link
CloneCategoryRelationshipsService
}- Parameters:
request
- the request to perform the clone operationcontext
- context information surrounding sandboxing and multitenant state- Returns:
- the cloned
Category
-