Class CategoryToCategoryDropHandler
java.lang.Object
com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler<CategoryModel,CategoryModel>
com.hybris.backoffice.cockpitng.dnd.handlers.CategoryToCategoryDropHandler
- All Implemented Interfaces:
com.hybris.cockpitng.dnd.DropHandler<CategoryModel,CategoryModel>
public class CategoryToCategoryDropHandler
extends AbstractReferenceDropHandler<CategoryModel,CategoryModel>
Drop handler responsible for appending/replacing supercategories for categories.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRelatedObjectToUpdateToContextAppend(CategoryModel dragged, CategoryModel target, com.hybris.cockpitng.dnd.DragAndDropContext context) protected voidaddRelatedObjectToUpdateToContextReplace(CategoryModel dragged, CategoryModel target, com.hybris.cockpitng.dnd.DragAndDropContext context) protected CategoryModelassignSupercategory(CategoryModel subcategory, CategoryModel supercategory, com.hybris.cockpitng.dnd.DragAndDropContext context) protected List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CategoryModel, Object>> handleAppend(List<CategoryModel> dragged, CategoryModel targetCategory, 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,CategoryModel, Object>> handleReplace(List<CategoryModel> dragged, CategoryModel targetCategory, com.hybris.cockpitng.dnd.DragAndDropContext context) Returns the result of replacing of the dragged object in the target.protected CategoryModelreplaceSupercategory(CategoryModel dragged, CategoryModel target, com.hybris.cockpitng.dnd.DragAndDropContext context) Methods inherited from class com.hybris.backoffice.cockpitng.dnd.handlers.AbstractReferenceDropHandler
getDragAndDropConfigurationService, handleDrop, resolveActionType, setDragAndDropConfigurationService
-
Field Details
-
APPEND_NOTIFICATION_KEY
- See Also:
-
REPLACE_NOTIFICATION_KEY
- See Also:
-
PAREMETER_RELATED_OBJECTS_TO_UPDATE
- See Also:
-
CONTEXT_PARAMETER_PARENT_OBJECT
- See Also:
-
-
Constructor Details
-
CategoryToCategoryDropHandler
public CategoryToCategoryDropHandler()
-
-
Method Details
-
handleAppend
protected List<com.hybris.cockpitng.dnd.DropOperationData<CategoryModel,CategoryModel, handleAppendObject>> (List<CategoryModel> 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<CategoryModel,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<CategoryModel,CategoryModel, handleReplaceObject>> (List<CategoryModel> 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<CategoryModel,CategoryModel> - Parameters:
dragged- dragged objects.targetCategory- target object on which dragged objects are dropped.context- context of drag&drop operation.
-
assignSupercategory
protected CategoryModel assignSupercategory(CategoryModel subcategory, CategoryModel supercategory, com.hybris.cockpitng.dnd.DragAndDropContext context) -
addRelatedObjectToUpdateToContextAppend
protected void addRelatedObjectToUpdateToContextAppend(CategoryModel dragged, CategoryModel target, com.hybris.cockpitng.dnd.DragAndDropContext context) -
replaceSupercategory
protected CategoryModel replaceSupercategory(CategoryModel dragged, CategoryModel target, com.hybris.cockpitng.dnd.DragAndDropContext context) -
addRelatedObjectToUpdateToContextReplace
protected void addRelatedObjectToUpdateToContextReplace(CategoryModel dragged, CategoryModel target, com.hybris.cockpitng.dnd.DragAndDropContext context) -
findSupportedTypes
-