Class UuidPredicate
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.observation.filter.UuidPredicate
-
public class UuidPredicate extends Object implements Predicate<NodeState>, Predicate<NodeState>
A predicate for matching against a list of UUIDs. This predicate holds whenever theNodeStatepassed to its apply functions has ajcr:uuidproperty and the value of that property matches any of the UUIDs that has been passed to the predicate's constructor.
-
-
Constructor Summary
Constructors Constructor Description UuidPredicate(@NotNull String[] uuids)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanapply(NodeState node)Deprecated.usetest(NodeState)instead (see OAK-8874)booleantest(NodeState node)
-
-
-
Constructor Detail
-
UuidPredicate
public UuidPredicate(@NotNull @NotNull String[] uuids)- Parameters:
uuids- uuids
-
-
Method Detail
-
apply
@Deprecated public boolean apply(NodeState node)
Deprecated.usetest(NodeState)instead (see OAK-8874)Description copied from interface:PredicateReturns the result of applying this predicate toinput. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal(a, b)implies thatpredicate.apply(a) == predicate.apply(b)).
-
-