info.magnolia.jcr.decoration
Class NodePredicateContentDecorator

java.lang.Object
  extended by info.magnolia.jcr.decoration.AbstractContentDecorator
      extended by info.magnolia.jcr.decoration.NodePredicateContentDecorator
All Implemented Interfaces:
ContentDecorator
Direct Known Subclasses:
ChannelVisibilityContentDecorator

public class NodePredicateContentDecorator
extends AbstractContentDecorator

ContentDecorator that applies a predicate to all nodes in a JCR object graph. The predicate is checked against all parent nodes and

Version:
$Id$

Constructor Summary
NodePredicateContentDecorator(AbstractPredicate<javax.jcr.Node> nodePredicate)
           
 
Method Summary
 boolean evaluateNode(javax.jcr.Node node)
           
 boolean evaluateProperty(javax.jcr.Property property)
           
 
Methods inherited from class info.magnolia.jcr.decoration.AbstractContentDecorator
wrapNode, wrapNodeIterator, wrapProperty, wrapPropertyIterator, wrapSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodePredicateContentDecorator

public NodePredicateContentDecorator(AbstractPredicate<javax.jcr.Node> nodePredicate)
Method Detail

evaluateNode

public boolean evaluateNode(javax.jcr.Node node)
Specified by:
evaluateNode in interface ContentDecorator
Overrides:
evaluateNode in class AbstractContentDecorator

evaluateProperty

public boolean evaluateProperty(javax.jcr.Property property)
Specified by:
evaluateProperty in interface ContentDecorator
Overrides:
evaluateProperty in class AbstractContentDecorator


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.