Class DefaultContextAreaCommentTreeController
java.lang.Object
de.hybris.platform.cockpit.components.mvc.commentlayer.controller.impl.DefaultContextAreaCommentTreeController
- All Implemented Interfaces:
ContextAreaCommentTreeController
public class DefaultContextAreaCommentTreeController
extends Object
implements ContextAreaCommentTreeController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel) Performs delete routine for the given comment instance.getCommentIcon(ContextAreaCommentTreeModel model, CommentModel comment) Returns a correspondingCommentIconcomponent for the target comment instance.getOwningCommentLayer(ContextAreaCommentTreeModel model, CommentModel commentItemModel) ReturnsCommentLayerComponentthat owns icon representing the target comment instance.booleangetUserWorkingStatus(AbstractCommentModel comment) Returns working status of the targetAbstractCommentModelinstance for the current user.booleanisCommentCurrentlySelected(ContextAreaCommentTreeModel model, AbstractCommentModel commentItemModel) Evaluates if the target comment instance is currently selected in the comment layer.booleanisCommentRecordCollapsable(AbstractCommentModel abstractComment) Evaluates if the record of the context area comment tree for the givenAbstractCommentModelshould render the collapse/expand control.booleanisCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment) Evaluates if the target comment is currently visible on the comment layer.voidselectComment(ContextAreaCommentTreeModel model, CommentModel commentItemModel) Performs select routine for the given comment instance.voidsetCommentLayerComponentController(CommentLayerComponentController commentLayerComponentController) voidsetCommentService(CommentService commentService) voidsetModelHelper(ModelHelper modelHelper) voidsetUserWorkingStatus(AbstractCommentModel comment, boolean status) Sets working status of the targetAbstractCommentModelinstance for the current user.voidtoggleCommentVisible(ContextAreaCommentTreeModel model, CommentModel comment) Toggles visibility of the target comment instance on the comment layer component.
-
Constructor Details
-
DefaultContextAreaCommentTreeController
public DefaultContextAreaCommentTreeController()
-
-
Method Details
-
isCommentCurrentlySelected
public boolean isCommentCurrentlySelected(ContextAreaCommentTreeModel model, AbstractCommentModel commentItemModel) Description copied from interface:ContextAreaCommentTreeControllerEvaluates if the target comment instance is currently selected in the comment layer.- Specified by:
isCommentCurrentlySelectedin interfaceContextAreaCommentTreeController- Parameters:
model-ContextAreaCommentTreeModelcommentItemModel- - instance to check
-
selectComment
Description copied from interface:ContextAreaCommentTreeControllerPerforms select routine for the given comment instance.- Specified by:
selectCommentin interfaceContextAreaCommentTreeController- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - comment instance to select
-
toggleCommentVisible
Description copied from interface:ContextAreaCommentTreeControllerToggles visibility of the target comment instance on the comment layer component.- Specified by:
toggleCommentVisiblein interfaceContextAreaCommentTreeController- Parameters:
model- -ContextAreaCommentTreeModelcomment- - target comment instance.
-
isCommentVisible
Description copied from interface:ContextAreaCommentTreeControllerEvaluates if the target comment is currently visible on the comment layer.- Specified by:
isCommentVisiblein interfaceContextAreaCommentTreeController- Parameters:
model- -ContextAreaCommentTreeModelcomment- - comment instance to check
-
setCommentLayerComponentController
public void setCommentLayerComponentController(CommentLayerComponentController commentLayerComponentController) -
getOwningCommentLayer
public CommentLayerComponent getOwningCommentLayer(ContextAreaCommentTreeModel model, CommentModel commentItemModel) Description copied from interface:ContextAreaCommentTreeControllerReturnsCommentLayerComponentthat owns icon representing the target comment instance.- Specified by:
getOwningCommentLayerin interfaceContextAreaCommentTreeController- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - target comment instance
-
getUserWorkingStatus
Description copied from interface:ContextAreaCommentTreeControllerReturns working status of the targetAbstractCommentModelinstance for the current user.- Specified by:
getUserWorkingStatusin interfaceContextAreaCommentTreeController- Parameters:
comment- - targetAbstractCommentModelinstance.- Returns:
trueorfalse
-
setUserWorkingStatus
Description copied from interface:ContextAreaCommentTreeControllerSets working status of the targetAbstractCommentModelinstance for the current user.- Specified by:
setUserWorkingStatusin interfaceContextAreaCommentTreeController- Parameters:
comment- - targetAbstractCommentModelinstance.status- - new working status value.
-
setCommentService
-
setModelHelper
-
deleteComment
Description copied from interface:ContextAreaCommentTreeControllerPerforms delete routine for the given comment instance.- Specified by:
deleteCommentin interfaceContextAreaCommentTreeController- Parameters:
model- -ContextAreaCommentTreeModelcommentItemModel- - comment instance to select
-
isCommentRecordCollapsable
Description copied from interface:ContextAreaCommentTreeControllerEvaluates if the record of the context area comment tree for the givenAbstractCommentModelshould render the collapse/expand control.- Specified by:
isCommentRecordCollapsablein interfaceContextAreaCommentTreeController
-
getCommentIcon
Description copied from interface:ContextAreaCommentTreeControllerReturns a correspondingCommentIconcomponent for the target comment instance.- Specified by:
getCommentIconin interfaceContextAreaCommentTreeController- Parameters:
model- -ContextAreaCommentTreeModelcomment- - targetCommentModel- Returns:
CommentIconor null
-