info.magnolia.jcr.wrapper
Class ChildFilteringContentDecorator

java.lang.Object
  extended by info.magnolia.jcr.decoration.AbstractContentDecorator
      extended by info.magnolia.jcr.wrapper.ChildFilteringContentDecorator
All Implemented Interfaces:
ContentDecorator

public class ChildFilteringContentDecorator
extends AbstractContentDecorator

Content decorator that filters out child nodes with given predicate. Used in ChildFilteringNodeWrapper.


Constructor Summary
ChildFilteringContentDecorator(AbstractPredicate<javax.jcr.Node> predicate, boolean filterDescendants)
           
ChildFilteringContentDecorator(AbstractPredicate<javax.jcr.Node> predicate, boolean filterDescendants, boolean multipleWrapEnabled)
           
 
Method Summary
 boolean evaluateNode(javax.jcr.Node node)
          Evaluates if a node should be hidden by wrappers.
 boolean isMultipleWrapEnabled()
          Tells if multiple wrapping with this content decorator is enabled.
 javax.jcr.Node wrapNode(javax.jcr.Node node)
           
 javax.jcr.NodeIterator wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)
           
 
Methods inherited from class info.magnolia.jcr.decoration.AbstractContentDecorator
evaluateProperty, wrapProperty, wrapPropertyIterator, wrapSession, wrapWorkspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildFilteringContentDecorator

public ChildFilteringContentDecorator(AbstractPredicate<javax.jcr.Node> predicate,
                                      boolean filterDescendants)

ChildFilteringContentDecorator

public ChildFilteringContentDecorator(AbstractPredicate<javax.jcr.Node> predicate,
                                      boolean filterDescendants,
                                      boolean multipleWrapEnabled)
Method Detail

wrapNode

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

wrapNodeIterator

public javax.jcr.NodeIterator wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)
Specified by:
wrapNodeIterator in interface ContentDecorator
Overrides:
wrapNodeIterator in class AbstractContentDecorator

evaluateNode

public boolean evaluateNode(javax.jcr.Node node)
Description copied from interface: ContentDecorator
Evaluates if a node should be hidden by wrappers.

Specified by:
evaluateNode in interface ContentDecorator
Overrides:
evaluateNode in class AbstractContentDecorator
Parameters:
node - the node to evaluate
Returns:
true if the node should be visible or false to hide it

isMultipleWrapEnabled

public boolean isMultipleWrapEnabled()
Description copied from interface: ContentDecorator
Tells if multiple wrapping with this content decorator is enabled.



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