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 Modifier and Type Field Description static java.lang.StringAPPEND_NOTIFICATION_KEYstatic org.slf4j.LoggerLOGDeprecated.since 1905, do not use in subclassesstatic java.lang.StringREPLACE_NOTIFICATION_KEY
-
Constructor Summary
Constructors Constructor Description ProductToCategoryDropHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ProductModelcopyProductToCategory(ProductModel product, CategoryModel category, com.hybris.cockpitng.dnd.DragAndDropContext context)java.util.List<java.lang.String>findSupportedTypes()protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel,java.lang.Object>>handleAppend(java.util.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 java.util.List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel,java.lang.Object>>handleReplace(java.util.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 Detail
-
LOG
@Deprecated public static final org.slf4j.Logger LOG
Deprecated.since 1905, do not use in subclasses
-
APPEND_NOTIFICATION_KEY
public static final java.lang.String APPEND_NOTIFICATION_KEY
- See Also:
- Constant Field Values
-
REPLACE_NOTIFICATION_KEY
public static final java.lang.String REPLACE_NOTIFICATION_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleAppend
protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel,java.lang.Object>> handleAppend(java.util.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 java.util.List<com.hybris.cockpitng.dnd.DropOperationData<ProductModel,CategoryModel,java.lang.Object>> handleReplace(java.util.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
public java.util.List<java.lang.String> findSupportedTypes()
-
-