public class JcrRootAllowedRule extends AbstractAvailabilityRule
AvailabilityRule
implementation which returns true if evaluated item is the default itemId —
typically the root node for JCR-based content apps.Constructor and Description |
---|
JcrRootAllowedRule() |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultItemId() |
protected boolean |
isAvailableForItem(Object itemId)
This method defines the actual evaluation logic for one item.
|
boolean |
isRootAllowed() |
void |
setDefaultItemId(Object defaultItemId) |
void |
setRootAllowed(boolean rootAllowed) |
isAvailable
public boolean isRootAllowed()
public void setRootAllowed(boolean rootAllowed)
public Object getDefaultItemId()
public void setDefaultItemId(Object defaultItemId)
protected boolean isAvailableForItem(Object itemId)
AbstractAvailabilityRule
isAvailableForItem
in class AbstractAvailabilityRule
Copyright © 2019 Magnolia International Ltd.. All rights reserved.