public class IsComponentDeletableRule extends AbstractElementAvailabilityRule<ComponentElement>
PageEditorPresenter.selectedElement
in the page editor is a component
and the user has permission to delete it based on the 'deletable' property.Constructor and Description |
---|
IsComponentDeletableRule(PageEditorPresenter pageEditorPresenter) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isAvailableForElement(ComponentElement element) |
isAvailableForItem
isAvailable
@Inject public IsComponentDeletableRule(PageEditorPresenter pageEditorPresenter)
protected boolean isAvailableForElement(ComponentElement element)
isAvailableForElement
in class AbstractElementAvailabilityRule<ComponentElement>
Copyright © 2015 Magnolia International Ltd.. All rights reserved.