info.magnolia.jcr.wrapper
Class PropertyFilteringContentDecorator
java.lang.Object
info.magnolia.jcr.decoration.AbstractContentDecorator
info.magnolia.jcr.wrapper.PropertyFilteringContentDecorator
- All Implemented Interfaces:
- ContentDecorator
public class PropertyFilteringContentDecorator
- extends AbstractContentDecorator
Content decorator that filters out properties.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyFilteringContentDecorator
public PropertyFilteringContentDecorator(AbstractPredicate<javax.jcr.Property> predicate)
PropertyFilteringContentDecorator
public PropertyFilteringContentDecorator(AbstractPredicate<javax.jcr.Property> predicate,
boolean multipleWrapEnabled)
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-2014 Magnolia International Ltd.. All Rights Reserved.