Package org.opencms.xml.containerpage
Class CmsConfigurationFileFinder
- java.lang.Object
-
- org.opencms.xml.containerpage.CmsConfigurationFileFinder
-
public class CmsConfigurationFileFinder extends java.lang.Object
Helper class for locating configuration files by looking up their location in properties of another resource.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsConfigurationFileFinder(java.lang.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsResource
getConfigurationFile(CmsObject cms, java.lang.String containerPageUri)
Returns the configuration file to use.
-
-
-
Constructor Detail
-
CmsConfigurationFileFinder
public CmsConfigurationFileFinder(java.lang.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 Detail
-
getConfigurationFile
public CmsResource getConfigurationFile(CmsObject cms, java.lang.String containerPageUri)
Returns the configuration file to use.- Parameters:
cms
- the current cms contextcontainerPageUri
- the container page uri- Returns:
- the configuration file to use, or
null
if not found
-
-