public abstract class AbstractAvailabilityRule<T,D extends AvailabilityRuleDefinition> extends Object implements AvailabilityRule
AvailabilityRule
implementation which returns true if current user has write permissions for the evaluated items.Constructor and Description |
---|
AbstractAvailabilityRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
isAvailable(Collection<?> items)
Returns true if the availability subject (e.g.
|
protected abstract boolean |
isAvailableFor(T item) |
protected boolean |
isAvailableForItem(Object item) |
protected boolean |
shouldByPass(Collection<?> items)
Check whether the rule should even be tested against
provided items.
|
public boolean isAvailable(Collection<?> items)
AvailabilityRule
items
(root node is represented by a null
value in the array).isAvailable
in interface AvailabilityRule
protected boolean shouldByPass(Collection<?> items)
protected boolean isAvailableForItem(Object item)
protected abstract boolean isAvailableFor(T item)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.