info.magnolia.jcr.decoration
Class AbstractContentDecorator
java.lang.Object
info.magnolia.jcr.decoration.AbstractContentDecorator
- All Implemented Interfaces:
- ContentDecorator
- Direct Known Subclasses:
- InheritanceContentDecorator, NodePredicateContentDecorator
public abstract class AbstractContentDecorator
- extends Object
- implements ContentDecorator
Abstract implementation of ContentDecorator
that filters out nothing and wraps everything to carry the
decoration to the entire graph.
- Version:
- $Id$
Method Summary |
boolean |
evaluateNode(javax.jcr.Node node)
Evaluates if a node should be hidden by wrappers. |
boolean |
evaluateProperty(javax.jcr.Property property)
Evaluates if a property should be hidden by wrappers. |
javax.jcr.Node |
wrapNode(javax.jcr.Node node)
|
javax.jcr.NodeIterator |
wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)
|
javax.jcr.Property |
wrapProperty(javax.jcr.Property property)
|
javax.jcr.PropertyIterator |
wrapPropertyIterator(javax.jcr.PropertyIterator propertyIterator)
|
javax.jcr.Session |
wrapSession(javax.jcr.Session session)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentDecorator
public AbstractContentDecorator()
wrapSession
public javax.jcr.Session wrapSession(javax.jcr.Session session)
- Specified by:
wrapSession
in interface ContentDecorator
wrapNode
public javax.jcr.Node wrapNode(javax.jcr.Node node)
- Specified by:
wrapNode
in interface ContentDecorator
wrapNodeIterator
public javax.jcr.NodeIterator wrapNodeIterator(javax.jcr.NodeIterator nodeIterator)
- Specified by:
wrapNodeIterator
in interface ContentDecorator
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
- Parameters:
node
- the node to evaluate
- Returns:
- true if the node should be visible or false to hide it
wrapProperty
public javax.jcr.Property wrapProperty(javax.jcr.Property property)
- Specified by:
wrapProperty
in interface ContentDecorator
wrapPropertyIterator
public javax.jcr.PropertyIterator wrapPropertyIterator(javax.jcr.PropertyIterator propertyIterator)
- Specified by:
wrapPropertyIterator
in interface ContentDecorator
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
- Parameters:
property
- the property to evaluate.
- Returns:
- true if the property should be visible or false to hide it
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.