Class CmsADEConfigurationSequence


  • public class CmsADEConfigurationSequence
    extends java.lang.Object
    Represents a sequence of inherited module/sitemap configurations, together with an index into that list.

    Used for computing the configuration inheritance.

    • Constructor Detail

      • CmsADEConfigurationSequence

        public CmsADEConfigurationSequence​(java.util.List<CmsADEConfigDataInternal> configDatas)
        Creates a new instance for the given list of configuration data, with the index pointing to the last element.

        Parameters:
        configDatas - the config data list
    • Method Detail

      • getConfigPaths

        public java.util.List<java.lang.String> getConfigPaths()
        Gets the list of configuration file paths in inheritance order, not including the module configuration.
        Returns:
        the list of configuration file paths
      • getParent

        public com.google.common.base.Optional<CmsADEConfigurationSequencegetParent()
        Returns a sequence which only differs from this instance in that its index is one less.

        However, if the index of this instance is already 0, Optional.absent will be returned.

        Returns:
        the parent sequence, or Optional.absent if we are already at the start of the sequence