info.magnolia.jcr.wrapper
Class PropertyFilteringContentDecorator

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

public class PropertyFilteringContentDecorator
extends AbstractContentDecorator

Content decorator that filters out properties.


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

Constructor Detail

PropertyFilteringContentDecorator

public PropertyFilteringContentDecorator(AbstractPredicate<javax.jcr.Property> predicate)

PropertyFilteringContentDecorator

public PropertyFilteringContentDecorator(AbstractPredicate<javax.jcr.Property> predicate,
                                         boolean multipleWrapEnabled)
Method Detail

wrapPropertyIterator

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

evaluateProperty

public boolean evaluateProperty(javax.jcr.Property property)
Description copied from interface: ContentDecorator
Evaluates if a property should be hidden by wrappers.

Specified by:
evaluateProperty in interface ContentDecorator
Overrides:
evaluateProperty in class AbstractContentDecorator
Parameters:
property - the property to evaluate.
Returns:
true if the property 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.