info.magnolia.rendering.template.configured
Class ConfiguredInheritance

java.lang.Object
  extended by info.magnolia.rendering.template.configured.ConfiguredInheritance
All Implemented Interfaces:
InheritanceConfiguration

public class ConfiguredInheritance
extends Object
implements InheritanceConfiguration

Defines behavior for inheritance. Allows for enabling

Version:
$Id$

Nested Class Summary
static class ConfiguredInheritance.AllComponentsAndResourcesPredicate
          Predicate for component inheritance that includes all components and resources.
static class ConfiguredInheritance.FilteredComponentInheritancePredicate
          Predicate for component inheritance that includes only nodes with a a property named 'inheritable' that needs to be present and set to 'true'.
static class ConfiguredInheritance.InheritNothingInheritancePredicate
          Predicate for component inheritance that includes no components.
static class ConfiguredInheritance.NodeDepthComparator
          Comparator for ordering nodes by depth placing nodes deeper in the hierarchy after those further up and ordering nodes on the same level by the order they appear as siblings.
 
Field Summary
static String COMPONENTS_ALL
           
static String COMPONENTS_FILTERED
           
static String COMPONENTS_NONE
           
static String PROPERTIES_ALL
           
static String PROPERTIES_NONE
           
 
Constructor Summary
ConfiguredInheritance()
           
 
Method Summary
 Comparator<javax.jcr.Node> getComponentComparator()
           
 AbstractPredicate<javax.jcr.Node> getComponentPredicate()
           
 Boolean isEnabled()
           
 Boolean isInheritsComponents()
           
 Boolean isInheritsProperties()
           
 void setComponents(String components)
           
 void setEnabled(Boolean enabled)
           
 void setNodeComparatorClass(Class<? extends Comparator<javax.jcr.Node>> nodeComparatorClass)
           
 void setPredicateClass(Class<? extends AbstractPredicate<javax.jcr.Node>> predicateClass)
           
 void setProperties(String properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENTS_ALL

public static final String COMPONENTS_ALL
See Also:
Constant Field Values

COMPONENTS_NONE

public static final String COMPONENTS_NONE
See Also:
Constant Field Values

COMPONENTS_FILTERED

public static final String COMPONENTS_FILTERED
See Also:
Constant Field Values

PROPERTIES_ALL

public static final String PROPERTIES_ALL
See Also:
Constant Field Values

PROPERTIES_NONE

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

ConfiguredInheritance

public ConfiguredInheritance()
Method Detail

isEnabled

public Boolean isEnabled()
Specified by:
isEnabled in interface InheritanceConfiguration

setEnabled

public void setEnabled(Boolean enabled)

setComponents

public void setComponents(String components)

setProperties

public void setProperties(String properties)

isInheritsProperties

public Boolean isInheritsProperties()
Specified by:
isInheritsProperties in interface InheritanceConfiguration

isInheritsComponents

public Boolean isInheritsComponents()
Specified by:
isInheritsComponents in interface InheritanceConfiguration

getComponentPredicate

public AbstractPredicate<javax.jcr.Node> getComponentPredicate()
Specified by:
getComponentPredicate in interface InheritanceConfiguration

setPredicateClass

public void setPredicateClass(Class<? extends AbstractPredicate<javax.jcr.Node>> predicateClass)

getComponentComparator

public Comparator<javax.jcr.Node> getComponentComparator()
Specified by:
getComponentComparator in interface InheritanceConfiguration

setNodeComparatorClass

public void setNodeComparatorClass(Class<? extends Comparator<javax.jcr.Node>> nodeComparatorClass)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.