info.magnolia.jcr.wrapper
Class ChannelVisibilityContentDecorator
java.lang.Object
info.magnolia.jcr.decoration.AbstractContentDecorator
info.magnolia.jcr.decoration.NodePredicateContentDecorator
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:
- it has a property named "excludeChannels"
- the property is a multi-value property
- it has at least one value
- one of the values matches the current channel
If the current channel is null or equal to "all" (case-insensitive) nothing is filtered out.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXCLUDE_CHANNEL_PROPERTY_NAME
public static final String EXCLUDE_CHANNEL_PROPERTY_NAME
- See Also:
- Constant Field Values
ChannelVisibilityContentDecorator
public ChannelVisibilityContentDecorator(String currentChannel)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.