info.magnolia.jcr.decoration
Class AbstractContentDecorator

java.lang.Object
  extended by info.magnolia.jcr.decoration.AbstractContentDecorator
All Implemented Interfaces:
ContentDecorator
Direct Known Subclasses:
ChildFilteringContentDecorator, HTMLEscapingContentDecorator, I18nContentDecorator, InheritanceContentDecorator, MgnlAuditLoggingContentDecorator, MgnlVersioningContentDecorator, NodePredicateContentDecorator, PropertyAndChildWrappingContentDecorator, PropertyFilteringContentDecorator

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$

Constructor Summary
AbstractContentDecorator()
           
 
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)
           
 javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.jcr.decoration.ContentDecorator
isMultipleWrapEnabled
 

Constructor Detail

AbstractContentDecorator

public AbstractContentDecorator()
Method Detail

wrapSession

public javax.jcr.Session wrapSession(javax.jcr.Session session)
Specified by:
wrapSession in interface ContentDecorator

wrapWorkspace

public javax.jcr.Workspace wrapWorkspace(javax.jcr.Workspace workspace)
Specified by:
wrapWorkspace 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-2013 Magnolia International Ltd.. All Rights Reserved.