Package com.day.cq.wcm.api
Class IsPageNodePredicate
java.lang.Object
com.day.cq.commons.predicate.AbstractNodePredicate
com.day.cq.wcm.api.IsPageNodePredicate
- All Implemented Interfaces:
Predicate
@Service(Predicate.class)
@Properties(@Property(name="predicate.name",value="page"))
public class IsPageNodePredicate
extends AbstractNodePredicate
implements Predicate
Predicate used to filter Template nodes.
-
Constructor Details
-
IsPageNodePredicate
public IsPageNodePredicate()
-
-
Method Details
-
evaluate
Evaluates this predicate on the given node.- Specified by:
evaluatein classAbstractNodePredicate- Parameters:
node- the node- Returns:
trueif node is an nt:folder containing templates or cq:Template node.- Throws:
RepositoryException- if an error during evaluation occurs
-