Class CategoryToCatalogVersionDropHandler
- java.lang.Object
-
- com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler<CategoryModel,CatalogVersionModel>
-
- com.hybris.backoffice.cockpitng.dnd.handlers.CategoryToCatalogVersionDropHandler
-
- All Implemented Interfaces:
com.hybris.cockpitng.dnd.DropHandler<CategoryModel,CatalogVersionModel>
public class CategoryToCatalogVersionDropHandler extends AbstractReferenceDropHandler<CategoryModel,CatalogVersionModel>
Drop handler responsible for replacing catalog version for categories.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOTIFICATION_KEYstatic java.lang.StringPARENT_OBJECT
-
Constructor Summary
Constructors Constructor Description CategoryToCatalogVersionDropHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRelatedObjectToUpdateToContext(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context)protected CategoryModelassignCategoryToCatalogVersion(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context)protected booleancanHandleDrop(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context)java.util.List<java.lang.String>findSupportedTypes()protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel,java.lang.Object>>handle(java.util.List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, com.hybris.cockpitng.dnd.DragAndDropContext context)protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel,java.lang.Object>>handleAppend(java.util.List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, com.hybris.cockpitng.dnd.DragAndDropContext context)Returns the result of appending of the dragged object to the target.protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel,java.lang.Object>>handleReplace(java.util.List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, com.hybris.cockpitng.dnd.DragAndDropContext context)Returns the result of replacing of the dragged object in the target.-
Methods inherited from class com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler
getDragAndDropConfigurationService, handleDrop, resolveActionType, setDragAndDropConfigurationService
-
-
-
-
Field Detail
-
NOTIFICATION_KEY
public static final java.lang.String NOTIFICATION_KEY
- See Also:
- Constant Field Values
-
PARENT_OBJECT
public static final java.lang.String PARENT_OBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleAppend
protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel,java.lang.Object>> handleAppend(java.util.List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, 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<CategoryModel,CatalogVersionModel>- Parameters:
dragged- dragged objects.catalogVersionModel- target object on which dragged objects are dropped.context- context of drag&drop operation.
-
handleReplace
protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel,java.lang.Object>> handleReplace(java.util.List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, 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<CategoryModel,CatalogVersionModel>- Parameters:
dragged- dragged objects.catalogVersionModel- target object on which dragged objects are dropped.context- context of drag&drop operation.
-
handle
protected java.util.List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel,java.lang.Object>> handle(java.util.List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, com.hybris.cockpitng.dnd.DragAndDropContext context)
-
assignCategoryToCatalogVersion
protected CategoryModel assignCategoryToCatalogVersion(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context)
-
addRelatedObjectToUpdateToContext
protected void addRelatedObjectToUpdateToContext(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context)
-
canHandleDrop
protected boolean canHandleDrop(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context)
-
findSupportedTypes
public java.util.List<java.lang.String> findSupportedTypes()
-
-