Package org.opencms.gwt
Class CmsTemplateFinder
- java.lang.Object
-
- org.opencms.gwt.CmsTemplateFinder
-
public class CmsTemplateFinder extends java.lang.Object
Utility class for getting information about available templates.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsObject
m_cms
The cms context.static java.lang.String
MACRO_TEMPLATEPATH
Macro which is used in template.provider property to be substituted with the template path.
-
Constructor Summary
Constructors Constructor Description CmsTemplateFinder(CmsObject cms)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CmsObject
getCmsObject()
Gets the CMS context to use.java.util.Map<java.lang.String,CmsClientTemplateBean>
getTemplates()
Returns the available templates.
-
-
-
Field Detail
-
MACRO_TEMPLATEPATH
public static final java.lang.String MACRO_TEMPLATEPATH
Macro which is used in template.provider property to be substituted with the template path.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsTemplateFinder
public CmsTemplateFinder(CmsObject cms)
Creates a new instance.- Parameters:
cms
- the cms context to use
-
-
Method Detail
-
getTemplates
public java.util.Map<java.lang.String,CmsClientTemplateBean> getTemplates() throws CmsException
Returns the available templates.- Returns:
- the available templates
- Throws:
CmsException
- if something goes wrong
-
getCmsObject
protected CmsObject getCmsObject()
Gets the CMS context to use.- Returns:
- the CMS context to use
-
-