public class ConfigProtectedNodeRule extends AbstractAvailabilityRule
AvailabilityRule
for the config app.
In particular, /system
and /modules
nodes, as well as their direct sub-nodes, should never be unpublished.
Concretely, the rule evaluates to true
if given item is a node and has depth higher than 2.
Constructor and Description |
---|
ConfigProtectedNodeRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailableForItem(Object itemId)
This method defines the actual evaluation logic for one item.
|
isAvailable
public boolean isAvailableForItem(Object itemId)
AbstractAvailabilityRule
isAvailableForItem
in class AbstractAvailabilityRule
Copyright © 2019 Magnolia International Ltd.. All rights reserved.