Class ProductToCategoryDropHandler
java.lang.Object
com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler<ProductModel,CategoryModel>
com.hybris.backoffice.cockpitng.dnd.handlers.ProductToCategoryDropHandler
- All Implemented Interfaces:
com.hybris.cockpitng.dnd.DropHandler<ProductModel,CategoryModel>
public class ProductToCategoryDropHandler
extends AbstractReferenceDropHandler<ProductModel,CategoryModel>
Drop handler responsible for appending/replacing supercategories for product.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProductModelcopyProductToCategory(ProductModel product, CategoryModel category, com.hybris.cockpitng.dnd.DragAndDropContext context) protected List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel, Object>> handleAppend(List<ProductModel> dragged, CategoryModel targetCategory, com.hybris.cockpitng.dnd.DragAndDropContext context) Returns the result of appending of the dragged object to the target.protected voidhandleMoveProductToCategory(ProductModel product, CategoryModel category, CategoryModel selectedCategory) protected List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel, Object>> handleReplace(List<ProductModel> dragged, CategoryModel targetCategory, com.hybris.cockpitng.dnd.DragAndDropContext context) Returns the result of replacing of the dragged object in the target.protected ProductModelmoveProductToCategory(ProductModel product, CategoryModel category, com.hybris.cockpitng.dnd.DragAndDropContext context) Methods inherited from class com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler
getDragAndDropConfigurationService, handleDrop, resolveActionType, setDragAndDropConfigurationService
-
Field Details
-
LOG
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, do not use in subclasses -
APPEND_NOTIFICATION_KEY
- See Also:
-
REPLACE_NOTIFICATION_KEY
- See Also:
-
-
Constructor Details
-
ProductToCategoryDropHandler
public ProductToCategoryDropHandler()
-
-
Method Details
-
handleAppend
protected List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel, handleAppendObject>> (List<ProductModel> dragged, CategoryModel targetCategory, com.hybris.cockpitng.dnd.DragAndDropContext context) Description copied from class:AbstractReferenceDropHandlerReturns the result of appending of the dragged object to the target.- Specified by:
handleAppendin classAbstractReferenceDropHandler<ProductModel,CategoryModel> - Parameters:
dragged- dragged objects.targetCategory- target object on which dragged objects are dropped.context- context of drag&drop operation.
-
handleReplace
protected List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel, handleReplaceObject>> (List<ProductModel> dragged, CategoryModel targetCategory, com.hybris.cockpitng.dnd.DragAndDropContext context) Description copied from class:AbstractReferenceDropHandlerReturns the result of replacing of the dragged object in the target.- Specified by:
handleReplacein classAbstractReferenceDropHandler<ProductModel,CategoryModel> - Parameters:
dragged- dragged objects.targetCategory- target object on which dragged objects are dropped.context- context of drag&drop operation.
-
copyProductToCategory
protected ProductModel copyProductToCategory(ProductModel product, CategoryModel category, com.hybris.cockpitng.dnd.DragAndDropContext context) -
moveProductToCategory
protected ProductModel moveProductToCategory(ProductModel product, CategoryModel category, com.hybris.cockpitng.dnd.DragAndDropContext context) -
handleMoveProductToCategory
protected void handleMoveProductToCategory(ProductModel product, CategoryModel category, CategoryModel selectedCategory) -
findSupportedTypes
-