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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRelatedObjectToUpdateToContext(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context) protected CategoryModelassignCategoryToCatalogVersion(CategoryModel category, CatalogVersionModel catalogVersion, com.hybris.cockpitng.dnd.DragAndDropContext context) protected List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel, Object>> handle(List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, com.hybris.cockpitng.dnd.DragAndDropContext context) protected List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel, Object>> handleAppend(List<CategoryModel> dragged, CatalogVersionModel catalogVersionModel, com.hybris.cockpitng.dnd.DragAndDropContext context) Returns the result of appending of the dragged object to the target.protected List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel, Object>> handleReplace(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 Details
-
NOTIFICATION_KEY
- See Also:
-
PARENT_OBJECT
- See Also:
-
-
Constructor Details
-
CategoryToCatalogVersionDropHandler
public CategoryToCatalogVersionDropHandler()
-
-
Method Details
-
handleAppend
protected List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel, handleAppendObject>> (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 List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel, handleReplaceObject>> (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 List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CatalogVersionModel, handleObject>> (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) -
findSupportedTypes
-