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