org.opencms.gwt
Class CmsTemplateFinder

java.lang.Object
  extended by org.opencms.gwt.CmsTemplateFinder

public class CmsTemplateFinder
extends Object

Utility class for getting information about available templates.

Since:
8.0.0

Field Summary
protected  CmsObject m_cms
          The cms context.
 
Constructor Summary
CmsTemplateFinder(CmsObject cms)
          Creates a new instance.
 
Method Summary
protected  CmsObject getCmsObject()
          Gets the CMS context to use.
 Map<String,CmsClientTemplateBean> getTemplates()
          Returns the available templates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cms

protected CmsObject m_cms
The cms context.

Constructor Detail

CmsTemplateFinder

public CmsTemplateFinder(CmsObject cms)
Creates a new instance.

Parameters:
cms - the cms context to use
Method Detail

getTemplates

public Map<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