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 Summary
Constructors Constructor Description IsPageNodePredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Node node)
Evaluates this predicate on the given node.-
Methods inherited from class com.day.cq.commons.predicate.AbstractNodePredicate
evaluate
-
-
-
-
Method Detail
-
evaluate
public boolean evaluate(Node node) throws RepositoryException
Evaluates this predicate on the given node.- Specified by:
evaluate
in classAbstractNodePredicate
- Parameters:
node
- the node- Returns:
true
if node is an nt:folder containing templates or cq:Template node.- Throws:
RepositoryException
- if an error during evaluation occurs
-
-