info.magnolia.jcr.wrapper
Class ChannelVisibilityContentDecorator

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

public class ChannelVisibilityContentDecorator
extends NodePredicateContentDecorator

ContentDecorator that hides content based on a multi-value property called excludeChannels.

The node is filtered out if all the these requirements are fulfilled:

If the current channel is null or equal to "all" (case-insensitive) nothing is filtered out.

Version:
$Id$

Field Summary
static String EXCLUDE_CHANNEL_PROPERTY_NAME
           
 
Constructor Summary
ChannelVisibilityContentDecorator(String currentChannel)
           
 
Method Summary
 
Methods inherited from class info.magnolia.jcr.decoration.NodePredicateContentDecorator
evaluateNode, evaluateProperty, isMultipleWrapEnabled
 
Methods inherited from class info.magnolia.jcr.decoration.AbstractContentDecorator
wrapNode, wrapNodeIterator, wrapProperty, wrapPropertyIterator, wrapSession, wrapWorkspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCLUDE_CHANNEL_PROPERTY_NAME

public static final String EXCLUDE_CHANNEL_PROPERTY_NAME
See Also:
Constant Field Values
Constructor Detail

ChannelVisibilityContentDecorator

public ChannelVisibilityContentDecorator(String currentChannel)


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