Class CmsConfigurationFileFinder

java.lang.Object
org.opencms.xml.containerpage.CmsConfigurationFileFinder

public class CmsConfigurationFileFinder extends Object
Helper class for locating configuration files by looking up their location in properties of another resource.

Since:
8.0.0
  • Constructor Details

    • CmsConfigurationFileFinder

      public CmsConfigurationFileFinder(String propertyName)
      Creates a new configuration file finder which expects the location of configuration files to be stored in the property with the given name.

      Parameters:
      propertyName - the name of the property which should contain the configuration file path
  • Method Details

    • getConfigurationFile

      public CmsResource getConfigurationFile(CmsObject cms, String containerPageUri)
      Returns the configuration file to use.

      Parameters:
      cms - the current cms context
      containerPageUri - the container page uri
      Returns:
      the configuration file to use, or null if not found